EAN Check.comEAN Check.com

EAN-13 Barcode Generator

Make an EAN-13 barcode from your 12 or 13 digit number at the GS1 size shops expect, and download it as SVG, PNG, EPS or PDF. A missing check digit is added for you; a wrong one is pointed out with the right digit.

By The eancheck teamPublished

What an EAN-13 barcode is

EAN-13 is the retail barcode used in most of the world. It carries a 13-digit product number, a GTIN-13, and it is the barcode European, Asian and Latin American shops scan at the till. Shops in the USA and Canada have read it too since 2005. EAN stands for European Article Number: the system started in 1977, when European retailers adopted a 13-digit version of the American UPC. The association that ran it grew into GS1 and took that name in 2005.

The number is the part that matters. A GTIN (Global Trade Item Number) names one product, in one size and one variant, anywhere in the world, and the bars are a way for a scanner to read it quickly. Next to the EAN-13, a pack can also carry a QR code with a GS1 Digital Link for phones.

What each part of an EAN-13 means

The first two or three digits are the GS1 prefix. Then comes your company prefix and the item reference you choose for each product, and the last digit is a check digit calculated from the other twelve. How many digits go to the company and how many to the item depends on how large a block of numbers your company licensed. Not sure the number in front of you is an EAN at all? The barcode identifier tells you what it is.

The digit with no bars

Count the digit groups under the bars: 6 and 6. The 13th digit, the one printed on its own at the far left, is not drawn as bars at all. It is encoded in the pattern of the left six digits, each of which can be drawn in one of two ways. That trick is what let a 13-digit European code fit the same 95 modules as a 12-digit UPC, and it is why a UPC-A is an EAN-13 whose hidden digit is 0. The rules are in ISO/IEC 15420.

The small barcode on the right

Books and magazines often carry a second, shorter barcode to the right of the main one. That is an add-on, with 5 or 2 digits of its own. It is not part of the GTIN, and the section on books and magazines below explains what goes in it.

The prefix is not a country of origin

The prefix tells you which GS1 office issued the company number, not where the product was made or packed. A few common ranges from GS1's prefix list:

PrefixIssued by or used for
001 to 019, 030 to 039, 060 to 139GS1 US (UPC numbers written as EAN-13)
020 to 029, 040 to 049Restricted circulation: numbers a company uses inside its own system
200 to 299Restricted circulation within a region, mostly a shop's own numbers for weighed fruit and meat
400 to 440GS1 Germany
500 to 509GS1 UK
590GS1 Poland
730 to 739GS1 Sweden
870 to 879GS1 Netherlands
977Magazines and other serials (ISSN)
978, 979Books (ISBN); 979 followed by 0 is sheet music (ISMN)

The right size for an EAN-13

At 100% magnification the narrowest bar, the X-dimension, is 0.330 mm, or 13 mils if you switch the units to mils. The barcode is 37.29 mm wide including its quiet zones, and the bars are 22.85 mm tall, with the digits printed below them. The GS1 General Specifications allow 80% to 200% for the till, so from 29.83 to 74.58 mm wide. Labels printed on demand, on a thermal or laser printer, may go down to 75% if the bars are made taller so the barcode keeps at least the area of an 80% one. The generator warns you below 80%.

The quiet zones are not symmetrical: 11 modules on the left, where the hidden 13th digit is printed, and 7 on the right. The small > printed at the right end marks where the right zone ends, so a designer can see how much room to leave. Keep the bars at full height; scaling the whole barcode keeps it readable, cutting the bars short does not. On a narrow side panel, turn the barcode instead with Rotation under More settings.

When the pack is too small: EAN-8

For packs where even an 80% EAN-13 will not fit, such as lip balm or a pack of chewing gum, there is EAN-8: 26.73 mm wide with bars 18.23 mm tall at 100%. GS1 allows it only on small packs, such as those with less than 80 cm² of printable area, and the number comes from your GS1 office rather than from your own prefix, so ask before planning on one. The main generator draws EAN-8 too.

Books and magazines: the add-on

A book's ISBN-13 is an EAN-13 starting with 978 or 979, and a magazine's barcode is an EAN-13 starting with 977. Both often carry the add-on to the right. Books use five digits, an EAN-5, for the price: in the USA a 5 followed by the price, so 51999 is $19.99, and 90000 when no price is printed. Four digits hold at most $99.99. Magazines use two digits, an EAN-2, for the issue number.

The generator draws both. Type the main number, open More settings and enter 2 or 5 digits under Add-on. The share link keeps the add-on, so a designer who opens it sees the same barcode. Outside the USA, the ISBN Users' Manual says the add-on should not carry a price; use 90000 to 98999. If your ISBN has only 10 digits, convert it with the ISBN converter before you start.

To work out the five digits for a US price, or to read the ones already on a cover, use this builder.

Book price add-on (EAN-5)

Add-on: 52495. US price $24.95.

The first digit 5 means US dollars (BISG, Bowker). Outside the US, ISBN agencies use 90000 to 98999 or their own rules.

Make this book barcode

Printing an EAN-13

Choose where the barcode will be printed under Printing on. Office printer sets 100% and a PDF; print it at 100% or Actual size, never Fit to page. Print shop sets 100% and an EPS file for your designer. Amazon keeps the full size with the digits shown. Label printer snaps every bar to whole dots at 203, 300 or 600 dpi, because a bar that falls between dots prints one dot too wide or too narrow.

Packaging printers think in bar width reduction, not in magnification alone. Ask the print shop for their figure, set it under More settings, and send the EPS or PDF. If the design needs coloured bars, choose them there too: the contrast check looks at the colours the way a scanner does, under red light, so it passes dark blue on white and stops red on white. On an office or label printer, print the Print test page from under the download button and measure its 100 mm ruler with a real ruler to see whether your printer scaled the page.

Mistakes that make an EAN-13 fail

A number that is not yours is the costliest. Numbers sold by resellers were licensed to other companies, and marketplaces such as Amazon check the owner in the GS1 database. A wrong check digit is a common technical fault, usually from a number typed by hand; the generator tells you the right digit before you download anything. To check a whole list first, use the check digit calculator.

On the printed pack, watch the quiet zones, the size and the colours. Text or a fold running through the 11 or 7 module zones, a barcode shrunk below 80%, red bars, or bars on a dark background will all fail at some tills even if your phone reads them. Give your packaging designer the EPS, PDF or SVG file rather than a PNG, so the bars stay exact at whatever size they place it. If an old label is already too damaged to scan, the barcode repair tool can recover a missing digit from the check digit.

Frequently asked questions

How do I get an EAN-13 number?

From the GS1 office in the country where your company is based. You license a company prefix and give each product its own number within it. In some countries, such as the USA, you can license a single number instead: GS1 US charges $30 for one GTIN with no yearly fee. Type the 12 digits you assign into the generator and it adds the 13th, the check digit.

Does the first part of an EAN-13 show where a product was made?

No. The first two or three digits show which GS1 office issued the company prefix. A Swedish company that makes its products in China still has a 73 prefix, and a Chinese factory's own brand can carry a prefix from a European GS1 office if the company is registered there. GS1 says so in its own prefix list: the prefix does not identify the country of origin.

What is the > sign at the end of an EAN-13?

It marks the right-hand quiet zone, the 7 modules of blank space that must stay empty. GS1 calls it optional, a device to help keep the quiet zone clear, and some designs use a < at the left end as well. It reminds a designer not to put text, a price sticker or a box edge in that space.

What do the five small digits next to a book barcode mean?

They are an EAN-5 add-on. In the USA the first digit 5 means US dollars and the rest is the price, so 52495 means $24.95, and 90000 means no price is encoded. Outside the USA the ISBN Users' Manual advises against putting a price there; use 90000 or another code from 90000 to 98999. Type your ISBN-13 into the generator, then the five digits under More settings, Add-on.

Do US bookstores need the price add-on?

Many do. Bowker, the US ISBN agency, says the largest US retailers, such as Barnes and Noble, require the EAN-5 add-on. The BISG barcoding guidelines for the US book trade call it optional but note that some retailers require it. If you do not want a printed price, use 90000, which tells the till there is no price in the barcode.

What is the 2-digit add-on on magazines?

An EAN-2 add-on that carries the issue number. The main barcode holds the magazine's number, 977 followed by digits from its ISSN, and the two small digits to the right say which issue this is. The GS1 General Specifications leave it to each till whether it reads the add-on. Enter the two digits under More settings, Add-on, and the generator draws them to the right of the main code.

When am I allowed to use an EAN-8?

Only on small packs. The GS1 General Specifications allow a GTIN-8 when the printable area is under 80 cm², when the largest face you could put a label on is under 40 cm², or on a cylinder less than 30 mm across, such as a lip balm stick. Above that, use an EAN-13 and scale it down to 80% if you need to. EAN-8 numbers come from your GS1 office, not from your company prefix.

My printer asked for a bar width reduction. What is that?

Ink spreads on paper and film, so printed bars come out wider than drawn and the gaps narrower. The print shop measures how much on its own press and asks you to make every bar thinner by that amount. Enter their figure under More settings, Bar width reduction, and send the EPS or PDF. Do not guess a value: the right one depends on the press and the material, and only a print test shows it.

Where does the barcode go on a book?

On the back cover, in the lower right quarter near the spine, as the ISBN Users' Manual advises. Leave white space around it for the quiet zones, and place the price add-on directly to the right of the main bars. The ISBN with its hyphens is usually printed in readable type above the bars. The generator does not draw that line, so set it in your cover layout.

Can US stores scan an EAN-13?

Yes. Since 1 January 2005 point-of-sale systems in the USA and Canada have had to read EAN-13 as well as UPC-A. Many brands that sell in North America still print UPC-A because buyers there expect it, but an EAN-13 scans. The number must still be licensed to your company, because marketplaces such as Amazon check the owner in the GS1 database.

By The eancheck teamPublished

Questions or corrections? Email the eancheck team.