Qrix There is no square. There is code.

DataMatrix and product marking: how it differs from QR

A medicine box or a cigarette pack often carries not a QR code but a small square of dots. That is DataMatrix, the format chosen for product marking.

What DataMatrix is

DataMatrix is a two-dimensional code like QR, but with different geometry: it has solid L-shaped sides the scanner uses to find orientation, and the data sits in a dense grid of dots.

For the same amount of data DataMatrix is more compact than QR, which is why it is chosen for small packaging: ampoules, cigarette packs, jewellery tags. A one-centimetre square can hold a serial number.

Why marking uses it

Marking traces a product from factory to till. The code carries not only the item number but the serial number of that specific pack, so two identical packs differ.

That is what makes it useful against counterfeits and for accounting: at the till the code is retired, and the same pack cannot be sold twice. That is why marking uses DataMatrix with a unique serial.

How it differs from QR

Any phone reads QR; not every phone reads DataMatrix. The iPhone camera does not always recognise it, while dedicated marking scanners read both formats.

QR usually encodes a link or text, while DataMatrix in marking holds a strict structure: item identifier, serial number, verification code. It is not free text but fields with fixed lengths.

Another difference is size and density: DataMatrix can be printed very small, while QR with the same data would need more space.

Why a pack carries two codes

Often a marking DataMatrix and a QR linking to the brand site sit side by side. The first is for the state and the till, the second for the customer who wants to know more.

These are different jobs and cannot be merged into one code: marking requires an immutable serial, while a website link may change. So manufacturers print both.

The short answers

Is DataMatrix the same as QR?

No. It is another two-dimensional format with different geometry and data structure. Scanners usually read both, phones only QR.

Can I use DataMatrix for my own tracking?

Yes, but you need a scanner that reads it: an ordinary phone camera does not always cope. For internal tasks QR or Code 128 is simpler.

What is a marking code?

A string with the item identifier, a serial number and a verification code. It is applied to the pack and retired on sale, so the item cannot be sold twice.

Why both QR and DataMatrix on one pack?

Different jobs: DataMatrix serves traceability and the till, QR serves the customer who wants the brand page or the leaflet.

More guides