QRCodeChamp Logo
File Sharing

EAN-13 Barcode Generator

Retail products worldwide

EAN-13

13 characters
Valid EAN-13Allowed: 12 digits (+ auto check digit)

To sell in retail stores you need a GS1 company prefix. Get one from GS1 (opens in a new tab)

Live preview

EAN-13 barcode for 9520123456788
Download format

What Is a EAN-13 Barcode?

EAN-13 is the barcode printed on retail products around the world and scanned at checkout. It holds a 13-digit GTIN that identifies one specific product, such as one size and flavor. Shops, marketplaces and distributors use it to look up the product and its price in their own systems.

The number starts with a GS1 company prefix, followed by an item reference and a check digit at the end. The check digit is calculated with weights 1 and 3 so scanners can catch misreads; enter 12 digits and we add it for you. For products sold in stores, the number must come from GS1, not be made up.

What Data Can EAN-13 Hold?

12 digits, and we add the 13th check digit automatically; or all 13 digits, and we verify the check digit. Spaces and hyphens are removed, and only digits are allowed.

Recommended Size

At 100% size an EAN-13 is 37.29 x 25.93 mm, with an X-dimension of 0.33 mm, and GS1 allows 80% to 200% of that size. Keep the blank margins (11 times the narrowest bar on the left, 7 on the right) and don’t cut down the bar height.

How the EAN-13 Bar Pattern Is Built

An EAN-13 symbol is 95 modules wide. It has a start guard, six digits on the left, a center guard, six digits on the right and an end guard. Each digit uses 7 modules made of two bars and two spaces.

Only 12 digits are drawn as bars. The first digit is hidden in the pattern: the left-hand digits are encoded with two different parity sets, and the mix of those sets spells out the leading digit. This is also how EAN-13 stays compatible with UPC-A, which is simply the case where that hidden digit is 0.

What the EAN-13 Prefix Does and Doesn't Tell You

The first two or three digits are a GS1 prefix that shows which GS1 member organization issued the company prefix. They do not show the country where a product was made. A few ranges have special meanings.

  • 978 and 979: books (ISBN) and printed music (979-0, ISMN)
  • 977: magazines and other serials (ISSN)
  • 20 to 29: in-store numbers for restricted use, such as weighed goods

How to Create a Barcode in 3 Steps

STEP : 1

Choose a barcode type

Select a category on the left (e.g. Linear Codes), then the exact type like Code-128.

STEP : 2

Enter data & customise

Type your data — we check it live and add check digits. Adjust size, font and colors.

STEP : 3

Download or print

Get PNG, JPG, SVG, PDF or EPS, or print a full sheet of labels in one click.

Why Use QRCodeChamp Barcode Generator

125+ barcode types

Linear, 2D, GS1, postal, healthcare and payment codes.

Live validation

Friendly errors with one-click fixes and automatic check digits.

Print-ready PDF

Exact mm sizes, label sheets (Avery, A4, 4×6 thermal).

Bulk barcodes

Paste a list or generate number sequences.

Choose the Type of Barcode You Need

Not sure which barcode to use? Start with what you need it for — we’ll pick the right type.

EAN-13 FAQs

Yes, for products sold in shops or on marketplaces. Your local GS1 organization issues the company prefix; creating a barcode does not register a number.

It is the last digit, calculated from the first 12. Digits in even positions are multiplied by 3, everything is added up, and the check digit brings the total to the next multiple of 10.

Yes, for tests and mock-ups. Numbers starting with 20 to 29 are reserved for in-store use, and the prefix 952 is reserved by GS1 for examples, so neither clashes with real products.

UPC-A is a 12-digit version used mainly in the US and Canada. A UPC-A number with a 0 in front is the same as an EAN-13, and checkout scanners read both.

No. It shows which GS1 office issued the company prefix. A company registered in one country can make its products anywhere.

Yes. The parity patterns tell the scanner which half it is reading, so EAN-13 can be scanned in either direction.