Barcode for Food Products

Packaged food sold in shops needs a GS1 UPC (US/Canada) or EAN-13 on every pack size. Make yours here for free, and see when you need weight, lot or expiry barcodes too.

  • 100% free
  • No sign-up
  • No watermark
  • Works offline in your browser

UPC-A 11–12 digits or EAN-13 12–13 digits; the check digit is added or verified.

Customize size, color & style
Make many

How to get a barcode for a food product

  1. License a GS1 company prefix (or single GTINs) and assign one GTIN per flavour and pack size.
  2. Enter the number above and download the SVG or PDF for your packaging designer.
  3. Add case barcodes (ITF-14) if your distributor or retailer needs them.
  4. 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

LevelBarcodeContains
Consumer packUPC-A / EAN-13GTIN-12 or GTIN-13
Small packUPC-E / EAN-8Shortened GTIN
Fresh / variable weightGS1 DataBar Expanded or in-store prefix-2 codesGTIN plus weight, price, best-before
CaseITF-14 or GS1-128GTIN-14, often with lot and dates
PalletSSCC in GS1-128Serial 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.

Related free tools