Skip to command documentation
Supportedbarcoderasterfield scope
^BQ

QR Code Barcode

^BQ configures qR Code Barcode. It applies to the current field and can change pixels in the rendered label.

Syntax
^BQa,b,c,d,e
a

Field orientation

Sets field orientation. It can be omitted when the documented default is suitable.

Required
No
Documented valuesNRIB

a variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

a = N

Uses N for field orientation while the other command values stay at representative defaults.

ZPLcaret-bq-a-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQN,2,4,Q,7
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

a = R

Uses R for field orientation while the other command values stay at representative defaults.

ZPLcaret-bq-a-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQR,2,4,Q,7
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

a = B

Uses B for field orientation while the other command values stay at representative defaults.

ZPLcaret-bq-a-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQB,2,4,Q,7
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
b

Model

Sets model. It can be omitted when the documented default is suitable.

Default
2
Required
No
Documented values21

b variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

b = 1

Uses 1 for model while the other command values stay at representative defaults.

ZPLcaret-bq-b-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQN,1,4,Q,7
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

b = 2

Uses 2 for model while the other command values stay at representative defaults.

ZPLcaret-bq-b-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQN,2,4,Q,7
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
c

Magnification factor

Sets magnification factor. It can be omitted when the documented default is suitable.

Default
1 on 150 dpi printers 2 on 200 dpi printers 3 on 300 dpi printers 6 on 600 dpi printers
Range
1–100
Required
No
Documented values1100

c variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

c = 1

Uses 1 for magnification factor while the other command values stay at representative defaults.

ZPLcaret-bq-c-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQN,2,1,Q,7
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

c = 100

Uses 100 for magnification factor while the other command values stay at representative defaults.

ZPLcaret-bq-c-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQN,2,100,Q,7
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
d

Error correction

Sets error correction. It can be omitted when the documented default is suitable.

Default
Q = if empty M = invalid values
Required
No
Documented valuesQHML

d variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

d = H

Uses H for error correction while the other command values stay at representative defaults.

ZPLcaret-bq-d-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQN,2,4,H,7
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

d = Q

Uses Q for error correction while the other command values stay at representative defaults.

ZPLcaret-bq-d-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQN,2,4,Q,7
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

d = L

Uses L for error correction while the other command values stay at representative defaults.

ZPLcaret-bq-d-3.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQN,2,4,L,7
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
e

Mask value

Sets mask value. It can be omitted when the documented default is suitable.

Default
7
Required
No
Documented values7

e variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison2 variations

e = 7

Uses 7 for mask value while the other command values stay at representative defaults.

ZPLcaret-bq-e-1.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQN,2,4,Q,7
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

e = 8

Uses 8 for mask value while the other command values stay at representative defaults.

ZPLcaret-bq-e-2.zpl
^XA
^PW640
^LL360
^FO36,32
^BY2,2,90
^BQN,2,4,Q,8
^FDQA,ZPLR QR EXAMPLE^FS
^FO28,318^A0N,22,22^FDCaret BQ parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

Primary source

Official Zebra reference

Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.

Open Zebra documentation

ZPLr Command Reference

Independent documentation for the pinned ZPL II 2025 renderer profile. Examples run locally in your browser.

ZPL, ZPL II, Zebra, and Zebra Programming Language are trademarks or registered trademarks of Zebra Technologies Corp. ZPLr is independent and is not affiliated with or endorsed by Zebra Technologies Corp.