What is inside a product barcode
The bars on a product encode a number called a GTIN (Global Trade Item Number), usually 13 digits (EAN-13) or 12 digits in North America (UPC-A). The first digits are a company prefix issued to a business; the rest identify the product; the last digit is a check digit.
Company prefixes are managed worldwide by GS1, a non-profit with an office in most countries (GS1 Estonia, GS1 UK, GS1 US and so on). That is how a number stays unique across every shop in the world.
Do you need GS1 numbers?
- Yes if you sell through retail chains, supermarkets, pharmacies or online marketplaces such as Amazon. They expect numbers registered to your company.
- No for barcodes used only inside your own business: stock, shelves, assets, documents, a small shop’s own till system. Use your own numbers (for example with Code 128), or EAN numbers starting with 20–29, which are reserved for in-store use.
How to get GS1 numbers, step by step
- Contact the GS1 office in your country and apply for membership. The fee usually depends on your turnover and how many numbers you need.
- Receive your company prefix, which gives you a block of numbers (for example 10, 100 or 1,000 products).
- Assign one number per product variant, and keep a list of which number is which product. Never reuse a number for a different product.
- Register the product data (name, brand, size, image) in GS1’s system if your retailers ask for it.
- Make the barcode images. Enter the 12 digits in the EAN-13 generator (or 11 in the UPC generator); the check digit is added automatically. Download as SVG for your packaging designer.
- Test-print at the final size and scan it with a phone app and, if possible, a shop scanner.
Printing the barcode on packaging
- Keep it at 80–200% of the standard size (about 37 × 26 mm at 100%), with white space on both sides.
- Black bars on a white background are safest. Red bars are invisible to many scanners.
- Avoid seams, folds and strongly curved surfaces.
Many products at once? Make every barcode from a spreadsheet with the batch generator (set the type column to ean13).
Completing or checking many numbers at once? Use the check digit calculator.