Skip to content
UseQR
ESC

Jump to

MOVEOPEN50 places

Glossary

Data Matrix

Data Matrix is a 2D matrix barcode defined in ISO/IEC 16022, recognisable by its solid L-shaped border on two edges. It scales down further than QR (readable at a few millimetres square), which made it the standard for pharmaceutical serialisation, electronics and direct part marking.

View as MarkdownPaste this page into any AI assistant. It is plain, portable Markdown.

Where it beats QR

Data Matrix (the modern ECC 200 variant, ISO/IEC 16022) uses Reed–Solomon error correction like QR, but its geometry is thriftier at the small end. Symbols run from 10 × 10 to 144 × 144 modules, plus rectangular formats, and the quiet zone is only 1 module against QR's 4. Its finder is an L-shaped solid border on two edges with an alternating "clock track" on the other two: cheaper in area than QR's three 7 × 7 corner squares, which is most of why a Data Matrix holding the same short payload is physically smaller.

That thrift owns the tiny-marking world: GS1 Data Matrix on medicine packs (EU Falsified Medicines Directive serialisation), laser-etched codes on PCBs and surgical instruments, and dot-peened direct part marks in aerospace. Capacity tops out at 3,116 digits / 2,335 alphanumeric characters / 1,556 bytes, below QR's ceilings, irrelevant at these sizes.

Where QR beats it

Phones. Native camera apps target QR; Data Matrix support is inconsistent without a dedicated scanning app. QR's three-corner finder also locates faster from any angle at poster distances. For anything the public scans, use a QR code; choose Data Matrix when a regulation demands it or the mark must fit under ~5 mm. The wider comparison lives at QR vs Data Matrix.

FAQ

What is the difference between Data Matrix and QR code?

Both are 2D matrix codes with Reed–Solomon error correction. Data Matrix is smaller for short payloads and marks well at millimetre scale; QR holds more data, scans faster from phones, and is what camera apps natively read.

Can a phone scan a Data Matrix code?

Often, but not reliably with the built-in camera: support varies by OS and version. Industrial and pharmacy settings use dedicated 2D imagers instead.

Why do medicines use Data Matrix instead of QR?

GS1 and the EU Falsified Medicines Directive standardised on GS1 Data Matrix for serialisation. It fits the required identifiers into the small print area of a medicine pack more efficiently than QR.

Try it: free, no signup

  • Aztec code, Aztec is the bullseye-centred 2D barcode of transport ticketing (rail tickets and mobile boarding passes), and the only major 2D code needing no quiet zone.
  • PDF417, PDF417 is the stacked-linear 2D barcode on US driver's licences and printed boarding passes: older, larger and laser-scannable, unlike true matrix codes.
  • Module, A module is one square cell of a QR code: the smallest unit of the pattern. Codes are measured in modules, not pixels or millimetres, because the module…
  • Quiet zone, The quiet zone is the blank margin around a QR code. The specification requires at least four modules of clear space on every side, and codes fail more…