ZPL Command Information and Details

ZPL Command Information and Details

Article ID: 94992028

Issue / Question

Provide a single page with examples of code used in different programming languages to print to our ZPL printers

Applicable To

ZPL, various programming examples, various programming languages

Resolution / Answer

Zebra Programming Language (ZPL) is the command language used by all ZPL compatible printers. It is a command based language used by the printer as instructions for creating the images printed on the labels. This document contains links to manuals, examples, and specific information related to specific ZPL commands.

The ZPL Programming Manual contains all the information on the ZPL Commands Read More>>

See how to create your own labels using ZPL by reviewing these exercises:
Read More>>

ZPL Tips

QR Code Position is affected by the ^BY height parameter 

Autoexec Example - Allows loading a form or command on power up 

Code 128 General instructions - Description of the Code 128 command in ZPL2

UCC/EAN code 128 example - How to print a UCC/EAN barcode using Code 128

Maxicode example - How to print the Maxicode Barcode for UPS applications

Centering a Code 128 Barcode Interpretation Line when using an alternate font

Converting Graphics with the Driver - How to convert a graphic for use in ZPL2

Converting Graphics - with ZebraNet Bridge

Downloading Fonts  -  Instructions for downloading windows fonts to the printer

Unicode Printing - Using the free Swiss 721 Font

Concatenation (^FT) - Concatenation: to link together in a series or chain

Printing Euro(€) Symbol - How to print a Euro Symbol in ZPL2

Printing the Trademark(™) Symbol with ZPL 

Printing a Short Dash (-) -  How to substitute the short dash for a standard long dash

Special Character printing - Using the ^FH or ^CI command to print special characters.

Reprint - Reprinting after an error or reprinting on demand

Limiting characters in a ZPL Text Field using Text Block

ZPL Command Details

^B7 PDF417 Barcodes Read More>>

^BQ QR Code information Read More>>

^BX Datamatrix (Data Matrix) barcode Read More>> (includes when rectangular capability was introduced)

^CI Change International Font/Encoding Read More>>

^DF Stored Formats and adding variables Read More>>

~DY Command Algorithm ZB64 Compression information Read More>>

~EG or ^EG Erase Graphic Command Read More>>

^FL - Font Linking (Linking multiple fonts n a single line of text) Read More>>

^GF Graphic Field Command details Read More>>

~HS Host Status Command 

~JD Enable Hex Dump Command Read More>>

~JK Delayed Cut Command Details Read More>>

~JS Backfeed Sequence Details Read More>>

^JZ and ^JJ Reprint Command details Read More>>

^LH Label Home Command Details Read More>>

^LL Label Length Command Read More>>

^XB Inhibit Backfeed Read More>>

Other code examples:

VB Example - Code examples for embedding ZPL in Visual Basic

VB.Net Example -  Code examples for embedding ZPL in VB.Net

Visual C++ Example - Code examples for embedding ZPL in C++

Java Example - Java Examples for ZPL, EPL and CPCL


+ Product Codes

  • 105SLPlus Industrial Printers
  • 105SLPlus Industrial Printers
  • 110PAX Print Engines (disc.)
  • 110Xi4 Industrial Printer
  • 140Xi4 Industrial Printer
  • 170Xi4 Industrial Printer
  • 220Xi4 Industrial Printer
  • 2824 Plus Series
  • 2824-Z Series
  • All Surface RFID Label Solution
  • Discontinued Printers
  • EZ320 Mobile Printers
  • G-Series GC Desktop Printers
  • G-Series GK Desktop Printers
  • G-Series GX Desktop Printers
  • GC420d Desktop Printer
  • GC420t Desktop Printer
  • GK420 Healthcare Desktop Printers
  • GK420d Desktop Printer
  • GK420d Healthcare Desktop Printer
  • GK420t Desktop Printer
  • GK420t Healthcare Desktop Printer
  • GT800 Desktop Printer
  • GX420Rx Desktop Printer
  • GX420d Desktop Printer
  • GX420t Desktop Printer
  • GX430d Desktop Printer
  • GX430t Desktop Printer
  • HC100 Wristband Printer
  • HC100 Wristband Printer
  • Industrial Printers
  • KR403 Kiosk Receipt Printer
  • KR403 Kiosk Receipt Printer
  • LP 2824 Plus Desktop Printer
  • Mobile Printers
  • P4T Mobile Printers
  • P4T Mobile Printers
  • Print Engines
  • QL320 Mobile Printer
  • QL420 Mobile Printer
  • QLn Series Healthcare Mobile Printers
  • QLn Series Mobile Printers
  • QLn220 Healthcare
  • QLn220 Mobile Printer
  • QLn320 Healthcare
  • QLn320 Mobile Printer
  • QLn420 Mobile Printer
  • R110Xi4 RFID Printer
  • RFID Printers
  • RP4T RFID Printers
  • RP4T RFID Printers
  • S4M
  • S4M Series
  • TLP 2824Plus Desktop Printer
  • Z Series Industrial Printers
  • ZD410 Series
  • ZD410D
  • ZD420 Series
  • ZD420-HC
  • ZD420C
  • ZD500 Desktop Printer
  • ZD500 Desktop Printer
  • ZD500R RFID Printers
  • ZD500R RFID Printers
  • ZE500 Print Engines
  • ZE500 Print Engines
  • ZE500R RFID Print Engine
  • ZE500R RFID Print Engine
  • ZM400
  • ZM600
  • ZQ500 Series Mobile Printers
  • ZQ510 Mobile Printer
  • ZQ520 Mobile Printer
  • ZR300 Series Mobile Printers
  • ZR338 Mobile Printers
  • ZR600 Series Healthcare Mobile Printers
  • ZR600 Series Mobile Printers
  • ZT200 Series Industrial Printers
  • ZT210 Industrial Printer
  • ZT220 Industrial Printer
  • ZT230 Industrial Printer
  • ZT400 Series Industrial Printers
  • ZT400 Series RFID Printers
  • ZT410 Industrial Printer
  • ZT410 RFID Industrial Printer
  • ZT420 Industrial Printer
  • ZT420 RFID Industrial Printer
  • iMZ Series Mobile Printers
  • iMZ220 Mobile Printer
  • iMZ320 Mobile Printer