Open Doc Tools

Which barcode format do you need?

Updated 19 September 2026

Picking the wrong barcode symbology is the sort of mistake you discover at the till. Each format encodes a different kind of data and is read by different equipment, and they are not interchangeable.

The formats

FormatTakesUsed for
EAN-13Exactly 13 digitsRetail products outside North America
UPC-AExactly 12 digitsRetail products in the US and Canada
EAN-8Exactly 8 digitsSmall packages with no room for EAN-13
Code 128Any letters and digitsLogistics, internal labels, asset tags
Code 39Letters, digits, a few symbolsOlder industrial and military systems
ITF-14Exactly 14 digitsShipping cartons of retail goods

How to choose

The check digit

EAN-13, UPC-A, EAN-8 and ITF-14 end in a check digit calculated from the digits before it. Type twelve digits for an EAN-13 and the generator works out the thirteenth for you; type thirteen that do not agree with it and the barcode is invalid even though it renders.

Printing so it scans

Questions

Can I invent my own EAN-13 number?
For an internal system, yes. For anything sold in shops or on a marketplace, no — those numbers are issued by GS1 and checked against a register. Made-up numbers collide with real products.
What is the difference between a barcode and a QR code?
A barcode stores a short number read in one direction; a QR code stores text, links or wifi details in two dimensions and holds far more. Retail uses barcodes; anything pointing at a web page uses a QR code.
Which format should I use for asset tags?
Code 128. It accepts letters, so "LAPTOP-0142" encodes directly, and it is denser than Code 39 for the same content.

Tools used here

EAN-13, UPC-A or Code 128? Barcode formats