ZPL label cut off on the right: how to fix the print width
The label prints, but the right side of the text, frame or barcode is missing. If several elements stop at the same vertical boundary, check the available width first. If only one field is affected, also check its position and size.
What needs to match
The physical label width, ^PW in dots and the right edge of each element must fit within the model’s maximum print width at its resolution. Increasing ^PW does not shrink the design or let you print beyond the printhead.

1. Measure the width and confirm DPI
Measure the label from left to right, not its length along the feed direction. Convert millimetres to dots using the printer’s resolution. At nominal 203 DPI, 60 mm is about 480 dots; at nominal 300 DPI, about 709. If the printhead specification states 8 or 12 dots/mm, use that exact density: 60 mm becomes 480 or 720 dots respectively.
dots = mm × DPI / 25.4
Use one conversion basis: nominal DPI or the exact printhead density. Do not mix them when calculating the width.
2. Find ^PW in the job actually sent
Open the final ZPL and find ^PW. A 60 mm format with ^PW320 only declares about 40 mm at 203 DPI. Compare the driver width and configuration report too: the application may send a different value from the saved setting. Changing only the preview or a template that is later regenerated does not ensure the printed job changes.
3. Check the right edge of each element
For a normal layout without rotation or global offsets, add the X coordinate to the object width. A frame starting at X=24 and measuring 432 dots needs to reach 456. It cannot fit within ^PW320. For text, check rendered width and ^FB blocks; for barcodes, include the required white margins. If the whole design is shifted, check ^LH and ^LS before moving individual fields.
4. Compare this before-and-after example
The test is intended for a 60 × 40 mm label at 203 DPI. Both formats use the same geometry; only ^PW320 changes to ^PW480. The second should print the complete frame. ^LH0,0, ^LS0 and ^LT0 neutralize offsets for this test: review the original settings before using it on a shared printer.
Before: insufficient width · ^PW320
^XA
^PW320
^LL320
^LH0,0
^LS0
^LT0
^FO24,24^GB432,272,2^FS
^FO40,64^A0N,28,28^FDWIDTH TEST^FS
^FO40,120^GB400,16,16^FS
^XZAfter: corrected width · ^PW480
^XA
^PW480
^LL320
^LH0,0
^LS0
^LT0
^FO24,24^GB432,272,2^FS
^FO40,64^A0N,28,28^FDWIDTH TEST^FS
^FO40,120^GB400,16,16^FS
^XZOpen the corrected example to inspect the layout. Physical printing confirms clipping: a preview does not necessarily reproduce every printer limit and setting.
5. If it still clips, check the physical limit
Look up the maximum print width for your model and DPI: do not confuse it with the maximum media width. If the design exceeds it, rearrange or reduce elements while keeping text readable and barcodes scannable. If the test fits but still clips, check roll guides, transmitted settings and whether the application adds another width. Position changes between labels call for checking loading and calibration.
Frequently asked questions
Does ^PW automatically fit the design to the paper?
No. It sets print width in dots. Positions, fonts, images and barcodes keep their dimensions.
Can I always use ^PW9999?
That is not a solution. The printer has a physical limit and the media has its own width. Use a value that matches both and the DPI.
Why is only the barcode cut off?
Its data or module width may make it wider than expected. Check its right edge and quiet zones; do not shrink it without checking scan performance.
Will calibration fix clipping on the right?
Calibration helps detect labels, but cannot fix an insufficient ^PW or an object outside the printable area. Start with width, coordinates and media loading.
Related guides
Official Zebra documentation
About the author
Eduard Diaz
Eduard Diaz is an IT technician (development) at S-IE, an official Zebra partner with more than 20 years providing identification and labelling services. He builds and maintains EditorZPL to make working with ZPL and Zebra label printers easier.
s-ie.cat