Free · runs in your browser

ZPL Label Size Calculator

Convert physical label dimensions to integer ^PW and ^LL starting values using actual printhead resolution. Enter your known values; results update as you type.

Inputs

In selected mm units

Calculated result

Width × length in dots1200 × 600
Actual physical size100 × 50 mm
Print width command^PW1200
Label length command^LL600
Resolution used12 dots/mm (300 DPI nominal)
^PW sets print width. By default, ^LL applies to continuous media; gap or mark media can be sensor-calibrated, and ^LLy,Y explicitly applies the value to all media. Verify the printer configuration before production.

How to use this calculator

Start with the deterministic fixture values already shown, then replace each input with measurements from your job. Use consistent units and review the highlighted assumptions before using the result in purchasing or production.

Formula and method

Width and height are independently converted at the selected actual resolution using the chosen rounding mode. Landscape swaps the axes before creating ^PW for print width and ^LL for label length.

Read the methodology and source notes →

Read the complete calculate zpl ^pw and ^ll from label size guide →

Worked example

A 100 × 50 mm portrait label on a 12 dots/mm printhead becomes exactly 1,200 × 600 dots, producing ^PW1200 and ^LL600.

How to interpret the result

Use the values in a controlled test format, verify the printer’s actual resolution and media mode, then calibrate with the intended media.

Limitations

^LL applies to continuous media by default; gap or mark media can be sensor-calibrated, and ^LLy,Y explicitly applies it to all media. This is not a renderer, and origins, limits, firmware and configuration still apply.

Related tools

Related guides

Last reviewed: