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.

18 mm
7 modules

The blank margin left and right of the bars, in modules (the width of the narrowest bar). EAN-8 needs at least 7.

4×

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

96385074

Digits 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

Each digit of 9638507 with its weight and product
Digit9638507
Weight×3×1×3×1×3×1×3
Product2769815021

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

Sizes of the EAN-8 example at the generator's default settings
Example as SVG, PDF or EPS28.6 × 22.8 mm
Module (narrowest bar)0.353 mm
Bar height18 mm
Quiet zoneAt 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=96385074

PNG, 3 pixels per module

https://api.qrdx.dev/v1/barcode?format=ean8&data=96385074&type=png&scale=3

In 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 types

Barcodes 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.

Make your next QR code in seconds.

Free forever. No signup, no watermark.

Start Creating QR Codes for Free