Last updated
Common GTIN Errors and Fixes
- Wrong check digit — recalculate using the GS1 algorithm or use the validator
- Wrong length — UPC-A must be 12 digits, EAN-13 must be 13 digits
- Leading zeros stripped — "049000028911" becomes "49000028911" in some systems; always preserve leading zeros
- Non-numeric characters — GTINs contain only digits 0-9
- Spaces or dashes — remove all formatting characters before validation
- Confusing UPC-E with UPC-A — UPC-E is 6 digits (compressed), UPC-A is 12 digits
Examples
Example 1: GTIN Formats Overview
Format | Digits | Used For | Example
---------|--------|-----------------------------------|------------------
UPC-E | 6 | Small packages (compressed UPC) | 012345
UPC-A | 12 | North American retail products | 012345678905
EAN-8 | 8 | Small European products | 01234565
EAN-13 | 13 | International retail products | 0123456789012
GTIN-14 | 14 | Cases, pallets, packaging levels | 00123456789012
Example 2: Check Digit Calculation
The check digit (last digit) is calculated using the GS1 algorithm:
Calculate check digit for EAN-13: 978030640615?
Step 1: Write out the first 12 digits
9 7 8 0 3 0 6 4 0 6 1 5
Step 2: Multiply alternating digits by 1 and 3 (starting from left)
9×1 7×3 8×1 0×3 3×1 0×3 6×1 4×3 0×1 6×3 1×1 5×3
= 9 + 21 + 8 + 0 + 3 + 0 + 6 + 12 + 0 + 18 + 1 + 15
Step 3: Sum all products
9 + 21 + 8 + 0 + 3 + 0 + 6 + 12 + 0 + 18 + 1 + 15 = 93
Step 4: Check digit = (10 - (sum mod 10)) mod 10
(10 - (93 mod 10)) mod 10
= (10 - 3) mod 10
= 7
Result: 9780306406157 ✅ Valid EAN-13
Example 3: Valid GTIN Examples
UPC-A Examples (12 digits):
012345678905 ✅ Valid
036000291452 ✅ Valid (Coca-Cola 12-pack)
049000028911 ✅ Valid
EAN-13 Examples (13 digits):
9780306406157 ✅ Valid (ISBN as EAN-13)
4006381333931 ✅ Valid
5901234123457 ✅ Valid
EAN-8 Examples (8 digits):
01234565 ✅ Valid
96385074 ✅ Valid
GTIN-14 Examples (14 digits):
00012345678905 ✅ Valid (UPC-A padded to GTIN-14)
10012345678902 ✅ Valid (case pack, indicator digit 1)