FastZPL
ZPL ^BQ QR Code Command

ZPL QR Code Generator & ^BQ Syntax

Test, debug, and generate 2D QR Code barcodes in ZPL II using the ^BQ command with interactive parameter controls and instant canvas preview.

100% Client-Side RAM (Zero-Upload)
Instant Sub-30ms Conversion
No 429 Rate Limits
Offline PWA Ready
Vector SVG Pre-render (203 DPI)
1-Bit Crisp
ZPL ^BQ QR CODE SPECIFICATION SYNTAX: ^BQa,b,c (MODEL 2, NORMAL) FIELD DATA SWITCH: ^FDQA,...^FS (LEVEL H) PARAMETER BREAKDOWN: • a = N : Orientation (Normal / 0 deg) • b = 2 : Model 2 (Enhanced QR) • c = 8 : Magnification Factor (1-10 dots/module) • QA, : Mode Q (Auto), Level H (30% Damage Recovery) ^FO50,50^BQN,2,8^FDQA,https://fastzpl.app^FS Valid ZPL II Barcode String (100% Scan Verified)
Load in FastZPL Studio & Convert to PDF

Clicking opens this template directly in the browser editor.

ZPL II Source Code
^XA ... ^XZ
^XA
^PW812
^LL800
^LH0,0
^FO50,40^A0N,40,36^FDZPL ^BQ QR CODE SPECIFICATION^FS
^FO50,90^A0N,26,22^FDSYNTAX: ^BQa,b,c (MODEL 2, NORMAL ORIENTATION)^FS
^FO50,125^GB712,3,3^FS
^FO50,160^BQN,2,8^FDQA,https://fastzpl.app/commands/zpl-qr-code-bq-generator/^FS
^FO280,170^A0N,28,24^FDPARAMETERS:^FS
^FO280,210^A0N,24,20^FDa = N (Normal Orientation)^FS
^FO280,245^A0N,24,20^FDb = 2 (Model 2 Enhanced)^FS
^FO280,280^A0N,24,20^FDc = 8 (Magnification Factor 1-10)^FS
^FO280,315^A0N,24,20^FD^FD Switch: QA (Auto Data / Level H)^FS
^FO50,420^GB712,3,3^FS
^FO50,450^A0N,26,22^FDENCODED DATA: HTTPS://FASTZPL.APP/COMMANDS/ZPL-QR-CODE-BQ-GENERATOR/^FS
^FO50,490^A0N,24,20^FDCORRECTION CAPACITY: UP TO 30% DAMAGE RECOVERY (LEVEL H)^FS
^FO50,540^GB712,4,4^FS
^FO50,580^A0N,32,28^FDTESTED FOR WMS, HEALTHCARE & ASSET TRACKING^FS
^XZ

Technical Specifications

ZPL II Command
^BQ (QR Code Barcode)
Supported Models
Model 1 (Legacy) & Model 2 (Enhanced, Recommended)
Magnification Factor
Scale factor 1 through 10 dots per module
Error Correction
Level L (7%), M (15%), Q (25%), H (30%)
Field Data Switch
QA (Automatic input) or MA, LA, HA prefixes

Why FastZPL is the #1 Choice

01

Live Parameter Validation

Instant visual feedback for orientation (a), model selection (b), and magnification scale (c).

02

QA Error Correction Helper

Avoid the common syntax trap of missing the QA, prefix in the ^FD string that causes silent QR rendering failures.

03

Direct Copy & Paste ZPL

Generate tested, compliant ZPL II snippets ready to insert into warehouse management systems or backend ERP pipelines.

Understanding the Zebra ZPL ^BQ command syntax

The ^BQ command generates ISO/IEC 18004 compliant 2D QR Code barcodes on Zebra thermal printers. The command accepts three parameters: ^BQa,b,c where a is the orientation (N=Normal, R=Rotated, I=Inverted, B=Bottom-up), b is the model (always use 2 for modern Model 2 barcodes), and c is the magnification factor (typically 4 to 8 depending on DPI).

The mandatory ^FD field data prefix in ^BQ

The most frequent error when writing ZPL QR codes is omitting the field data switch. In ZPL II, the ^FD data block must begin with a two-character mode switch: Q (Automatic data input) followed by the error correction level letter (H, Q, M, or L), followed by a comma. For example, ^FDQA,https://example.com^FS instructs the printer to generate a QR code with Level H (30% recovery) error correction.

Frequently Asked Questions

Why does my Zebra printer print literal text instead of a QR code?

This occurs when the ^FD string is missing the two-letter mode prefix (e.g. QA,). Without QA, or LA,, the Zebra parser treats the data as invalid QR input and may abort barcode generation.

What magnification scale should I use for 203 DPI printers?

A magnification factor of 6 to 8 (^BQN,2,7) provides an ideal module size (~1.5mm to 2mm) for fast smartphone and industrial hand scanner decoding.

Can I encode binary data or URLs in ZPL QR codes?

Yes. Model 2 QR codes support alphanumeric text, binary bytes, and full URLs up to 7,089 numeric or 4,296 alphanumeric characters.

Related ZPL Tools & Guides