BarcodeSheets

EAN-13 Barcode Generator

Enter 12 digits and get a scan-ready EAN-13 barcode — the 13th check digit is computed automatically, free and unlimited.

Unlimited — no caps SVG & print-res PNG free No account 100% in your browser

What EAN-13 encodes

EAN-13 is the international retail barcode standard — the format printed on the vast majority of packaged products sold outside North America, and readable by every retail scanner worldwide. It encodes a 13-digit GTIN (Global Trade Item Number): a GS1 prefix identifying the country or region where the barcode was registered, a manufacturer/company code, a product reference, and a check digit. Enter the first 12 digits here and this generator computes the 13th (check digit) for you automatically — you don't need to calculate it by hand.

Digit structure and the GS1 prefix

An EAN-13 number breaks down into three parts before the final check digit: a 2-3 digit GS1 prefix (assigned to the GS1 member organization where the manufacturer registered — not necessarily where the product is made), a manufacturer/company code, and a product reference number the manufacturer assigns internally. Together, those 12 digits plus the check digit form the GTIN-13.

Do you need a GS1-licensed number?

A real EAN-13 number has to come from a GS1-licensed manufacturer prefix to be globally unique and usable at retail — a barcode generated here is a correctly-formed, scannable EAN-13 image, but generating one doesn't register a GTIN in GS1's database. If you're selling through a retailer or marketplace that checks GTINs, you'll need a licensed number; for internal use or any system you control, a generated one works as-is.

The check digit

EAN-13's check digit uses a standard mod-10 algorithm: starting from the digit immediately to the left of the check digit and moving left, digits alternate weights of 3 and 1. Multiply each digit by its weight, sum the results, and the check digit is whatever value brings that sum up to the next multiple of 10. This generator computes it for you — just enter the first 12 digits.

Where EAN-13 is used

EAN-13 is the default retail barcode across Europe, Asia, and most of the world outside the US and Canada (where UPC-A is more common, though EAN-13 scanners read UPC-A too). It's also the base format behind ISBN barcodes on books (the Bookland 978/979 prefix) and EAN-8 for very small packages. If you're labeling a retail product for an international audience, EAN-13 is the format scanners expect.

Sizing and printing guidance

GS1's specification gives EAN-13 a nominal size of 37.29 mm × 25.93 mm at 100% magnification, with an acceptable range from 80% to 200% of that size — shrink it further and scanners start to struggle, especially under warehouse or store lighting rather than a controlled lab setting.

Quiet zones

Quiet zones — the clear margins on either side of the bars — need to be at least 11 times the x-dimension (narrow bar width) on the left and 7 times on the right; EAN-13's right-hand quiet zone is intentionally narrower than the left because of how the symbol's guard patterns are structured. Crowding either margin is one of the most common reasons a technically-correct barcode fails to scan.

Printing guidance

For retail packaging, print at 300 dpi minimum, never scale below 80% magnification, and keep bars pure black on a white or light background — GS1 explicitly discourages low-contrast or reversed (light-on-dark) printing because it degrades scan rates.

Frequently asked questions

How many digits is an EAN-13 barcode?

13 digits total: 12 data digits (GS1 prefix, manufacturer code, and product reference) plus 1 check digit. This generator computes the check digit automatically — you only need to enter the first 12.

How is the EAN-13 check digit calculated?

Using a mod-10 algorithm: starting from the digit next to the check digit and moving left, digits alternate weights of 3 and 1. Multiply, sum, and the check digit is whatever value rounds that sum up to the next multiple of 10.

What's the difference between EAN-13 and UPC-A?

UPC-A is a 12-digit format used mainly in the US and Canada; EAN-13 is its 13-digit international counterpart. Every UPC-A number is actually a valid EAN-13 with a leading zero, and most modern scanners read both — see our UPC-A generator at /upc.

Do I need a GS1 number to generate an EAN-13 barcode?

Not to generate a scannable barcode image — this tool will encode any valid 12 or 13-digit number you provide. But to sell through a retailer or marketplace that looks up GTINs in GS1's database, you need a real, GS1-licensed manufacturer prefix; a self-assigned number won't be globally unique.

What size should an EAN-13 barcode be printed?

GS1's nominal size at 100% magnification is 37.29 × 25.93 mm, with an acceptable range of 80-200% of that. Stay within that range, keep the quiet zones (11x the bar width on the left, 7x on the right) clear, and print at 300 dpi or higher for reliable scanning.