Code 128 Barcode Label Size Guide for Reliable Scanning
A barcode can look fine but still fail to scan if it is too small, stretched, cropped, or printed with the wrong scale. These Code 128 size rules help you create labels that scanners can read reliably.
We checked labels with short and long values at multiple sizes. Reliable scanning depends on module width, data length, print resolution, contrast, quiet zones, and scanner distance, so this guide avoids a universal minimum width claim.
Why Barcode Size Matters
Code 128 barcodes encode data as a series of bars and spaces of varying widths. The narrowest bar — called a module — must be wide enough for your printer to reproduce accurately and for your scanner to distinguish from adjacent bars. If the label is printed too small, or if a long data value is squeezed into a narrow label, individual bars merge together or become unreadable. Getting the size right is the most important factor in ensuring your labels scan reliably.
The Module Width Principle
In Code 128, all bar widths are multiples of the "module" (the width of the narrowest element). The minimum recommended module width for general use is 0.19mm to 0.25mm, but the practical minimum depends heavily on your printer resolution and the data being encoded. At 300 DPI, the physical minimum printable bar is approximately 0.085mm — which is technically possible but extremely risky. At 600 DPI, each dot is 0.042mm, giving much more reliable reproduction of thin bars.
Recommended Label Sizes by Use Case
- Standard inventory or warehouse shelf label: 60×40mm or 70×40mm — safe for most scanners at standard ranges
- Compact product label or price tag: 40×25mm — acceptable if the barcode value is short (under 8 characters)
- Small shelf or bin label: 30×20mm — use only for short codes and verify scanning at the actual scanner distance
- Full product label with product name and price: 80×50mm or larger — more space for readable text alongside the barcode
The Quiet Zone Requirement
Every Code 128 barcode must have a quiet zone — a blank white area on the left and right ends of the barcode symbol. The minimum quiet zone is 10× the module width, which at a typical module width of 0.25mm equals 2.5mm on each side. In practice, a safe quiet zone is at least 3mm on each side. BarcodeMaker includes these quiet zones automatically in the generated PDF. Do not crop the PDF, place borders too close to the barcode, or use label designs that put content in the quiet zone area.
How Data Length Affects Label Width
Code 128 barcodes get wider as the amount of data increases. A short code like "A01" produces a narrow barcode. A long code like "PRODUCT-LINE-A-VARIANT-007-COLOR-BLUE" produces a wide barcode. If you are encoding long data values on small labels, either increase the label width using the BarcodeMaker Template designer, or shorten your barcode values to use abbreviated codes.
Avoid These Size Mistakes
- Printing with "Fit to Page" enabled — always use 100% scale
- Cropping the barcode too close to the bars, removing the quiet zone
- Using very long codes (over 15 characters) on labels under 40mm wide
- Printing with low contrast (gray ink on gray paper)
- Mixing very narrow and very wide labels on the same sheet — inconsistent results
- Scaling down a PDF to fit more labels per sheet — always generate at the correct size
Scanner Distance and Label Size
Handheld contact scanners (those held a few centimeters from the label) can read small barcodes reliably. Fixed-mount warehouse scanners that scan from 30–60cm away require larger barcodes. Presentation scanners on retail counters work best with barcodes at least 30mm wide. Match your label size to your actual scanning environment and always test at the real scanner distance.
Best Printer Setup for Barcode Labels
Use 100% scale in the print dialog. Select the highest quality or standard (not draft) print mode in your printer settings. Laser printers produce sharper edges than inkjet printers and are recommended for barcode labels, especially on glossy or coated label paper. If you use an inkjet printer, matte label paper gives more consistent results than glossy. Always print one test page and scan a few barcodes before committing to the full print run.
Primary references
External references are provided for standards and platform-specific details. BarcodeMaker is not affiliated with GS1, Shopify, Google, or Adobe.
Generate correctly sized Code 128 labels
Create Labels Free →