Printing guide

Printer languages: ZPL and EPL

A thermal printer reads a command language, not a picture of the label. What that means for the code you write, how ZPL and EPL differ, and how to find out which one a printer speaks.

What is built today: Status

What a printer language is

A printer language is the set of commands a printer reads to draw a label. Your code does not hand the printer a page to lay out. It sends a short piece of text, and the printer follows it. BarcoderX produces ZPL and EPL from one layout.

This is a whole ZPL label, explained command by command in the ZPL guide:

example.zplZPL
^XA
^FO40,30^A0N,40,40^FDBin A17^FS
^XZ

One text field, 40 dots from the left and 30 down.

The reference on this site covers ZPL. It has no EPL pages.

ZPL and EPL side by side

How the ZPL and EPL printer languages differ: structure, text, native barcodes, graphics, RFID and what that means in practice
AspectZPLEPL
Structure Formats between ^XA and ^XZ, with caret and tilde commands. Line commands, from N to P.
Text Scalable font, UTF-8 selectable. Five fixed bitmap fonts with multipliers, code pages only.
Native barcodes Broad, including DataBar, Data Matrix, QR, PDF417, MaxiCode and Aztec. A narrower linear set. Two-dimensional support depends on the model.
Graphics Graphic field in ASCII hex, compressed ASCII or Z64. Binary raster graphic.
RFID Yes, with EPC encoding. No.
In practice More of the label goes out as native commands. Mostly raster graphics, with native barcodes and shapes. Text outside the selected code page is always raster.

What it means for the output

The language decides how much of a label can be drawn by the printer and how much has to be sent as dots. BarcoderX asks the printer's profile for every element, and lands on one of four outcomes. For ZPL, more of the label goes out as native commands. For EPL, more of it is raster, and any text outside the selected code page is raster too.

Two practical consequences follow. RFID encoding is a ZPL feature, and EPL support for two-dimensional barcodes depends on the model. And the layout is the same either way, because both languages are produced from one layout.

Native or raster printing, with the sizes worked out Printing: languages and exports Fonts and accents

Which language a printer speaks

These checks, in this order, usually settle it.

Read the maker's documentation
The datasheet or programming guide for your exact model and firmware lists the languages it reads. Some printers read more than one, or can be set to, and the documentation says which.
Look at output you already have
If an existing system prints to the printer, look at what it sends. A ZPL label begins with ^XA and ends with ^XZ. An EPL job is made of line commands, from N to P.
Print a configuration label
For a ZPL printer, our ZPL guide starts with one. It shows the firmware version and the resolution, which tells you which generic profile fits: 203, 300 or 600 dpi for ZPL, and 203 or 300 dpi for EPL.
Tell BarcoderX
Each printer is registered with its language and a profile. The profile also carries the resolution, so the engine draws the dots for the printer you have.
What a wrong guess looks like
A printer that does not read the language it is sent usually prints nothing useful: no label, or the commands as text. Check with one test label before you send a batch.

Learn ZPL

The ZPL reference on this site is nine short guides and one page per command, each checked against the programming guide and cited to a page. Start with the first, then follow what your labels need.

Sources What this page says about BarcoderX comes from its published printing, platform and glossary pages. The ZPL statements come from our ZPL reference, which restates Zebra's programming guide.

Written by BarcoderX in its own words.

ZPL and ZPL II are trademarks of Zebra Technologies Corporation. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.