Barcode Sensei

Make an EAN-13 barcode

EAN-13 is the 13-digit barcode on products sold in shops around the world.

Make many EAN-13 barcodes at once, from a list or a CSV file.

With or without its check digit. Spaces don't count.

100% is GS1's nominal size, and GS1 allows 80% to 200%.

Looks right.

About EAN-13

The barcode on products sold in shops around the world is the EAN-13. Its 13 digits are the product's GTIN, the number a till looks up to find the product and its price. The number itself comes from GS1: you get it from GS1 in your country, as a company prefix to number your products from, or as single numbers where GS1 offers them. We draw the barcode, and you bring the number.

At 100%, GS1's nominal size, its narrowest bar is 0.33 mm, its bars are 22.85 mm tall, and it prints 38 by 28.7 mm with its quiet zones. GS1 allows 80% to 200%, from 0.264 mm to 0.66 mm, and the Size control goes through them in steps of ten. Go smaller only when a pack has no room, and keep the quiet zones clear: 11 times the narrowest bar on the left and 7 on the right.

The 13th digit is the check digit, worked out from the first 12. Going from the right, each is multiplied by 3 and 1 in turn, and the check digit is the one that brings their total up to a multiple of ten. Type 12 digits and we add it, or all 13 and we check it, and tell you the right one if it's wrong.

A spreadsheet drops the zeros at the front of a number in a column of figures, and what's left is another number. Format the column as text before you paste or type. If a number reaches us a digit short and already ends in its own check digit, we ask whether it lost a zero.

Questions people ask

Where do I get an EAN-13 number?

From GS1 in your country, as a company prefix to number your products from, or as single numbers where GS1 offers them. GS1 US and GS1 Canada give out 12 digits, which make a UPC-A. We draw the barcode for a number you already have.

What size should an EAN-13 barcode be?

100%, GS1's nominal size, whenever there's room: 38 by 28.7 mm with its quiet zones. GS1 allows 80% to 200%, so go smaller only on a pack that has no room for it.

How is the EAN-13 check digit calculated?

Going from the right, multiply the first 12 digits by 3 and 1 in turn, add them up, and take the digit that brings the total to a multiple of ten. For 952012345678 the total is 102, so the check digit is 8.

Why did my barcode number lose its first zero?

A spreadsheet takes a column of numbers as figures, and a figure keeps no zero at its front. Format the column as text before you paste or type the numbers, and put back any zero that's gone.

Can I use the sample number on my product?

No. Our samples start with 952, a prefix GS1 keeps for examples, so they're no real product's number. Type your own number from GS1 in its place.