The barcode format is the easy part. The question that actually matters is whether the number inside the barcode has to come from an official source. That depends on where the product will be scanned.

Products sold in shops: EAN-13 or UPC-A

Supermarkets, pharmacies and most large online marketplaces scan EAN-13 or UPC-A barcodes. These contain a GTIN (Global Trade Item Number) that identifies your product worldwide.

  • EAN-13 has 13 digits and is used almost everywhere.
  • UPC-A has 12 digits and is traditional in the United States and Canada. Scanners worldwide read both; a UPC-A number is the same as an EAN-13 number with a leading zero.
  • EAN-8 is a short version for very small packs.

These numbers are issued by GS1, a non-profit with an office in most countries. You license a company prefix, then number your products within it. Retailers check that the number is registered to your company. Numbers bought cheaply from resellers often show a different company as the owner, and large retailers and marketplaces can reject them.

If you sell only through your own shop, at markets, or on your own website, you do not need GS1 numbers.

Your own stock, shelves and assets: Code 128

For anything that is only scanned inside your own business, such as stock rooms, warehouse locations, tool loans, library books or equipment tags, use Code 128:

  • It holds letters, numbers and symbols, so you can use your existing SKUs like TS-BLK-M.
  • It is compact for short values.
  • Every modern scanner reads it.
  • The numbers are yours; no registration needed.

Cartons and cases: ITF-14

Outer cartons that hold several retail units use ITF-14, which encodes a 14-digit GTIN for the case. It prints well directly on corrugated cardboard. The number is derived from your product’s GTIN, so it also comes from GS1.

Older systems: Code 39 and Codabar

Code 39 holds capital letters, numbers and a few symbols. It is wider than Code 128 for the same content but is still required by some automotive, defence and ID-card systems. Codabar appears in libraries, blood banks and some courier systems. Use them only when a system asks for them.

Check digits

EAN, UPC and ITF-14 numbers end with a check digit calculated from the other digits. It lets a scanner catch a misread. Our barcode generator adds it if you enter the number without it, and tells you if the last digit of a full number is wrong, which usually means a typo.

Printing tips

  • Black bars on white is the most reliable combination. Red bars do not scan, because most scanners use red light.
  • Keep the blank space (quiet zone) on both sides of the bars.
  • For labels, print a test sheet with outlines and hold it against the label sheet before printing hundreds. Our tool supports common A4 and US Letter label packs and lets you nudge the layout if your printer is slightly off.

Sources