Free EAN-8 Barcode Generator
EAN-8 is the short retail barcode for packs too small to fit an EAN-13, such as a lipstick or a pack of gum. Type 7 digits and the check digit is added, or all 8 to have it checked.
7 digits, and the check digit is added, or all 8 to have it checked.
The blank margin left and right of the bars, in modules (the width of the narrowest bar). EAN-8 needs at least 7.
Made in your browser; nothing you type is sent to QRdx. WebP and AVIF are encoded by QRdx's server when you pick them, and nothing is kept.
Where EAN-8 barcodes are used
Small retail items where an EAN-13 would cover too much of the pack. Checkout scanners read it like any EAN.
EAN-8 numbers starting with 0 or 2 are kept for use inside a store or company, like EAN-13 numbers starting with 2.
Where do EAN-8 numbers come from?
From GS1, one at a time: GS1 organizations issue EAN-8 numbers (GTIN-8) individually, only for products that are too small for an EAN-13. You can't shorten an EAN-13 into one.
Ask your GS1 organization whether your product qualifies; often a smaller EAN-13 at 80% fits.
EAN-8 input and check digit
What it takes
7 digits, and the check digit is added, or all 8 to have it checked.
Example
96385074Digits only. Seven digits get the check digit added, eight have it checked.
The check digit weighs the 7 digits 3, 1, 3… from the right, as in every GS1 number.
The check digit of 9638507, worked out
| Digit | 9 | 6 | 3 | 8 | 5 | 0 | 7 |
|---|---|---|---|---|---|---|---|
| Weight | ×3 | ×1 | ×3 | ×1 | ×3 | ×1 | ×3 |
| Product | 27 | 6 | 9 | 8 | 15 | 0 | 21 |
The products add up to 86. Adding 4 makes 90, the next multiple of 10, so the check digit is 4.
EAN-8 barcode size
| Example as SVG, PDF or EPS | 28.6 × 22.8 mm |
|---|---|
| Module (narrowest bar) | 0.353 mm |
| Bar height | 18 mm |
| Quiet zone | At least 7 modules each side; the generator starts with 7 |
- At 100% an EAN-8 is 26.73 mm wide with its quiet zones, with a 0.33 mm module; GS1 allows 80% to 200%.
- The vector downloads use a 0.353 mm module, about 107%, with 7 modules of quiet zone each side, the minimum.
EAN-8 barcode API
The same barcode is an image URL, with no API key: put it in an img tag, a label template or a product feed. It checks the value the way this page does, and allows 300 requests a minute per IP address. The barcode API docs list every option.
SVG image
https://api.qrdx.dev/v1/barcode?format=ean8&data=96385074PNG, 3 pixels per module
https://api.qrdx.dev/v1/barcode?format=ean8&data=96385074&type=png&scale=3In a web page
<img src="https://api.qrdx.dev/v1/barcode?format=ean8&data=96385074" alt="EAN-8 96385074" />EAN-8 barcode FAQ
Can I use an EAN-8 instead of an EAN-13 to save space?
Only with an EAN-8 number from GS1. Check first whether an EAN-13 at 80% fits your pack: it's only 29.83 mm wide.
Is EAN-8 the same as UPC-E?
No. Both are short retail barcodes, but a UPC-E is a shortened UPC-A number, while an EAN-8 is a separate 8-digit number issued by GS1.
Other barcode types
All 11 barcode typesBarcodes are static: the data is in the bars, so they work offline and never expire. For a link people scan with a phone camera, use one of the QR code generators.