Menu

Most Common ZPL Commands

Complete command reference for Zebra printer programming

ZPL Command Reference

ZPL uses commands that begin with ^ (caret) or ~ (tilde). Commands with ^ are used within the label format, while commands with ~ are used for printer configuration.

Command categories

Format commands

ComandoDescripciónEjemploParámetros
^XAStart label format^XA ... ^XZNo parameters
^XZEnd label format^XA ... ^XZNo parameters
^FOField origin (X,Y position)^FO100,200x,y - Coordinates in dots
^FSField separator (end field)^FDText^FSNo parameters

Text commands

ComandoDescripciónEjemploParámetros
^AFont selection^A0N,30,30f,o,h,w - Font, orientation, height, width
^FDField data (text to print)^FDMy text^FStext - Content to print
^FBText block (multiline)^FB400,3,0,L,0width,lines,spacing,alignment,indent

Barcode commands

ComandoDescripciónEjemploParámetros
^BCCode 128 barcode^BCN,100,Y,N,No,h,f,g,e - Orientation, height, interpretation, etc.
^BQQR Code^BQN,2,5o,model,magnification
^BYBarcode configuration^BY2,3,100module_width,ratio,height

Graphic commands

ComandoDescripciónEjemploParámetros
^GBDraw box/rectangle^GB200,100,3^FSwidth,height,line_thickness
^GFGraphic field (image)^GFA,data...format,bytes,bytes_per_row,data

Validate your ZPL code

Use our validator to verify your ZPL code is correct.

Most Common ZPL Commands | Complete Reference 2025