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.
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.