EAN-8 Generator

Generate EAN-8 barcodes in your browser with live preview, validation, and PNG/SVG export.

Advanced options
Enter a value to see a live preview.
Options

These map directly to real generator options; anything not listed here is available under Advanced options above.

What EAN-8 is

EAN-8 (GTIN-8) is a shortened retail barcode for small packaging where a full EAN-13 will not fit, standardized alongside EAN-13 in ISO/IEC 15420.

Generate it now

Enter a 7 or 8-digit GTIN to see a live EAN-8 preview, then export PNG or SVG.

Valid input

EAN-8 encodes exactly 8 digits including a Modulo-10 check digit; bwip-js computes the check digit if you supply the first 7.

Key options

Supported options include includetext, guardwhitespace (extra light-margin indicator chevrons, not the mandatory quiet zone), and height.

Output and printing

Export SVG for small-package artwork where print space is limited.

Common uses

EAN-8 is used for small retail packaging, such as individual candies, small cosmetics, or other items too small for a full EAN-13.

Example

See the live preview above, seeded with a bwip-js-verified valid GTIN-8.

Size guidance

EAN-8 needs a quiet zone like EAN-13, just over a smaller overall symbol footprint; bwip-js reserves it unconditionally, independent of the guardwhitespace option.

Troubleshooting

A mismatched check digit is the most common error; let bwip-js compute it from the first 7 digits.

Related formats

Related formats: EAN-13, UPC-E (the North American short-form equivalent).