Ramadan countdown

Barcode generator

Quick answer: Use EAN-13 (or UPC-A in the US and Canada) for retail products, ITF-14 for outer cartons, Code 128 for warehouse and shelf labels, and GS1 DataMatrix for medicines. For EAN-13, enter 12 digits and the 13th check digit is added; enter all 13 and the tool checks the last one.

Choose a barcode type, enter the number or text, and download a print-ready PNG or SVG.

EAN-13: 12 digits; the 13th (check digit) is added for you. For products sold in shops.

Related tools

Which type should I use?

How the EAN-13 check digit works

Take the first 12 digits and start from the right: multiply the last digit by 3, the one before by 1, then 3, then 1, and so on. Add the results. The check digit is whatever brings the total up to the next multiple of ten. For 628123456789 the total is 115, so the check digit is 5 and the barcode is 6281234567895.

Can I make up a number for my product?

Not if you will sell it in shops. EAN and UPC numbers are issued by GS1, and retailers check them. For internal use such as stock, assets or shelf labels, use Code 128 with your own numbers.

The country prefix

The first digits show which GS1 office issued the number: 001 to 019, 030 to 039 and 060 to 139 for the US, 300 to 379 for France, 840 to 849 for Spain, 750 for Mexico, 628 for Saudi Arabia, 629 for the UAE. GS1 points out that the prefix does not tell you where the product was made.

To read an existing barcode with your phone camera, use the Barcode scanner.

Sources

Frequently asked questions

PNG or SVG?

PNG is fine for normal printing and for Word. SVG stays sharp at any size and is best for print shops and label software.

Will scanners read it?

Yes. We read back every type with the barcode scanner after making it. When printing, leave white space around it and don't shrink it too much.

How do I write an expiry date in GS1?

As year, month and day, two digits each, after (17). For example, 31 December 2027 is (17)271231.