Key points
- A ZPL viewer draws the label described by Zebra Programming Language code so you can check it without printing.
- The preview is only as accurate as its settings: match the dpmm value and the label size to your printer and media.
- Use the command inspector and warnings to find unsupported commands, typos and fields placed outside the label.
- Treat the preview as the fast first check and a physical test print as the final proof for compliance labels.
Zebra printers do not receive pictures. They receive text: a stream of short commands in Zebra Programming Language (ZPL) that say where each piece of text, line and barcode belongs. A ZPL viewer reverses that process. It reads the commands and draws the label they describe, so you can see the result on screen instead of on a roll of labels.
This guide explains how a viewer works, which settings decide whether the preview is trustworthy, and how to use one as part of a reliable label workflow. If you want to try things as you read, keep our online ZPL Viewer open in another tab.
What ZPL is and why it is hard to read
ZPL, and its current form ZPL II, is the page description language used by most Zebra thermal printers and by many compatible printers from other makers. A label format starts with ^XA, ends with ^XZ and contains fields in between. Each field normally has a position, a font or barcode definition, some data and a field separator.
^XA
^CF0,40
^FO40,40^FDOrder 58213^FS
^CF0,28
^FO40,95^FDPick: Aisle 7, Bin C4^FS
^FO40,140^GB730,3,3^FS
^BY3,3,140
^FO60,170^BCN,140,Y,N,N^FD58213-07C4^FS
^XZEven this small label raises questions that are hard to answer by reading. Does the barcode fit inside 4 inches? Is the 40 dot font too large for the order number? A viewer answers them in a second.
How a ZPL viewer reads your code
Under the hood, every viewer does three jobs.
- Tokenising. The code is split into commands at every caret (^) or tilde (~). Field data after
^FDis read up to the next caret, which is why a literal caret inside text needs the^FHhex escape. - Tracking state. Some commands change settings for the rest of the label.
^CFsets the default font,^BYsets barcode module width and height,^LHmoves the origin and^FWrotates fields by default. The viewer has to remember them just like the printer does. - Drawing fields. When the viewer reaches
^FS, it draws the field it has collected onto a canvas measured in printer dots, applying rotation, reverse printing and justification.
Our viewer also records where each field came from in the source. That is how clicking a barcode in the preview selects the matching lines in the editor, and how the inspector can tell you which command on which line could not be drawn.
The two settings that decide accuracy
Print density (dpmm)
ZPL coordinates and sizes are in dots, not millimetres. A 203 dpi printer has 8 dots per millimetre, a 300 dpi printer has 12 and a 600 dpi printer has 24. The same code therefore produces a smaller label image on a high resolution printer. If you preview a 300 dpi file at 8 dpmm, everything looks one and a half times too large and runs off the edge. Our label size and DPI guide has the full conversion table.
Label size
The viewer needs the physical width and height of your media. A field at x 700 is fine on a 4 inch label at 203 dpi (812 dots wide) but invisible on a 3 inch label (609 dots). Presets such as 4 x 6 in, 4 x 2 in and 100 x 150 mm cover common stock. If the code contains ^PW, the preview also clips anything beyond that print width, as a printer would.
Reading the preview like a pro
A rendered label is only the start. These views tell you whether the code is healthy:
- Command inspector. Lists every command with its line number and meaning. Rows marked "Printer setting" (darkness, speed, media type) are expected to have no visual effect. Rows marked "Not drawn" deserve attention.
- Warnings. Collects problems such as a missing
^XZ, unknown commands, stored graphics that were never downloaded and barcode types shown as placeholders. - Elements. Lists each drawn element with its type and coordinates, which is the quickest way to spot two fields placed on top of each other.
- Hover and click. Hover to see an element's position, click to jump to its code. This turns a long file from a wall of carets into something you can navigate.
When a ZPL viewer saves the most time
Teams reach for a viewer in a few recurring situations:
- Integrating a carrier or marketplace API that returns labels as ZPL strings. Previewing the response confirms you are decoding it correctly before you wire up printing.
- Changing a template in a WMS, ERP or label design tool. A quick preview catches shifted fields before hundreds of labels go out.
- Troubleshooting a bad print. If the preview is correct, the problem is in the printer or media. If the preview is wrong too, the problem is in the code. That single test halves the search.
- Sending proofs. Export a PNG or PDF so a customer or colleague can approve a label without access to a printer. See how to convert ZPL to PDF.
Online, desktop and developer viewers
Browser based tools such as ours need no installation and run on any operating system, which is why most people start there. Desktop applications and printer emulators make sense when you want to capture jobs sent to a virtual printer port. Developers who need to render labels inside their own software can use an API or an open source library. We compare these routes in ZPL viewer download options and ZPL viewer projects on GitHub.
What no viewer can fully reproduce
Be realistic about the gap between screen and printer. Zebra's built in fonts are licensed, so viewers use close substitutes and text widths can differ by a few dots. Printers remember settings such as label home, print width and darkness from earlier jobs or saved configuration, which a viewer cannot see. Media calibration, ribbon and print speed affect barcode quality in ways no screen shows. That is why the professional workflow is: preview first, fix what you can see, then print one real label before a large run.
A checklist before you print
- Density in the viewer matches the printer's dpi.
- Label size matches the loaded media, and
^PWand^LLare sensible. - No field sits outside the label or overlaps another by accident.
- Barcodes scan from the screen with a phone and carry the expected data.
- The warnings tab is empty, or every warning is understood.
- One physical test label has been printed for new templates.
Preview this in the ZPL Viewer
Paste your code, pick the label size and density, then check every field before you print.
Frequently asked questions
Do I need a Zebra printer to use a ZPL viewer?
No. A viewer renders the code on your screen, so you can design, review and convert labels without any printer connected. You only need the printer for the final physical test.
Why does my preview look larger than the printed label?
The density setting is probably higher than the printer uses, or the code was written for a different resolution. Code written for 203 dpi (8 dpmm) looks smaller when printed on a 300 dpi printer because each dot is smaller.
Can a ZPL viewer show EPL or CPCL code?
No. EPL and CPCL are different printer languages with different syntax. A ZPL viewer will flag them as unknown commands. See ZPL vs EPL vs CPCL for how to tell them apart.
Is the preview good enough for carrier compliance?
It is an excellent first check for layout and data, but carriers judge the printed label. Always print and scan a sample on your production printer and media before going live.



