Zebra zpl programming guide

Zebra programming language (ZPL) is a proprietary command language for label printers made by Zebra Technologies. The language allows you to control the appearance of printed labels. For example, you can add barcodes to labels along with a company name and address.

Other People Are Reading

Command Syntax

The ZPL syntax is: "^XA," which starts every format command; "^FO," which is a field origin command; "^FS," which is a field separator command; "^FD," which is a field data command; and "^XZ," which ends every format command.

Label Appearance

Various commands allow you to adjust the fonts and other aspects of the label's appearance particularly text. For example, the "^A" command specifies the font to use in a text field and the "^FD" command defines a data string for a field.

Drawing Boxes and Lines

The "^GB" command allows you to draw boxes and lines to, for example, divide labels into distinct areas. Parameters for the "^GB" command allow you to format the boxes and lines. For example, you can indicate the border thickness or the degree of corner rounding.

Barcodes

The "^B" command allows you to print barcodes on labels, including industry standards Code 11 and Code 39. You can modify certain aspects of barcodes including orientation and height.