Barcode validator
Paste a code and we check length, character set and check digit — the cheap insurance before a 10,000-label print run.
Validation covers structure and check digits. It cannot tell whether a GTIN is actually licensed to your company — that lives in the GS1 registry.
What is a check digit?
The last digit of an EAN, UPC, ITF-14 or ISBN-13 is calculated from all the digits before it. A scanner repeats the calculation and rejects the code if the result does not match, which catches almost every single-digit typo and most swapped digits.
How it is calculated
Starting from the right-hand end of the number (without the check digit), multiply the digits alternately by 3 and 1, add the results together, and take the amount needed to reach the next multiple of ten. For 590123412345 the sum is 83, so the check digit is 7 and the full EAN-13 is 5901234123457.
Common causes of a failed check
Spreadsheets silently dropping leading zeros, a UPC-A (12 digits) pasted where an EAN-13 (13 digits) is expected, and digits transposed during manual entry. Store barcode numbers as text, not numbers, to keep leading zeros intact.