Basics
QR code vs Data Matrix
QR and Data Matrix are both 2D matrix codes with Reed-Solomon error correction. Data Matrix marks smaller - a 10 x 10 symbol with a one-module quiet zone - which is why pharma serialisation and PCB marking use it. QR holds more, 2,953 versus 1,556 bytes, and every phone camera reads it natively.
The comparison
| QR code | Data Matrix (ECC 200) | |
|---|---|---|
| Standard | ISO/IEC 18004 | ISO/IEC 16022 |
| Smallest symbol | 21 × 21 modules (11 × 11 Micro QR) | 10 × 10 modules |
| Largest symbol | 177 × 177 | 144 × 144 |
| Max capacity | 7,089 numeric / 4,296 alphanumeric / 2,953 bytes | 3,116 numeric / 2,335 alphanumeric / 1,556 bytes |
| Quiet zone | 4 modules per side | 1 module per side |
| Finder | Three corner squares | Solid "L" on two edges, dashed clock track on the others |
| Error correction | Selectable: L/M/Q/H (7–30%) | Fixed per size, roughly 25–33% overhead |
| Rectangular option | rMQR, separate standard | Built in (e.g. 8 × 18 to 16 × 48) |
| Phone camera support | Universal, native since 2017 | Inconsistent, needs the right app |
Where Data Matrix wins: tiny marks
Data Matrix is the format of very small marking. A 10 × 10 symbol plus its one-module quiet zone occupies a 12 × 12 grid; the smallest QR needs 21 × 21 plus four modules of quiet zone on every side, 29 × 29. For a short serial number, Data Matrix fits in roughly a sixth of the area, which is decisive when the "label" is a 2 mm laser mark on a surgical instrument or a dot-peened patch on an engine part.
That is why the regulated small-mark world standardised on it:
- Pharmaceuticals. The EU Falsified Medicines Directive requires a GS1 Data Matrix carrying product code, serial, batch and expiry on prescription medicine packs; US DSCSA serialisation uses the same symbology.
- Electronics. PCB and component marking, where the code is engraved or printed at millimetre scale.
- Aerospace and defence. Part marking under MIL-STD-130 and SPEC 2000 uses direct part marking (DPM) Data Matrix.
Its fixed, generous error correction and simple L-shaped finder also tolerate the low contrast of engraved and dot-peened marks better than typical QR deployments.
Where QR wins: people
QR's three finder patterns make it locatable at speed, at an angle, in a cluttered scene, and, decisively, every phone camera reads it natively. Data Matrix support on stock camera apps is patchy at best; handing a consumer a Data Matrix means handing them a puzzle. QR also holds nearly twice the data, offers selectable error correction so you can trade robustness against density, and has the entire payment and marketing ecosystem built on it.
Which to use
- A consumer will scan it → QR code, no exceptions.
- An industrial scanner reads a tiny mark → Data Matrix.
- Pharma, aerospace, electronics compliance → whatever the applicable spec mandates, which is almost always Data Matrix.
- Long thin surface, industrial readers → rectangular Data Matrix or rMQR.
Both formats decode to plain text; if you have an unknown symbol, a decoder such as the UseQR scanner will identify QR codes, and dedicated industrial apps handle Data Matrix.
FAQ
Is Data Matrix the same as a QR code?
No. Both are two-dimensional matrix codes using Reed-Solomon error correction, but they are separate ISO standards with different finder patterns, sizes and capacities. A Data Matrix reader is not a QR reader, and phone cameras natively read only QR.
Which is smaller, QR code or Data Matrix?
Data Matrix. Its smallest symbol is 10 x 10 modules with a one-module quiet zone, against QR's 21 x 21 with four modules of quiet zone per side, roughly a sixth of the area for a short payload.
Why do medicines use Data Matrix instead of QR codes?
Regulation and size. The EU Falsified Medicines Directive specifies GS1 Data Matrix for prescription pack serialisation, and the symbology fits batch and serial data into very small print areas that pharmacy scanners are built to read.
Can an iPhone scan a Data Matrix code?
Not reliably with the built-in Camera app, which is designed around QR. Third-party scanner apps and industrial readers handle Data Matrix; for anything consumers scan, use a QR code instead.
Try it: free, no signup
Related
- QR code vs Aztec code, Aztec codes need no quiet zone and centre their finder, which suits cramped boarding passes and rail tickets. QR wins capacity and universal phone support.
- QR code vs PDF417, PDF417 is a stacked linear barcode from 1991, still mandated on US driving licences and printed boarding passes. QR stores the same data in far less space.
- QR code vs MaxiCode, MaxiCode is UPS's fixed-size hexagonal sortation code - about 25 x 25 mm, 93 characters, a central bullseye. Outside parcel conveyors, QR wins every time.
- QR code vs barcode, A traditional barcode stores about 20 characters in one dimension and must be scanned in roughly the right orientation. A QR code stores up to 2,953 bytes…