^PW Print Width
Sets the label width in dots.
Label format · Updated 2026-10-20
Syntax
^PWa (a = width in dots)
Parameters
| Parameter | What it does | Values |
|---|---|---|
a | Label width in dots. | 2 up to the printhead width; default: the printer's setting |
Common mistakes
- Dots depend on the density: 4 inches are 812 dots at 203 dpi (8 dpmm) and 1218 at 300 dpi (12 dpmm).
Example
Edit the code and the label redraws. This is the same engine as the API.
Questions
What does ^PW do in ZPL?
Sets the label width in dots.
What is the syntax of ^PW?
^PWa (a = width in dots)
What should I watch out for with ^PW?
Dots depend on the density: 4 inches are 812 dots at 203 dpi (8 dpmm) and 1218 at 300 dpi (12 dpmm).