Tools/Build/ZPL Viewer

ZPL to PDF and PNG

Paste ZPL, set the print density and label size, and download every label as a PDF or the first label as a PNG image. It uses the same renderer as the Labelixa ZPL viewer and REST API.

Paste your code

Settings

The default is one label centred on the sheet at true size, never enlarged. If you pick several labels per sheet, each one is shrunk to fit its cell, and a warning appears below 85%. In our measurements barcodes stopped scanning below 60% of true size, so those layouts are not listed; print one label per sheet when the barcode has to scan.

Paste code or load the sample — the result appears below, with the line and severity of each finding.

Result

Rendered label preview

The PDF holds every label in the ZPL; each page carries the rendered label as an image at the chosen density, so it is not a vector PDF and its text cannot be selected. Every label rendered into the PDF counts toward the same quota as a preview. Input up to 1 MB; the code is not stored.

No Zebra printer? The same label can be printed on any printer as a PDF or PNG, and converted automatically through the API: Print your carrier's ZPL label on any printer

How to convert ZPL to PDF or PNG

  1. Paste your ZPL: one label or a whole batch of ^XA…^XZ blocks.
  2. Choose the print density (152, 203, 300 or 600 dpi) and the label size in inches. They decide how the label is drawn, exactly as on a printer with that print head.
  3. Press Preview to check the first label.
  4. Download every label as a PDF: by default one label per page at label size, or pick an A4, Letter, A5, A6 or Legal sheet for an office printer and choose how many labels go on each sheet. You can also download the first label as a PNG image.

When you need ZPL as a PDF or an image

Use it to send a label proof to someone without a Zebra printer, to attach a label to a ticket or an e-mail, to archive what a shipping system produced, or to print a ZPL label on an office printer. For automated conversion, the same output comes from the REST API when you send the Accept: application/pdf or Accept: image/png header.

Frequently asked questions

  • Is the PDF a vector file? — No. Each page carries the rendered label as an image at the density you chose, so text in the PDF is not selectable. Pick 300 or 600 dpi for a sharper image.
  • Does it convert every label in the file? — The PDF does: every ^XA…^XZ block becomes a page, or a cell on the sheet you picked. The PNG download is the first label only; the ZPL viewer lets you step through the rest.
  • Will the PDF print at the right size? — With “one label per page”, the page size equals the label size you set. On a sheet, a single label is centred at its true size (a 4×6 label on A6 is shrunk to about 89% to fit). Print at 100% (actual size) and turn off “fit to page” in the print dialog.
Do the same job from code

Same engine, same result: REST API, command line, or an AI assistant over MCP. Anonymous calls work; an API key raises the quota.

RESTcurl -X POST "https://api.labelixa.com/v1/printers/8dpmm/labels/4x6/0" --data-binary @label.zpl -o label.png
CLInpx labelixa preview label.zpl --out label.png
MCPclaude mcp add --transport http labelixa https://api.labelixa.com/mcp # zpl_preview

API reference · MCP setup · ZPL preview API overview

Need it on paper? Send labels to your own printer with DirectPrint