ZPL dimensions

ZPL Label Size Calculator

Convert physical label size to printer dots and generate the basic ZPL width and label-length commands for 203, 300 or 600 DPI printers.

mm to ZPL dots formula

dots = round((millimetres ÷ 25.4) × DPI)

The tool rounds to the nearest whole dot because a thermal printhead cannot address a fraction of a dot. The output includes ^PW for print width and ^LL for label length.

Common 4 × 6 label dimensions

A nominal 4 × 6 inch label is 101.6 × 152.4 mm. At different print resolutions the physical size stays the same, while the dot dimensions change. Always confirm the printer's actual DPI and media calibration before assuming a ZPL template will transfer perfectly between printers.

Note: This calculator generates size commands, not a complete shipping-label template. Printer offsets, darkness, speed, sensors and application-specific ZPL still need to be configured for your device.