GTIN
GeneralGlobal Trade Item Number
The GS1 umbrella standard behind retail barcodes โ including UPC-A, EAN-8, EAN-13, and GTIN-14 โ each using the same checksum logic at a different digit length.
Definition
GTIN (Global Trade Item Number) is the umbrella standard the international standards body GS1 uses to describe the family of barcode formats used to identify retail products and trade items worldwide. Rather than being a single fixed-length number, GTIN covers several related formats โ EAN-8, UPC-A, EAN-13, and GTIN-14 โ that differ only in digit count but share the same underlying checksum logic.
UPC-A (12 digits) is the standard most familiar to shoppers in North America, while EAN-13 (13 digits) is the equivalent standard used across most of the rest of the world, including Europe and India. GTIN-14 extends the same numbering system to identify shipping cartons and cases rather than individual retail units. Because all of these formats share one checksum formula, a single validator โ like the GTIN / UPC / EAN Barcode Validator โ can check any of them.
Formula
Check Digit = (10 โ (ฮฃ weighted digits mod 10)) mod 10
Each digit (excluding the check digit) is weighted 3 if its position counting from the right is odd, and 1 if even โ the same rule regardless of total length.
Worked Example
For the UPC-A code 036000291452, the payload is 03600029145 and the check digit is 2.
Weighting from the right (3, 1, 3, 1, โฆ): 5ร3 + 4ร1 + 1ร3 + 9ร1 + 2ร3 + 0ร1 + 0ร3 + 0ร1 + 6ร3 + 3ร1 + 0ร3 = 58
Check digit = (10 โ (58 mod 10)) mod 10 = (10 โ 8) mod 10 = 2 โ matching the final digit, confirming the code is correctly formed.
Key Things to Know
- One formula, many lengths: EAN-8, UPC-A, EAN-13, and GTIN-14 all use the identical weighted checksum โ only the total digit count differs.
- Checksum โ registration: a valid checksum confirms the number is well-formed, not that it's actually been issued to a real product by GS1.
- UPC-A fits inside EAN-13: prefixing a UPC-A code with a zero produces an equivalent valid EAN-13 code.
- GTIN-14 is for logistics, not retail shelves: it identifies cartons and cases, one level up from the barcode printed on an individual product.
Frequently Asked Questions