What is the X-dimension?

The X-dimension is the printed width of a single module, usually written in mils (thousandths of an inch) or millimetres. If a barcode is 95 modules wide and the X-dimension is 0.33 mm, the symbol is 95 × 0.33 = 31.35 mm wide before adding the quiet zones.

Module count is a logical property of the symbology - it depends only on how much data you encode. X-dimension is a physical property of the printed label - the same module sequence at a larger X-dimension simply takes up more space.

X = smallX = mediumX = large
Three printings of the same module pattern (10101001000100) at small, medium, and large X-dimensions. Same data, different label real-estate.

Typical values

X-dimensionIn milsWhere you'll see it
0.125 mm5 milPharmaceutical Data Matrix, electronics DPM, miniature labels at the limit of printability
0.165 mm6.5 milEAN/UPC 80%-scale on small packaging
0.264 mm10.4 milEAN-13 / UPC-A nominal 100% size for retail POS - the GS1 standard minimum at POS
0.330 mm13 milEAN-13 at 125% size on outer packaging - a common default
0.495 mm19.5 milITF-14 on corrugated cartons; high-speed conveyor scanning
1.016 mm40 milPallet labels, high-speed warehouse scanning, automated dock doors

GS1 publishes minimum X-dimensions per application context (retail POS, general distribution, direct part marking, etc.) in the GS1 General Specifications. Going below the application minimum is the single most common cause of unscannable barcodes in production.

X-dimension vs printer DPI

Most thermal-transfer label printers used for shipping and retail labels print at one of three resolutions: 203, 300, or 600 dots per inch. Because a printer can only lay down dots at its native resolution, the smallest X-dimension you can print is exactly one dot wide.

Printer DPIOne dot2-dot X3-dot X
203 dpi0.125 mm0.250 mm0.375 mm
300 dpi0.085 mm0.170 mm0.255 mm
600 dpi0.042 mm0.085 mm0.127 mm

ZPL's ^BY command sets the X-dimension in dots, not millimetres: ^BY2 means "module = 2 dots". The same code on a 203-dpi printer gives a 0.250 mm X-dimension; on a 300-dpi printer it's 0.170 mm. This is the most common source of "looks fine on my printer, fails on the production printer" surprises.

Why it matters

  • Scanability. Too small for the printer's resolution → bars and spaces smear; too small for the scanner's depth-of-field → no decode.
  • Symbol footprint. Doubling the X-dimension roughly doubles the printed width (and halves the data density per centimetre of label).
  • Standards compliance. Retail POS, healthcare, and aerospace all have minimum X-dimensions defined by their respective standards bodies. Verifiers explicitly grade against them.

Key standards

Related