EAN-8 Validator
Validate an EAN-8 barcode (8 digits) by computing the check digit per the GS1 spec. Useful for small products, retail and inventory control.
—
EAN-8 check digit, computed by hand
EAN-8 / GTIN-8 is the compact 8-digit GS1 barcode used where a full EAN-13 won't physically fit — small cosmetics, confectionery, single-serve items. The eighth digit is a mod-10 check digit that lets a scanner reject a misread instantly. This tool verifies it; here is exactly how that digit is derived, using the example 73513537.
Step by step for 7351353 ?
- 1. Weights: over the first seven digits apply
3,1,3,1,3,1,3(odd positions from the left weigh 3). - 2. Multiply & sum: 7×3 + 3×1 + 5×3 + 1×1 + 3×3 + 5×1 + 3×3 = 21+3+15+1+9+5+9 = 63.
- 3. Next multiple of 10: 63 → 70.
- 4. Check digit: 70 − 63 = 7 → the full code is
73513537. ✓
Equivalently, the check digit is (10 − (sum mod 10)) mod 10 — the same formula GS1 uses for EAN-13, UPC-A and ITF-14, only the weight pattern length changes.
Why a check digit at all
- Single-digit errors: any one wrong digit changes the weighted sum, so the checksum fails — caught at the scanner.
- Most transpositions: swapping two adjacent digits usually breaks the 3/1 weighting too (though a few transposition pairs slip through, a known mod-10 limitation).
- Self-checking print: the human-readable digits under the bars can be re-verified without a database.
Common pitfalls
- Weight order direction: GS1 weights run right-to-left in the spec, but for an 8-digit code that lands on 3,1,3,1,3,1,3 from the left — get the alignment wrong and every result is off.
- Not UPC-E: UPC-E is a compressed 6-digit UPC-A, a different thing from EAN-8's independently allocated number.
- Leading zeros: keep the value as an 8-character string; integer storage drops zeros and corrupts the checksum.
- Valid digit ≠ real product: a correct checksum doesn't mean GS1 has licensed that GTIN.
FAQ
Is the EAN-8 algorithm the same as EAN-13? Yes — identical mod-10 with alternating 3/1 weights; only the number of digits being weighted differs.
What if the sum is already a multiple of 10? Then the check digit is 0 (e.g. sum 60 → 60 − 60 = 0).
Can the check digit ever be X? No — EAN/UPC check digits are always 0–9. Only ISBN-10 and ISSN (mod-11) can be X.
Related Tools
ITF-14 Validator
Validate an ITF-14 barcode (used on cartons and shipping packaging) by checking the GS1 check digit. Useful for logistics and inventory control.
French IBAN Validator
Validate a French IBAN (FR) by checking the 27-character length and the mod-97 check digit. Verify the bank account before sending money abroad.
ISBN-10 Validator
Validate a book ISBN-10 by computing the mod-11 check digit per the ISO 2108 standard. Useful for libraries, bookstores and older publishing catalogs.
Italian IBAN Validator
Validate an Italian IBAN (IT) by checking the 27-character length and the mod-97 check digit. Verify the bank account before sending money abroad.
SEDOL Validator
Validate a SEDOL code (7 characters) used to identify securities on the London Stock Exchange (LSE), checking the check digit. Useful in international finance.
EAN-13 Validator
Validate EAN-13 (13-digit) retail barcode.