check digitcalculator.
Type the code without its last digit and we work it out. Type the full code and we tell you if the last digit is right. A check digit generator for EAN-13, UPC-A, EAN-8, GTIN-14 and SSCC.
Each digit is multiplied by 3 or 1, starting with 3 on the digit next to the check digit. The check digit is what you add to the total to reach the next multiple of 10.
A barcode preview appears when the code is complete.
quick preview.
For EAN-13, UPC-A and EAN-8 you see the real bar pattern. GTIN-14 and SSCC are shown as numbers only.
a whole list, at once.
Paste codes from Excel, one per line. Short codes get their check digit added; full codes are checked.
simple maths, big job.
Every GS1 code uses the same rule. It catches almost every single-digit typo and most swapped neighbours.
Going from right to left, multiply digits by 3, 1, 3, 1… The digit next to the check digit always gets 3.
Add all the results together. For 890123456780 the total is 103.
The check digit is what takes the total to the next multiple of 10. 103 needs 7 to reach 110, so the full code is 8901234567807.
still stuck?
Long codes turn into numbers. Leading zeros vanish and 8.90E+12 appears.
Read answer FormatsEAN-13 or UPC-A?13 digits for India and most of the world, 12 for the USA and Canada.
Read answer GS1A right check digit isn't a registered codeThe maths only proves the number is well formed. Retailers may still need a GS1 number.
Read answernumber ready? make the barcode.
EAN-13, UPC-A, Code 128 and more. PNG or SVG, sized for your label.