Skip to content

EAN-8 Barcode Generator

Generate a print-ready EAN-8 barcode for small packages. Type the 7 data digits and the tool adds the check digit, or enter all 8 digits to have them validated. Adjust bar width, height and colours, then download PNG, SVG or a vector PDF. Everything is drawn in your browser.

7 digits (check digit calculated) or 8 digits (validated).

Valid· check digit 4 added

Customize
#000000
#ffffff

Generating…

Your data stays on your device.

How does it work?

  1. 1Enter 7 digits to have the check digit added, or 8 digits to validate an existing EAN-8.
  2. 2Watch the valid/invalid indicator: if the length, characters or check digit are wrong, a message explains what to fix.
  3. 3Adjust bar width, bar height and colours, and switch the human-readable digits on or off.
  4. 4Download the barcode as PNG, SVG or a vector PDF.

What is EAN-8 Barcode Generator?

EAN-8 is the compact member of the EAN/UPC family, also known as GTIN-8. It holds eight digits: a GS1 prefix that identifies the numbering agency, an item reference and a final check digit. The symbol is 67 modules wide: a start guard, four digits, a centre guard, four digits and an end guard. It is meant for products whose packaging is too small for a 13-digit EAN-13, such as pens, lip balms or confectionery.

Unlike EAN-13, an EAN-8 is not built from your own company prefix. In most countries these short numbers are allocated one by one by the national GS1 organisation, so a number you invent may already belong to another product. Use this generator for artwork, tests, or when you already hold an allocated number. Compared with UPC-E, which is a zero-compressed form of a 12-digit UPC-A, an EAN-8 is a stand-alone number and cannot be expanded into a longer code.

When should you use it?

  • Your product is too small to carry a full EAN-13 label.
  • Your GS1 member organisation assigned you an EAN-8 number and you need the artwork.
  • You want to check that an EAN-8 read from existing packaging has a valid check digit.
  • You are testing a point-of-sale or inventory system with sample short codes.

How the EAN-8 check digit is calculated

Multiply the first seven digits by 3, 1, 3, 1, 3, 1, 3 from left to right and add the products. The check digit is the number that brings the total up to the next multiple of 10 (0 if it already is one). Example: for 9638507 the sum is 27 + 6 + 9 + 8 + 15 + 0 + 21 = 86, so the check digit is 4 and the full code is 96385074.

Privacy

This tool runs in your browser. What you type, paste or open is processed on your device by JavaScript and is not sent to our servers, stored or shared. Your data stays on your device.

The digits you type never leave the page: the barcode is rendered locally as SVG and contains only the eight digits shown.

Frequently Asked Questions

How many digits does an EAN-8 have?

Eight: seven data digits plus one check digit. Enter seven and the generator appends the check digit; enter eight and it verifies the last one.

What size should an EAN-8 be printed?

The GS1 nominal size at 100 % is about 26.7 × 21.3 mm including quiet zones, and scaling from 80 % to 200 % is allowed. Keep at least 7 modules of empty space on each side (roughly 2.3 mm at 100 %) and print at actual size without stretching.

Can I use an EAN-8 instead of an EAN-13 to save space?

Only if the number was issued as an EAN-8. Retailers expect the GTIN allocated to the product, and EAN-8 is reserved for packages where an EAN-13 genuinely does not fit.

Why does the generator say my code is invalid?

Usually the length is not 7 or 8 digits, a non-digit was typed, or the eighth digit does not match the calculated check digit. The message under the preview names the problem.