ZPL Viewer Online

Paste ZPL or open a .zpl file and click Preview. This online ZPL viewer opens the label in mylabelmaker, ready to print.

ZPL viewer

Paste ZPL and see the label, then print that same code to your Zebra. Preview opens app.mylabelmaker.com and previews the label at the size and DPI you pick here.

Units

How it works

Drop the .zpl file, see the label, print it on the Zebra

The viewer reads the ^FO positions and draws each field where the printer would put it. When it looks right, mylabelmaker sends that same code to your Zebra.

Video

Watch: print real ZPL to a Zebra

Print to a Zebra Printer from Your Browser: Real ZPL, Excel Data, Mac or Windows

See a label go to a Zebra as real ZPL, and how to preview a .zpl file here before it prints.

1No Zebra here

A .zpl file and no Zebra on this laptop

Picture an email from your warehouse with one attachment: label.zpl. You double-click it and the computer asks which app should open it. There's no Zebra on this desk, and you only want to know what the label says before it goes out.

That file is plain text. It's ZPL, the language Zebra printers read. Paste it in the box above and click Preview. app.mylabelmaker.com opens and previews the label in your browser, on Windows, Mac or a Chromebook. Nothing to install.

When it looks right, print it to a Zebra from there, or save it as a PNG or PDF.

2Preview it

How do I view a ZPL file online?

Four steps, from the file in your inbox to a label you trust.

New to the codes? A label runs from ^XA to ^XZ. Each field starts with ^FO, which says where, and ends with ^FS. The words or barcode data sit in ^FD. The ZPL tutorial goes through them one by one.

A file with many labels

A warehouse system often sends one .zpl file with a whole day of labels in it. The viewer splits the file at every ^XA and ^XZ pair and shows one label at a time, with arrows to step back and forward and a counter like 1 / 200. So you can check a 200-label job before any of it prints. The box on this page holds 8000 characters. For a bigger file, click Preview, then click Open .zpl file in the viewer that opens. It reads the whole file.

  1. Paste the ZPL into the box at the top of this page. Or click Open a .zpl file and pick a .zpl or .txt file, or drop the file on the box. A .prn file is the same text, so paste it or drop it. The box holds 8000 characters.
  2. Pick the DPI of your Zebra. Most desktop shipping printers are 203. Some ZD421 and ZT411 printers are 300. 600 dpi is for very small text. Set Width and Height to your roll, in inches, centimeters or millimeters.
  3. Click Preview. https://app.mylabelmaker.com opens with your code, that DPI and that size, and previews the label.
  4. Check it, then print it to your Zebra from mylabelmaker, or download a PNG or PDF. Print this ZPL on this page opens the same job.

3Pick a tool

ZPL online: view, convert, edit

Each ZPL tool on mylabelmaker does one job. Pick the one that fits what you have in front of you.

  • ZPL viewer: check code you already have. That's this page.
  • ZPL to PDF: save the label as a one-page PDF for someone without a Zebra.
  • ZPL editor online: place text, barcodes and images on a new label and get its ZPL, without writing code.
  • image to ZPL: put a PNG or JPG logo on a Zebra label.

4Edit it

Change the ZPL and preview it again

Spotted a typo in the address, or a barcode sitting too close to the edge? Change the code in the box above and click Preview again. You see the new label straight away.

You can also edit in the viewer that opens. Type in its code box and the preview redraws as you go, so you check and fix the code on one screen. Move a field by changing the two numbers after ^FO, or fix the words after ^FD.

Want to build the label visually instead of typing code? Use the ZPL editor online.

5Dots and dpi

DPI, dots and label size

A Zebra counts dots, not inches. So the same 4 x 6 label is a different number of dots on each print head.

That's 8 dots per millimeter at 203 dpi, 12 at 300 dpi and 24 at 600 dpi. ^PW is the width in dots and ^LL is the length. ^FO50,50 means 50 dots from the left and 50 from the top.

The math is simple: 4 inches times 203 is 812, so a 4 inch roll at 203 dpi wants ^PW812. Six inches is ^LL1218. A 2 x 1 in label at 203 dpi is ^PW406 ^LL203. Leave ^PW812 on a 300 dpi printer and it only uses about 2.7 inches, so the print sits on the left of the roll. If the preview looks too small or too big, the DPI you picked doesn't match the DPI the code was written for. Pick the DPI your printer really has before you click Preview, so the picture matches. Other sizes are on the DPI calculator. The usual shipping roll is the Zebra 4x6 label template.

Print head4 x 6 in label, in dotsIn the ZPL
203 dpi812 × 1218^PW812 ^LL1218
300 dpi1200 × 1800^PW1200 ^LL1800
600 dpi2400 × 3600^PW2400 ^LL3600

6Copy and paste

Copyable ZPL examples

Each line is a whole label, from ^XA to ^XZ. Copy one into the box and click Preview to see it in mylabelmaker. The sentence under it says what it makes. None of these is postage.

Shipping 4 x 6 at 203 dpi

^XA^PW812^LL1218^FO50,50^A0N,40,40^FDFROM: Acme Shop, 123 Main St, Austin TX 78701^FS^FO50,250^A0N,60,60^FDSHIP TO:^FS^FO50,330^A0N,50,50^FDJane Doe^FS^FO50,390^A0N,50,50^FD456 Oak Ave, Denver CO 80202^FS^FO50,600^BY3^BCN,200,Y,N,N^FD1234567890^FS^XZ

A 4 x 6 ship-to at 203 dpi with a Code 128 under the address. ^BY3 makes the bars three dots wide.

Code 128 with ^BC

^XA^FO50,50^BY2^BCN,100,Y,N,N^FDSKU-1001^FS^XZ

^BCN,100 draws SKU-1001 as a Code 128, 100 dots tall, with the text under it. ^BY2 sets the bar width.

QR with ^BQ

^XA^FO50,50^BQN,2,6^FDQA,https://mylabelmaker.com^FS^XZ

^BQN,2,6 makes a QR code that points at https://mylabelmaker.com. The 6 sets how big each square is.

Font with ^A0

^XA^FO50,50^A0N,50,50^FDHello Zebra^FS^XZ

^A0N,50,50 prints Hello Zebra in the built-in font, 50 dots tall and 50 wide.

Graphic with ^GF

^XA^FO50,50^GFA,8,8,1,FF818181818181FF^FS^XZ

^GF carries a small bitmap, here a little square outline. Logos in carrier labels usually come this way.

One-line test

^XA^FO20,20^A0N,30,30^FDTest^FS^XZ

If Test shows up in mylabelmaker but the Zebra prints a blank label, check the media type, the darkness and the calibration.

7Print it

Print ZPL to a Zebra

Preview and Print this ZPL don't talk to your printer from this page. They open mylabelmaker with the code you pasted.

Need a PDF or PNG instead? Click Preview, and the viewer that opens has PNG, JPG and PDF buttons for the label on screen. The PDF is one page with that label. The ZPL to PDF page walks through it step by step. Designing labels is free. Printing, downloading, exporting or batch printing may need a payment. The price, and how long access lasts, are shown before you pay.

  • What goes along: the text in the box (up to 8000 characters), the DPI, the width and height, and the unit you picked. The file you opened isn't sent, only its text in the box.
  • PNG and PDF: they come from mylabelmaker, once the label is open there.
  • Code, not a photo: with Zebra Browser Print, mylabelmaker sends the ZPL itself, not a screenshot of the label.
  • It has to be a Zebra: the printer must speak ZPL. DYMO, Brother and Rollo printers don't.
  • Load the right roll: a 4 x 6 job won't land cleanly on a 2 x 1 roll. For a shipping label, follow print shipping labels on a Zebra.

8Fix it

When the ZPL label looks wrong

Four problems come up again and again at the packing table. Here's what each one means.

  • The label is blank. Check that the code runs from ^XA to ^XZ and that each field has a ^FO, some ^FD data and a closing ^FS. A ^FO placed past ^PW lands off the label. On a real Zebra, a missing ^XZ can leave the printer waiting.
  • Half a label prints. ^PW is narrower than the roll. At 203 dpi a 4 inch roll wants ^PW812, and ^PW406 is only 2 inches. Set ^PW to width times DPI, and ^LL to length times DPI.
  • Text is cut off. A long ^FD line runs past the edge unless ^FB wraps it. Move ^FO left, shorten the line, or raise ^PW to the roll.
  • The barcode runs too wide. ^BY sets the bar width in dots, and ^BY3 on a long number at 203 dpi can run off the label. Use ^BY2 or shorter data, and leave a quiet zone on both sides.

9Labelary

mylabelmaker ZPL viewer vs Labelary

Labelary draws your label on their server. The mylabelmaker ZPL viewer hands your code to app.mylabelmaker.com, which previews the label and prints it to your Zebra.

If you want a second opinion from another renderer, Labelary is a good one. The longer side-by-side is on the Labelary alternative page.

Run a help desk or a warehouse wiki? You can embed a ZPL preview on your own support page, so your team can check a label without leaving it.

mylabelmaker ZPL viewerLabelary
Where it drawsIn mylabelmakerOn their server
PNG and PDFFrom mylabelmaker, after PreviewFrom their renderer
Print to a Zebramylabelmaker sends the code with Browser PrintReturns a picture only
APINoneA REST API

Questions about the ZPL viewer

Is this ZPL viewer online free?

Yes, seeing the label is free. Paste the code, pick 203, 300 or 600 dpi, and click Preview. app.mylabelmaker.com opens and previews the label.

How do I open a .zpl file on Windows?

A .zpl file is plain text. Open it in Notepad and paste it here, or click Open a .zpl file, which takes .zpl and .txt files. You can also drop the file on the box. A .prn file is the same text.

Where does the label show up?

In mylabelmaker. Preview opens https://app.mylabelmaker.com with your code, the DPI and the size, and the ZPL viewer there previews the label. This page holds the box and the settings.

Can I convert ZPL to PNG or PDF?

Yes, in mylabelmaker. Click Preview, and once the label is open you can download a PNG or a PDF. If your printer is a Zebra, send it the ZPL rather than a picture of the label.

Can I preview a ZPL file with many labels?

Yes. The viewer splits the file at every ^XA and ^XZ pair and shows one label at a time, with arrows and a counter like 1 / 200. For a file over 8000 characters, click Preview, then Open .zpl file in the viewer that opens.

Is there a ZPL viewer online that also prints to a Zebra?

Yes, this one. Click Preview, and mylabelmaker sends the same ZPL to your Zebra through Zebra Browser Print. Designing labels is free. Printing, downloading, exporting or batch printing may need a payment. The price, and how long access lasts, are shown before you pay.

Can I open a .prn file in this ZPL viewer?

Yes, if the file contains ZPL. Open it, drop it on the box or paste its text. A .prn made by a Windows driver for another printer language will not preview.

Is this a Labelary alternative?

Yes. It previews ZPL in your browser, and it also prints the same code to your Zebra through Browser Print. The longer comparison is on the Labelary alternative page.

Can I print ZPL from the browser?

Yes, through mylabelmaker. Preview or Print this ZPL opens mylabelmaker with the code, the DPI and the size, and it prints from there. The printer has to be a Zebra. DYMO, Brother and Rollo printers don't speak ZPL.

Why is my ZPL label blank?

Usually a field is missing a piece. Each one needs ^FO for the spot, ^FD for the data and ^FS to close it, all between ^XA and ^XZ. A ^FO past ^PW lands off the label. A wrong DPI can also push fields off the edge or squeeze them into the corner.

What if I need to design the label instead?

Design it in mylabelmaker and open the 4x6 shipping template. Use it when you don't have ZPL yet, and come back here when someone hands you a file.