Barcode chart

A quick reference for which barcode format holds what, and what it’s normally used for. For a working generator, go to the barcode generator.

Which barcode format should you use?

Retail products use EAN-13 or UPC-A; almost everything else uses Code 128 or Code 39. The retail formats require a GS1-issued number to be valid for resale. The general-purpose formats encode any text and have no registration requirement, which is why they’re the default for internal stock and logistics.

FormatHoldsDigits/lengthTypical useRegistration needed?
EAN-13Numeric13 digitsRetail products outside North AmericaYes (GS1)
UPC-ANumeric12 digitsRetail products in North AmericaYes (GS1)
Code 128Any printable ASCIIVariableInternal stock, logistics, shipping labelsNo
Code 39A-Z, 0-9, - . $ / + % spaceVariableOlder scanning equipment that can’t read Code 128No
ITF-14Numeric14 digitsCartons and pallets (shipping units, not individual products)Yes (GS1)
GS1-128Numeric + application identifiersVariableLogistics labels carrying batch, date or quantity dataYes (GS1)
SSCCNumeric18 digitsTracking a single shipping unit (pallet, case) through a supply chainYes (GS1)
Data MatrixAny text (2D)VariableSmall parts and electronics, where space is too tight for a linear barcodeNo

How small can each format be printed before it stops scanning?

We’ve directly measured this for the four most common formats (EAN-13, UPC-A, Code 128 and Code 39) by printing each at six sizes and scanning the results with a phone camera. We haven’t run the same test on ITF-14, GS1-128, SSCC or Data Matrix, so no minimum size is claimed for those here.

Smallest size that scanned first try
EAN-13
50% · X=0.165mm
15.7 mm wide
UPC-A
50% · X=0.165mm
15.7 mm wide
Code 128
65% · X=0.214mm
24.0 mm wide
Code 39
65% · X=0.214mm
30.7 mm wide

Brother HL-L2375DW mono laser · Plain A4 copier paper · Standard quality · Pixel 9 Pro XL rear camera · Bright indoor light · 2026-08-02

Full method and results: barcode generator.

Written by Robert Wells · Published 2026-08-03