ZPL label size calculator and preview
Calculate label dimensions in printer dots and preview a sample at the selected size.
Preview sends your code to Labelary to render the first label.
Edit the example, then click Preview label to render your changes.
How to use this tool
Calculate width and length in dots
Multiply inches by the nominal dots per inch of your printer. For a 4 × 6 label at 203 dpi, starting values are 812 × 1218 dots. At 300 dpi they are 1200 × 1800. Actual printhead densities can differ slightly; consult your printer specifications.
Set print width and label length
^PW controls print width in dots and ^LL specifies label length in dots. Adjust both and the preview size when switching stock. Physical media calibration and printer settings still affect actual output.
Avoid clipping
Keep field origins and the full width of text, graphics and barcodes within your printable area. Leave a margin near each edge.
Related ZPL tools and guides
- Online ZPL viewer
- ZPL to PDF
- ZPL to PNG
- File viewer
- 4×6 template
- Code 128 example
- QR code example
- Print troubleshooting
- Bulk ZPL to PDF
- Bulk ZPL to PNG
- CSV to ZPL label generator
- Bulk Code 128 barcode label generator
- Bulk QR code label generator
- Sequential inventory label generator
- Merge ZPL files
- Split ZPL files
ZPL command reference: Zebra documentation. Rendering: Labelary API.