Skip to content

^BX Data Matrix

Data Matrix 2D barcode.

Barcodes · Updated 2026-10-20

Syntax

^BXo,h,s,c,r,f,g,a

Parameters

ParameterWhat it doesValues
oRotation.N, R, I, B
hModule size, in dots.1 to the label width
sQuality level.0, 50, 80, 100, 140, 200; use 200 (ECC 200)
cColumns.9 to 49; default auto
rRows.9 to 49; default auto
fFormat ID.1 to 6; default 6
gEscape character.default ~
aAspect ratio.1 = square, 2 = rectangular

Common mistakes

  • Always use quality 200 (ECC 200): the older levels aren't read by most scanners.

Example

Edit the code and the label redraws. This is the same engine as the API.

Try it

Preview

100%

Questions

What does ^BX do in ZPL?

Data Matrix 2D barcode.

What is the syntax of ^BX?

^BXo,h,s,c,r,f,g,a

What should I watch out for with ^BX?

Always use quality 200 (ECC 200): the older levels aren't read by most scanners.

Related commands