ZPL-opdrachten spiekbrief

Zoek veelgebruikte Zebra ZPL-opdrachten, voorbeelden en labelnotities voor lay-out, tekst, barcodes, afbeeldingen en instellingen.

ZPLZebraLabelworkflow
^XA

Start label format

^XA

Wrap every label format with ^XA and ^XZ.

^XZ

End label format

^XZ

Missing ^XZ is one of the easiest ways to break a job.

^PW

Print width

^PW812

Width in dots = physical width in mm × actual dpmm.

Changing print width does not scale existing fields.

^LL

Label length

^LL1218

Label length in dots = physical height in mm × actual dpmm.

A larger ^LL does not move or stretch content; choose matching preview dimensions.

^FO

Field origin

^FO50,80

x,y in dots; the field starts at this origin.

Coordinates are not millimeters. Global offsets and rotation can change placement.

^FT

Field typeset

^FT50,120

x,y in dots; text uses the typesetting baseline.

Using the same y as ^FO does not give the same text position.

^A

Font selection

^A0N,40,40

Choose font, rotation, height, and width.

^FD

Field data

^FDHello^FS

Text or encoded data for a field.

^FS

Field separator

^FS

Ends a field. Missing separators cause confusing output.

^GB

Graphic box

^GB400,2,2^FS

Draw lines, boxes, and separators.

^BY

Barcode defaults

^BY3,2,120

Set barcode module width, ratio, and height defaults.

^BC

Code 128 barcode

^BCN,120,Y,N,N

orientation,height,human-readable,above,check-digit,mode. Example: ^BCN,100,Y,N,N.

Use ^BY for module width, preserve quiet zones, and verify decoded data with a scanner.

^BQN

QR Code

^BQN,2,6^FDQA,https://example.com^FS

N orientation, model 2, magnification in dots. ^FDLA,data selects error correction L and automatic input.

Missing the data prefix can change interpretation. Leave a quiet zone of four modules and test the output.

^BX

DataMatrix

^BXN,5,200

orientation,module size,ECC quality,columns,rows,format,escape. Example: ^BXN,5,200,0,0,1,~.

Module size is in dots, not bar height. ECC 200 uses a numeric quality value. GS1 requires FNC1, not a literal GS character at the start.

^CI28

UTF-8 encoding

^CI28

Select UTF-8 before the text fields; save the source as UTF-8.

The printer font must contain the requested glyphs. Encoding alone does not install fonts.

^LH

Label home

^LH0,0

Offset the whole label coordinate system.

~SD

Print darkness

~SD15

Printer setting. Test carefully on real media.

^PR

Print speed

^PR4

Printer speed can affect barcode quality.

How to use this tool

Start with sample data

Use the default values to understand the expected ZPL shape.

Adjust for your printer

Check label size, DPI, barcode data, and printer-specific settings before production.

Preview or copy the result

Use the main ZPL Viewer for final visual checks whenever the tool generates ZPL.

Frequently Asked Questions

No. It helps catch obvious layout and data mistakes before final hardware validation.
Treat them as a starting point. Review printer model, DPI, media, and business data before production printing.
Some printer-language conversions are not one-to-one. A clear migration map is safer than pretending every ZPL command has a perfect EPL or CPCL equivalent.
ZPL-opdrachten spiekbrief