Home · Learn · What Is an 8-Digit Barcode?
What Is an 8-Digit Barcode?
8 digits, used on packaging too small for a standard UPC-A or EAN-13. Two formats share the 8-digit length: EAN-8 (international) and UPC-E (North American compressed UPC).
An 8-digit barcode is either an EAN-8 (8 separately-issued digits identifying a small-package product) or a UPC-E (compressed 8-digit form of a UPC-A that contains a specific pattern of zeros). Both look like 8-digit retail codes at a glance, but they're issued and decoded differently.
Both formats exist for the same reason: standard retail barcodes (12 or 13 digits) don't physically fit on small packaging — single-serve cosmetics, candy bars, sample sachets, gum, small electronics. GS1 issues short-prefix codes specifically for compact packaging.
EAN-8: independently issued 8-digit codes
EAN-8 is a separately registered short code from GS1. The 8 digits comprise 2-3 country prefix digits + 4-5 product digits + 1 check digit. EAN-8 is NOT derived from an existing EAN-13 — it's a separate GS1 allocation specifically for small packaging. Cost-prohibitive: GS1 charges a premium for EAN-8 because supply is limited (only 10 million possible codes worldwide).
UPC-E: compressed form of UPC-A
UPC-E is a different beast — it's a compressed UPC-A that algorithmically derives 8 visible digits from a 12-digit UPC-A containing specific zero patterns. A scanner reads UPC-E and reconstructs the original UPC-A internally. Only certain UPC-A numbers can be compressed to UPC-E (those with the right zero patterns); most can't. Cost: same as a regular UPC-A (no premium).
How to tell EAN-8 from UPC-E at a glance
Both have 8 visible digits. Differences: UPC-E typically starts with '0' or '1' (number system digit from the parent UPC-A). EAN-8 can start with any digit. UPC-E codes are slightly narrower visually because the compression encoding is more dense. The check-digit math also differs — UPC-E inherits the parent UPC-A's check digit logic; EAN-8 computes its own.
Where you see 8-digit barcodes
Cosmetics samples and sachets. Single-stick gum packs. Single-serve candy. Travel-size toiletries. Small electronic accessories (button batteries, USB cables in mini packaging). Mini drink bottles. Most full-size retail products use 12 or 13 digits; 8-digit codes are specifically the small-package niche.
FAQ
Is an 8-digit barcode an EAN-8 or UPC-E?
Both are 8-digit formats but different. EAN-8 is a separately-issued GS1 short code for small packaging. UPC-E is a compressed form of an existing UPC-A. You can usually tell by the first digit (UPC-E starts with 0 or 1) and the visual compactness (UPC-E is slightly narrower).
Can I convert UPC-A to UPC-E?
Only if the UPC-A contains specific zero patterns (e.g., 04210000526X compresses to 042152). Most UPC-A codes don't compress. The conversion algorithm is defined in the GS1 spec; not every product can have a UPC-E variant.
Generate an 8-digit barcode?
For EAN-8, use upcgen.com/generators/ean-8. For UPC-E (compressed UPC-A), use upcgen.com/generators/upc-e. The generators handle the format-specific check digit math.
Do I need a separate GS1 license for EAN-8?
Yes — EAN-8 codes are issued separately from your regular GS1 Company Prefix, at a premium price, and only granted when you demonstrate that your product packaging is too small for a regular 12 or 13 digit code. UPC-E doesn't need a separate license — it derives from an existing UPC-A you already own.
Related generators
Need a real barcode now?
Generate a valid EAN-8 barcode in seconds — no signup, no watermark. Free for casual use; paid plans from $9/mo for higher volume.