Which type should I use?
- EAN-13 / UPC-A: product barcodes for shops and supermarkets. UPC-A is the US and Canada version.
- ITF-14: for the outer carton holding several units.
- Code 128: for warehouse locations, shelves and parcels. Takes letters and numbers.
- GS1-128: for pallet and shipment labels carrying batch and expiry.
- GS1 DataMatrix: the square code on medicine packs, holding product number, expiry, batch and serial number.
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.