zplCloud

Barcodes

QR Codes in ZPL

QR codes are rendered natively with the `^BQ` command. No external library needed -

QR Codes in ZPL

QR codes are rendered natively with the ^BQ command. No external library needed -

the printer computes the matrix.

Basic QR code

^XA
^FO100,100^BQN,2,8^FDMM,https://zplcloud.com^FS
^XZ

^BQ parameters: ^BQa,b,c,d,e

ParamMeaningTypical
-------------------------
aorientation: N (normal), R (90°), I (180°), B (270°)N
bmodel: 1 = QR model 1, 2 = QR model 22
cmagnification (1–10, module size in dots)2–4
derror correction: H(≈30 %), Q(≈25 %), M(≈15 %), L(≈7 %)M
emask value (0–7, blank = printer choice)(blank)

Data modes

The ^FD payload starts with a two-character mode:

ModeMeaningUse for
------------------------
MMauto / binaryURLs, mixed content
QAalphanumericuppercase letters + digits + a few symbols
QNnumericdigits only
^FDQA,HELLO123^FS      ; alphanumeric
^FDQN,4006381333931^FS ; numeric

Size guidance

The physical size depends on magnification and content length:

MagnificationModule size @203 dpi~24 chars (URL)
-----------------------------------------------------
20.25 mm≈ 12 mm
30.38 mm≈ 18 mm
40.50 mm≈ 24 mm

Rule of thumb: keep at least 4 modules of quiet zone on all sides; the printer

must be able to print a clean solid square (clean printhead, correct darkness).

Tips

  • QR needs good contrast: black modules on white media, ^MD darkness high enough.
  • Always test with a phone - a QR that "looks fine" may still not scan if the

error-correction level is too low for the print quality.

  • For very small labels prefer the highest error correction (H) to survive dust/defects.