Start label format
^XAWrap every label format with ^XA and ^XZ.
Yerleşim, metin, barkod, grafik ve cihaz ayarları için yaygın Zebra ZPL komutlarını, örnekleri ve notları arayın.
^XAWrap every label format with ^XA and ^XZ.
^XZMissing ^XZ is one of the easiest ways to break a job.
^PW812Width in dots = physical width in mm × actual dpmm.
Changing print width does not scale existing fields.
^LL1218Label length in dots = physical height in mm × actual dpmm.
A larger ^LL does not move or stretch content; choose matching preview dimensions.
^FO50,80x,y in dots; the field starts at this origin.
Coordinates are not millimeters. Global offsets and rotation can change placement.
^FT50,120x,y in dots; text uses the typesetting baseline.
Using the same y as ^FO does not give the same text position.
^A0N,40,40Choose font, rotation, height, and width.
^FDHello^FSText or encoded data for a field.
^FSEnds a field. Missing separators cause confusing output.
^GB400,2,2^FSDraw lines, boxes, and separators.
^BY3,2,120Set barcode module width, ratio, and height defaults.
^BCN,120,Y,N,Norientation,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,2,6^FDQA,https://example.com^FSN 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.
^BXN,5,200orientation,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.
^CI28Select 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.
^LH0,0Offset the whole label coordinate system.
~SD15Printer setting. Test carefully on real media.
^PR4Printer speed can affect barcode quality.
Use the default values to understand the expected ZPL shape.
Check label size, DPI, barcode data, and printer-specific settings before production.
Use the main ZPL Viewer for final visual checks whenever the tool generates ZPL.