IIX Lab ← All tools

GTIN & Barcode Validator

Check GTIN-8/12/13/14 lengths and check digits in bulk, and see the zero-padded value you probably meant.

No subscription.$9 once, unlimited. Not $12 a year for an occasional export.
No silent failures.Every error names the line, the column and the likely fix.
No cleanup afterwards.Merged cells expanded, leading zeros kept — ready to import.

Need this in a pipeline, not a browser tab?

Barcodes that fail the check digit get rejected after upload, not before. Validate in bulk.

Get the All-Access Bundle — $49 once

Free for 10 rows per table · $9 once, no subscription

Runs entirely in your browser. No upload, no account, no analytics.

How the check digit actually works

The last digit of a GTIN is not part of the product number. It is a checksum over the others, so a scanner can tell a misread from a valid code.

The calculation. Working right to left from the digit immediately before the check digit, multiply alternate digits by 3 and 1, sum them, then subtract the sum from the next multiple of ten. For 001234567890 the weighted sum is 185, the next multiple of ten is 190, so the check digit is 5.

Why a wrong digit passes the length test. Length and checksum are independent. One mistyped digit keeps the length correct and breaks only the sum, which is why the error reads "invalid barcode" rather than "wrong digit".

Where the leading zero goes. A 12-digit UPC beginning with 0 stored as a number becomes 11 digits. The code is then the wrong length before any checksum runs.

Questions

What lengths are valid?

8, 12, 13 or 14 digits. A valid checksum on a different length is still not a GTIN.

Why is my valid code rejected by a store?

Uniqueness, not arithmetic. GTINs must be unique per variant.

Does every product need one?

No. An empty barcode is better than a wrong one.