Barcode guide

What Is an EAN-13 Barcode? Structure, Rules & Free Generator

An EAN-13 barcode is the 13-digit, 1D barcode printed on almost every retail product and read at the till. It encodes a GTIN-13 - a globally unique product number defined by GS1. This guide explains what each of the 13 digits means, the size and printing rules that keep a barcode scannable, the mistakes that make codes fail at the checkout, and how to generate a correct EAN-13 free in your browser.

Quick answer: An EAN-13 barcode is a 13-digit retail barcode. The first 2-3 digits are the GS1 prefix (the member organisation that issued the number), the middle digits identify the brand and product, and the final digit is a check digit calculated from the other 12. It is the GS1 standard read at checkouts worldwide.

Core facts
Digits13 (12 data + 1 check)
GS1 prefixfirst 2-3 digits
Check digitcomputed, never typed
Magnification80% - 200%
Quiet zoneleft 11X / right 7X
StandardGS1 General Specifications

What is an EAN-13 barcode?

An EAN-13 barcode is a 13-digit, linear (1D) barcode that encodes a GTIN-13 - a globally unique number for a product. It is the standard retail barcode used outside the US and Canada, where the 12-digit UPC-A is used, and it is defined by GS1. Because it can be scanned from either direction, it is the format found on almost every consumer product and read at supermarket checkouts worldwide. EAN originally stood for European Article Number; it is now the International Article Number.

What do the 13 digits mean?

An EAN-13 number has four parts. You choose the first 12 digits; the 13th is a check digit calculated from the others.

  1. GS1 prefix (first 2-3 digits) - identifies the GS1 member organisation the number was issued through. It is not the country of manufacture: a product can be made anywhere and still carry, for example, a 690-699 (China) or 400-440 (Germany) prefix.
  2. Company prefix and item reference (the middle digits) - assigned to the brand owner; together they identify the specific product. GS1 issues variable-length company prefixes, so the split between company code and product code varies.
  3. Check digit (final digit) - a modulo-10 checksum using alternating weights of 3 and 1. It lets a scanner detect a misread before the number reaches the till, and it is computed automatically.
  4. Note: an EAN-13 that starts with 0 is a UPC-A code with a leading zero - which is why any EAN-13 scanner also reads UPC.

How to generate an EAN-13 barcode (free, in your browser)

Enter the first 12 digits and let the generator append the check digit and draw a correctly proportioned EAN-13. Everything runs in your browser - nothing is uploaded, there is no sign-up and no watermark. Paste a single number or a whole column at once - each line becomes its own EAN-13 on the same printable sheet.

  1. Open the EAN-13 barcode generator.
  2. Type the 12 data digits and leave the check digit off.
  3. Click Generate - the check digit is added and the symbol is drawn.
  4. Use Print sheet to print the codes on a label sheet.
  5. Scan the printed code with your phone before printing a full run.

EAN-13 size, quiet zone and printing rules

A correctly generated barcode can still fail if it is resized or printed without clear space. GS1 specifies that EAN-13 symbols be printed at a magnification between 80% and 200%, with 100% as the standard retail size.

  1. Print at 100% scale. Turn off fit-to-page and scale-to-fit in the print dialog - they resize the bars and can break scanning.
  2. Keep the quiet zones clear. An EAN-13 needs blank, light space before the first bar (about 11 modules) and after the last bar (about 7 modules). No text, borders or images may intrude.
  3. Stay in range. At 100% magnification the module width (X-dimension) is about 0.33 mm and the bars are about 22.85 mm high; GS1 allows a magnification from 80% to 200%.
  4. Use high contrast and good resolution: black bars on a white background, printed with a laser or thermal printer at the highest quality setting rather than economy mode.
  5. Test first: print one label, scan it, then print the batch.

Common EAN-13 mistakes (and EAN-13 vs UPC-A)

Most EAN-13 problems are avoidable. These are the ones that show up most often.

  1. Typing the check digit yourself. Enter only the 12 data digits; a wrong check digit produces an invalid, non-scannable code.
  2. Reusing one number for different products. Each product variant needs its own GTIN; reusing one makes retail systems and marketplaces reject or mix up your listings.
  3. Using EAN-13 in the US where UPC-A is expected. The two are compatible - a UPC-A is an EAN-13 with a leading zero - but some US systems and Amazon listings specify GTIN-12 / UPC-A.
  4. Shrinking the barcode. Fit-to-page or resizing an image in Word or Photoshop changes the module width and can push the symbol below a scanner's limit.
  5. Using a self-made number for real retail. If you sell through stores or Amazon, the GTIN must be issued by GS1 or a verified reseller - a random number is not a valid, unique GTIN.
  6. No quiet zone. A logo, price text or the page edge crowding the bars is a very common cause of a barcode that will not scan.

Reference

Frequently Asked Questions

How many digits does an EAN-13 barcode have?
Thirteen: twelve data digits and one check digit. You normally supply the 12 data digits and the generator appends the check digit.
Do I need to calculate the check digit?
No. Enter the number without the check digit and the generator computes and appends it. Our check digit guide explains how the maths works.
What is the difference between EAN-13 and UPC-A?
UPC-A is 12 digits and is used in the US and Canada; EAN-13 is 13 digits and is used almost everywhere else. An EAN-13 that starts with 0 is a UPC-A with a leading zero, so the two are compatible.
Is an EAN-13 the same as a GTIN?
EAN-13 is the barcode symbol; GTIN-13 is the number it carries. They are often used interchangeably, but the GTIN is the product identity and the EAN-13 is one way to print it.
Do I have to pay for an EAN-13 number?
For real retail you must get a GTIN from GS1 (a one-off and annual fee) or from a licensed reseller. You can generate the EAN-13 image for free, but the number itself must be legitimately issued to be valid at retail.
What size should I print an EAN-13 barcode?
GS1 specifies a magnification of 80% to 200%; 100% is the retail default. Print at 100% scale, keep the quiet zones clear, and always test-scan one label first.

Related barcode tools

Related guides