GTIN (Global Trade Item Number)
GTIN is the GS1 identifier for trade items — the number under every retail barcode. It comes in 8, 12, 13, and 14-digit variants (EAN-8, UPC-A, EAN-13, GTIN-14) and ends with a mod-10 check digit.
Anatomy
A GTIN encodes a GS1 prefix (identifying the issuing country organization), a company prefix, an item reference, and a check digit computed by alternating ×3/×1 weights from the rightmost data digit. The 14-digit GTIN-14 is the superset — shorter variants are just zero-padded into it, which is why UPC↔GTIN and EAN↔GTIN conversion is trivial.
ISBN is a special case: ISBN-13 is an EAN with a Bookland prefix (978/979), so book validation is GTIN validation plus a prefix check.
What the check digit proves — and does not
The mod-10 digit catches single-digit typos and most adjacent transpositions — the classic hand-entry errors. It does not prove the number is registered or that the brand owns it: marketplaces like Amazon cross-check the GS1 registry and brand ownership, so a checksum-valid but unregistered code still gets rejected.
Related Standards
- •GS1 General Specifications
- •ISO/IEC 15420 — EAN/UPC barcode specification
Free Tools & Resources
Need help with this?
We consult and build across all of these domains — tell us what you are working on.
