Barcode Sizes, Quiet Zones and Why Barcodes Don’t Scan

Most barcodes that won’t scan are too small, too short, too close to an edge or printed badly. Here are the sizes that work, and how to check a label before you print a thousand.

The X-dimension

Every linear barcode is built from a basic width: the width of the narrowest bar, called the X-dimension or module. All other bars and spaces are whole multiples of it. When people talk about a barcode’s size, they mostly mean its X-dimension, because that decides both how wide the barcode is and how easy it is to scan.

For EAN-13 and UPC-A, GS1 defines 100% magnification as an X-dimension of 0.33 mm. Barcodes scanned at shop checkouts can be from 80% (0.264 mm) to 200% (0.66 mm).

EAN-13 and UPC-A sizes
SizeX-dimensionWidth with marginsBar height (full)
80%0.264 mm29.83 mm18.28 mm
100%0.330 mm37.29 mm22.85 mm
150%0.495 mm55.94 mm34.28 mm
200%0.660 mm74.58 mm45.70 mm

Other symbologies have their own ranges. Code 128 and GS1-128 used in warehouses and on shipping labels are normally printed larger than retail barcodes so they can be read from further away; ITF-14 on cartons larger still. For your own internal Code 128 labels, keep the narrowest bar at about 0.25 mm or more and most handheld scanners will read it easily.

Bar height

Retail barcodes have a standard bar height that scales with the size: 22.85 mm at 100%. Shorter bars — “truncated” barcodes — are very common on small labels. Handheld scanners read them fine because they scan straight across. Fixed checkout scanners read from several angles and rely on enough height; that is why retailers may reject heavily truncated barcodes. If your barcode is for store checkouts, keep the bars as tall as the label allows and leave out extra text if space is tight.

Quiet zones

The quiet zone is the blank space a scanner needs either side of a barcode to find where it starts and ends. It is part of the barcode, not decoration.

  • EAN-13: 11 × X on the left, 7 × X on the right.
  • UPC-A: 9 × X on each side.
  • EAN-8: 7 × X on each side.
  • Code 128, GS1-128 and ITF-14: 10 × X on each side.
  • QR codes: 4 squares all round.

Text, label edges, folds and seams must stay out of the quiet zone. The barcode generator’s preview shades it so you can see it.

EAN-13 barcode on a 50 by 25 mm label with the quiet zones either side of the bars shaded in light blue
The generator’s preview shades the quiet zones (light blue here) so you can see what must stay blank.

Fitting barcodes on common labels

  • 2 × 1 in / 50 × 25 mm: an EAN-13 or UPC-A fits at a little over 100% width with a name and price, with shortened bars.
  • 38 × 25 mm: an EAN-13 fits at about 90–94% on a 600 dpi printer, but only about 76–77% at 203 or 300 dpi, because bars must be a whole number of printer dots (see thermal printing).
  • 2⅝ × 1 in (Avery 5160 size): plenty of width; height is the limit when you add text. See Avery 5160 labels.
  • 4 × 6 in: room for full-height barcodes at large sizes, and for ITF-14 and GS1-128.

Colors and materials

Combinations that usually scan, and ones to avoid
Usually scans wellOften fails
Black bars on whiteRed, orange or yellow bars
Dark blue, dark green or dark brown bars on whiteAny bars on a dark background
Black bars on light yellow or light colorsGold, silver or other metallic inks
Matte labelsVery glossy or clear labels over a dark product

Scanners look for contrast between bars and spaces using red light, which is why red bars look the same as the background to them.

Choosing a barcode type by space

  • Very small retail packs: EAN-8 (a separate number from GS1) or UPC-E (only for qualifying UPC-A numbers).
  • Internal labels on small items: Code 128 with a short code; every extra character makes the barcode wider.
  • Lots of information: GS1-128 for batch and dates on cartons; a QR code for a web address.

Why barcodes don’t scan

  1. Too small. Below about 80% for retail barcodes, or bars thinner than the scanner can resolve.
  2. Missing quiet zone. Text or an edge too close to the bars.
  3. Scaled when printed. “Fit to page” or resizing an image in a document changes bar widths, often unevenly.
  4. Uneven bars from a low-resolution printer. On a 203 dpi printer, bars that aren’t a whole number of dots come out uneven. Choose the printer resolution so bars snap to the dots.
  5. Poor contrast. Dark bars on a light background work; red bars are invisible to many scanners, which use red light, and dark backgrounds or shiny metallic surfaces cause problems.
  6. Faded or patchy print. Low thermal darkness, a dirty print head, or direct thermal labels left in the sun.
  7. Curved or creased surfaces. A barcode around a narrow bottle may need to run vertically (bars horizontal) so it isn’t bent across the curve.
  8. The number itself is wrong. A barcode with an invalid check digit won’t be accepted by most scanners. Check it with the check digit calculator.

Test before you print the batch

Print one label at 100% and scan it with a phone camera app and, if you have one, the scanner your customers or warehouse will use. Try it from a normal distance and at a slight angle. For sheets, print the test page and check alignment against a real sheet. A few minutes of testing saves a box of wasted labels. For label printers, the Zebra printing guide covers darkness and calibration.

Frequently asked questions

What is the minimum size for a UPC or EAN barcode?

For checkout scanning, 80% of the standard size: an X-dimension of 0.264 mm, about 29.83 mm wide including margins.

Can I make the bars shorter?

Yes, and it’s common on small labels. Handheld scanners read short bars well; omnidirectional checkout scanners prefer taller bars.

What is a quiet zone?

The blank margin a scanner needs either side of the barcode, a set multiple of the narrowest bar width. Keep text and edges out of it.

Why won’t my barcode scan when it looks fine?

Common causes are printing scaled (not 100%), a missing quiet zone, bars too thin for the scanner, or uneven bars from a low-resolution printer.