How to get a barcode for a food product
- License a GS1 company prefix (or single GTINs) and assign one GTIN per flavour and pack size.
- Enter the number above and download the SVG or PDF for your packaging designer.
- Add case barcodes (ITF-14) if your distributor or retailer needs them.
- Scan-test a printed proof on the real packaging material.
Short answer: Food labelling laws do not require a barcode, but grocery retailers and distributors do. Each flavour and pack size needs its own GS1 GTIN. Print it as UPC-A (North America) or EAN-13 (elsewhere), black on white, at 80%–200% of nominal size.
Barcodes in the food supply chain
| Level | Barcode | Contains |
|---|---|---|
| Consumer pack | UPC-A / EAN-13 | GTIN-12 or GTIN-13 |
| Small pack | UPC-E / EAN-8 | Shortened GTIN |
| Fresh / variable weight | GS1 DataBar Expanded or in-store prefix-2 codes | GTIN plus weight, price, best-before |
| Case | ITF-14 or GS1-128 | GTIN-14, often with lot and dates |
| Pallet | SSCC in GS1-128 | Serial shipping container code |
Lot codes, best-before and recalls
Retail UPCs do not carry lot numbers or dates. Traceability data goes on cases and pallets with GS1-128 (AIs (10) batch, (15) best before, (17) use by), or on the pack in a 2D code. GS1's "Sunrise 2027" goal is for retail checkouts to scan 2D barcodes such as GS1 DataMatrix and GS1 Digital Link QR codes by the end of 2027, which lets brands put batch and expiry on the pack itself.
Packaging tips for food
- Avoid placing the barcode on seams, folds or tightly curved areas such as the neck of a bottle.
- On cans and small jars, turn the barcode so the bars run horizontally (ladder orientation) if the curve distorts it.
- Do not use red or yellow bars, and avoid metallic or transparent backgrounds.
- Ask your printer for a print test and scan it before the full run.
See also: barcode generators for every platform, product and use case.
Frequently asked questions
Is a barcode legally required on food?
Generally no. Food labelling laws cover ingredients, allergens and nutrition. Barcodes are required by retailers and distributors, which makes them essential in practice.
Does each flavour need its own barcode?
Yes. Each flavour, size and pack count is a separate trade item with its own GTIN.
How do weighed products like meat and cheese get barcodes?
Shops often print in-store codes starting with 2 that carry the item and price or weight, or use GS1 DataBar Expanded, which can encode GTIN, weight and dates.
Can I sell at a farmers market without a barcode?
Yes. You only need GS1 barcodes when selling through shops or distributors that scan products.
What size barcode for a small food pack?
UPC-A can go down to 80% of nominal size. Below that, ask GS1 about UPC-E or EAN-8. Do not shorten the bar height.