ZPL Documentation
ZPL.ai provides clear, practical documentation for Zebra Programming Language (ZPL), covering command syntax, label formatting, barcodes, printer configuration, networking, RFID, and troubleshooting. ZPL.ai is an independent resource and is not affiliated with, sponsored by, or endorsed by Zebra Technologies. Zebra and ZPL are trademarks of Zebra Technologies Corp. or its affiliates.
ZPL.ai is an independent documentation resource. It is not affiliated with, sponsored by, or endorsed by Zebra Technologies. Zebra and ZPL are trademarks of Zebra Technologies Corp. or its affiliates.
ZPL Foundations
Core ZPL format structure, field data, control characters, and commands used across label designs.
- ZPL Fundamentals and Label Structure
- ^CC ~CC - Change Caret
- ^CD ~CD - Change Delimiter
- ^CM - Change Memory Letter Designation
- +25 more
Text and Fonts
Commands for fonts, character sets, text encoding, orientation, and readable label typography.
- Text, Fonts, and Character Encoding in ZPL
- ^A - Scalable/Bitmapped Font
- ^A@ - Use Font Name to Call Font
- ^CF - Change the Alphanumeric Default Font
- +5 more
Barcodes
One-dimensional and two-dimensional barcode commands, defaults, sizing controls, and data-handling references.
- ZPL Barcode Selection and Verification
- ^B0 - Aztec Barcode Parameters
- ^B1 - Code 11 Barcode
- ^B2 - Interleaved 2 of 5 Bar Code
- +27 more
Layout and Positioning
Field placement, alignment, orientation, blocks, label dimensions, and print-layout commands.
- ZPL Coordinates, Fields, and Label Layout
- ^FB - Field Block
- ^FC - Field Clock
- ^FD - Field Data
- +25 more
Graphics, Formats, and Memory
Graphics, stored formats, downloadable resources, object management, and printer memory operations.
- Graphics, Objects, and Printer Memory
- ~DB - Download Bitmap Font
- ~DE - Download Encoding
- ^DF - Download Format
- +21 more
Printer and Media Control
Printer behavior, media handling, calibration, darkness, speed, sensors, and operational configuration.
- Print Quality, Media, and Calibration
- ~JA - Cancel All
- ^JB - Initialize Flash Memory
- ~JB - Reset Optional Memory
- +51 more
Status and Diagnostics
Host queries, configuration reports, diagnostic output, and commands used to inspect printer state.
- Printer Status and Troubleshooting
- ~HB - Battery Status
- ~HD - Head Diagnostic
- ^HF - Host Format
- +12 more
Network Commands
ZPL commands for wired and wireless print servers, network identity, connectivity, and radio configuration.
- ZPL Network Configuration Overview
- ^KC - Set Client Identifier (Option 61)
- ^NB - Search for Wired Print Server during Network Boot
- ^NC - Select the Primary Network Device
- +19 more
RFID Commands
ZPL RFID read, write, lock, calibration, logging, and transponder configuration commands.
- ZPL RFID Programming Overview
- ^HL or ~HL - Return RFID Data Log to Host
- ^HR - Calibrate RFID Tag Position
- ^RB - Define EPC Data Structure
- +5 more
ZBI Programming
Zebra Basic Interpreter statements, functions, data types, control flow, ports, and program execution.
- ZBI Programming Guide
- Command and Function Reference Format ZBI Reference
- Function Rules ZBI Reference
- Command/Function NAME ZBI Reference
- +101 more
SGD Printer Settings
Set-Get-Do settings for printer behavior, alerts, media, language, storage, and device configuration.
- Using SGD Printer Settings
- alerts.add SGD Reference
- alerts.conditions SGD Reference
- alerts.configured SGD Reference
- +459 more
SGD Network Settings
Set-Get-Do settings for Bluetooth, wired, wireless, security, services, and network diagnostics.
- Using SGD Network Settings
- bluetooth.address SGD Reference
- bluetooth.afh_map SGD Reference
- bluetooth.afh_map_curr SGD Reference
- +403 more
SGD RFID Settings
Set-Get-Do settings for RFID operation, power, calibration, tag handling, and regional configuration.
- Using SGD RFID Settings
- rfid.antenna_sweep SGD Reference
- rfid.country_code SGD Reference
- rfid.enable SGD Reference
- +30 more
Encoding and Reference Tables
Character sets, code pages, fonts, barcode notes, checksums, and encoding reference material.
- Encoding, Code Pages, ZB64, and the Real-Time Clock
Mirror
Guides for distributing, validating, and applying printer configuration and resource updates with Mirror.
- Zebra Mirror Deployment Guide
WML and Weblink
Wireless Markup Language, Weblink connectivity, HTTP POST alerts, and printer-hosted interaction workflows.
- WML and Weblink Integration Guide
Advanced ZPL Techniques
Reusable formats, variable data, serialization, field interactions, real-time clock workflows, and advanced label patterns.
- Advanced ZPL Design and Deployment