X-dimension
The physical width of one module - the unit every other barcode measurement is built from.
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.
10101001000100) at small, medium, and large X-dimensions. Same data, different label real-estate. Typical values
| X-dimension | In mils | Where you'll see it |
|---|---|---|
0.125 mm | 5 mil | Pharmaceutical Data Matrix, electronics DPM, miniature labels at the limit of printability |
0.165 mm | 6.5 mil | EAN/UPC 80%-scale on small packaging |
0.264 mm | 10.4 mil | EAN-13 / UPC-A nominal 100% size for retail POS - the GS1 standard minimum at POS |
0.330 mm | 13 mil | EAN-13 at 125% size on outer packaging - a common default |
0.495 mm | 19.5 mil | ITF-14 on corrugated cartons; high-speed conveyor scanning |
1.016 mm | 40 mil | Pallet 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 DPI | One dot | 2-dot X | 3-dot X |
|---|---|---|---|
| 203 dpi | 0.125 mm | 0.250 mm | 0.375 mm |
| 300 dpi | 0.085 mm | 0.170 mm | 0.255 mm |
| 600 dpi | 0.042 mm | 0.085 mm | 0.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.