Free · runs in your browser

ZPL Label Size Calculator

Turn your label width and height into starting ZPL print-width and label-length commands.

Example values are filled in. Change them to match your job; results update automatically.

How to use this tool ↓

Your inputs

Replace the example values with your own.

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

  1. Enter the width across the label and the height in the feed direction. Choose the correct units.
  2. Select your printer’s actual resolution and review the dimensions in dots.
  3. Copy the generated commands into your label format, then calibrate and test the format on your printer.

These commands set dimensions; they do not create a complete label design or configure every printer setting.

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

Usage instructions updated October 19, 2026.
Last reviewed: