EAN-8 Checksum Validator
Validate an EAN-8 barcode (8 digits) by checking the check digit with the official algorithm. Useful for small products, retail and inventory control.
EAN-8: the short retail barcode for small packages
EAN-8 (also called GTIN-8) is the 8-digit member of the GS1 barcode family, created for products too small to carry the full 13-digit EAN-13 — think gum, lip balm, single confectionery or cosmetics. It is administered by GS1, and unlike a truncated EAN-13 it is a distinct, separately allocated number. The validator on this page checks the 8-digit structure and the check digit.
The checksum is the standard GS1 mod-10: take the first seven digits, weight them alternately by 3 and 1 (the leftmost digit gets weight 3), sum, and the check digit is (10 − (sum mod 10)) mod 10.
Structure of an EAN-8
- GS1 prefix (2–3 digits): the number-system / country bank that allocated the code (e.g.
40–44Germany,789–790Brazil). - Item reference: the remaining digits, assigned by GS1 to the specific product — there is no separate company field in EAN-8.
- Check digit (last): the mod-10 digit above.
EAN-8 vs EAN-13
- Not a shortened EAN-13: EAN-8 numbers are drawn from a separate pool; you can't derive one from the other.
- Allocation is scarce: GS1 grants EAN-8 only when EAN-13 genuinely won't fit, because the 8-digit space is small.
- Same scanner: POS readers decode both; internally both are zero-padded to a 14-digit GTIN-14.
Gotchas
- GTIN-14 padding: when stored in databases, an EAN-8 is often left-padded with zeros to 14 digits — strip them before display.
- Restricted-circulation codes: prefixes
02and20–29are for in-store use (variable-weight items) and aren't globally unique. - Valid checksum ≠ registered product: the algorithm only proves the number is well-formed.
- Leading zeros matter: store as a string; an integer drops them and breaks the checksum.
FAQ
How is the EAN-8 check digit computed? Weights 3,1,3,1,3,1,3 over the first seven digits; check = (10 − sum mod 10) mod 10 — the same mod-10 used by EAN-13 and UPC.
Can I convert EAN-8 to EAN-13? No. They are independent allocations. For internal systems you pad to GTIN-14, but that's zero-padding, not conversion.
Why use EAN-8 at all? Physical space: the 13-digit symbol is too wide for very small packaging, so GS1 issues a compact 8-digit code instead.
Related Tools
EAN-13 Checksum Validator
Validate an EAN-13 barcode (13 digits) by its official check digit. Essential for retail, inventory control and product registration.
EAN-13 Validator
Validate EAN-13 (13-digit) retail barcode.
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.
UPC-A Validator
Validate UPC-A (12-digit) barcode used in US/Canada retail.
ISO 8601 Time Strict Validator
Strictly validate an ISO 8601 duration string (like P1Y2M10DT2H30M). Useful for APIs, scheduling, videos and any field using the ISO duration standard.
Real ISSN Validator with Checksum
Validate ISSN (8 digits: NNNN-NNNX where X may be 0-9 or X). Format check and MOD 11 algorithm.