Reference

ZPL Command Reference

Every important Zebra Programming Language command, with syntax, parameters, and copy-paste examples. 92 commands documented and grouped by what they do — from ^FO positioning to ^BC barcodes.

Label Setup

Text & Fonts

Positioning

Barcodes

Graphics

Fields & Data

Print Control

^PQ
Print Quantity

Sets how many copies of the label to print.

^PR
Print Rate

Sets print speed and slew/backfeed speeds.

^MD
Media Darkness

Adjusts print darkness (heat) for the label.

^MM
Print Mode

Sets the print mode (tear-off, peel, cutter, rewind).

^FX
Comment

Adds a non-printing comment to the ZPL.

^DF
Download Format

Stores a reusable label template in printer memory.

^XF
Recall Format

Recalls a stored template and fills in its fields.

^CC
Change Caret

Changes the caret (^) format command prefix.

^CT
Change Tilde

Changes the tilde (~) control command prefix.

^MN
Media Tracking

Tells the printer how to detect the top of each label.

^MT
Media Type

Selects direct-thermal or thermal-transfer printing.

^MU
Set Units

Switches coordinate units between dots, inches and mm.

^MC
Map Clear

Controls whether the bitmap is cleared after each label.

^LT
Label Top

Shifts the entire label vertically by a number of dots.

^LS
Label Shift

Shifts the entire label horizontally by a number of dots.

^LR
Label Reverse Print

Reverses print (white on black) for the whole label.

^PM
Print Mirror Image

Mirrors the entire label left-to-right.

^PF
Slew Given Number of Dot Rows

Feeds the media a set number of dot rows with no printing.

^JM
Set Dots per Millimetre

Halves the print resolution to speed printing or save memory.

~SD
Set Darkness

Sets the print darkness (burn temperature) immediately.

^SS
Set Media Sensors

Manually sets media and ribbon sensor calibration values.

~HS
Host Status Return

Asks the printer to return its status to the host.

~HI
Host Identification

Returns the printer model, firmware version, and DPI.

^HH
Configuration Label Return

Returns the printer's current configuration to the host.

^HW
Host Directory List

Returns a list of objects stored on a memory drive.

^WD
Print Directory Label

Prints a label listing the objects stored in memory.

^JU
Configuration Update

Saves, restores, or resets printer settings.

^JZ
Reprint After Error

Controls whether a label reprints after an error clears.

~JR
Power-On Reset

Restarts the printer as if power-cycled.

^SC
Set Serial Communications

Sets baud rate, parity, and other serial-port parameters.

^SZ
Set ZPL Mode

Selects ZPL or ZPL II command interpretation.

^KN
Define Printer Name

Sets the printer's name and description.

Try these commands live

Paste any ZPL into the free viewer to see it render, convert it to PDF or PNG, or check it for errors — all in your browser.