How to View, Edit and Create ZPL Labels Without Printing Test Labels
Preview Zebra ZPL labels at 203, 300 or 600 dpi, edit text and barcodes, and convert PDF shipping labels to ZPL for a thermal printer, in your browser.

If you ship parcels, run a warehouse or sell on marketplaces, sooner or later you meet ZPL. It is the command language of Zebra printers and many compatible thermal printers, and labels arrive as plain text full of carets: ^XA to start, ^FO for a position, ^FD for the data, ^XZ to finish. The printer understands it perfectly. People do not, and printing a roll of test labels to find a typo is slow and wasteful.
The ZPL Label Viewer and Editor draws the label on screen instead, lets you change it, and can also turn a PDF label from a courier into ZPL. Everything runs in the browser, so customer names and addresses never leave your computer.
Viewing a label
Paste the code into the box or open the .zpl, .prn or .txt file you were sent. The picture appears immediately. The first thing to check is the printer resolution. Most desktop and shipping printers print 203 dots per inch, which ZPL calls 8 dots per millimetre. Higher-end models print 300 or 600 dpi. ZPL measures everything in dots, so the same file looks twice as small on a 600 dpi printer as on a 300 dpi one. If text looks tiny or huge, switch the resolution and the label will usually snap into proportion.
A label made for a 4 by 6 inch roll at 203 dpi is 812 dots wide and 1,218 long. Many files say so with ^PW812 and ^LL1218. If the code does not state a size, choose the label size from the list.
Files often hold several labels, one ^XA ... ^XZ block each. Use Previous and Next to step through them, and read the notes under the code box: they list any command the viewer skipped and any printer setting, such as darkness or print speed, that changes the printer but not the picture.
Editing a field
Click on a piece of text or a barcode in the preview. It gets a dashed outline and its details appear below: the data and the position in dots. Change the data and the label redraws as you type. Drag the field with the mouse or a finger, type exact coordinates, or press the arrow keys to nudge it one dot at a time, ten with Shift held down.
Only the data between ^FD and ^FS and the numbers after ^FO or ^FT are rewritten. Everything else in your file stays exactly as it was, including comments and spacing, so the edited code still fits into the system that produced it. Undo and redo work for every change.
Barcodes
Code 128 is the workhorse of shipping labels, and the viewer handles the details that trip up simpler renderers: the ZPL codes that switch between character sets and the FNC1 marker used in GS1-128 labels for serial shipping container codes. Code 39, EAN-13, UPC-A, Interleaved 2 of 5 and QR codes are drawn as well. The module width and height come from the ^BY command, just as on the printer.
Some two-dimensional codes, Data Matrix, PDF417, MaxiCode and Aztec, are shown as orange boxes so you can see where they sit, but they are not drawn. Check those on a printed label.
Turning a PDF label into ZPL
Courier websites and marketplaces often hand out PDF or PNG labels, while the warehouse printer is set up for ZPL. Open the second tab and choose the file. A few settings matter:
- Crop white margins removes the empty part of an A4 or Letter page around the label.
- Scale to label width resizes the picture to 812 dots for a 4-inch label at 203 dpi, or whatever width you set.
- Threshold mode keeps text and barcodes crisp; dithering is better for photos and shaded logos.
- Rotate turns a landscape label the right way round.
The result is a single graphic field. Z64 is the most compact form and works on most printers made in the last decade or so; compressed hex is accepted by every ZPL printer; plain hex is the largest and only needed for very old models. Open the result in the editor to check it, or save it as a .zpl file and send it with your printer's utility.
Checking before printing
When the label looks right, save the code, download a PNG at the printer's resolution to share with a colleague, or make a PDF in which each page is exactly one label. Printing that PDF on an office printer is a cheap way to scan the barcodes before you commit a roll of thermal labels.
Remember that the preview uses system fonts that resemble Zebra's built-in fonts. Text sizes and positions are faithful, but a long wrapped paragraph can break one word earlier or later than on the printer, so leave a little room in tight boxes.

&c=%23991b1b&k=business)
&c=%23991b1b&k=business)
