Barcode Sensei

Make a Data Matrix code

Data Matrix fits text into a small square, and marks parts, medicines and electronics.

Make many Data Matrix codes at once, from a list or a CSV file.

Any text or link, with line breaks if you like.

Looks right.

About Data Matrix

For a small square that marks a part, a medicine or an electronic component, the code is Data Matrix. It fits text into very little room: letters, digits or any other text, up to 1,556 bytes here, which fills its largest square, 144 modules a side. A short text makes a very small square.

We draw it with modules of 0.5 mm, as for a QR Code, and a quiet zone of 1 module all round. It carries no text under it, so put any words people need to read beside it on the label.

A Data Matrix has no check digit. It carries error correction instead, extra data woven into the square from which a reader can rebuild parts that are scratched or dirty, so a worn code still reads.

For a product's GTIN with its batch, expiry date and serial number, use GS1 DataMatrix: it marks its data as GS1's, so the system that reads it knows what each part means. Plain Data Matrix is for your own text, such as a part number or a lot code.

Questions people ask

Should I use Data Matrix or a QR Code?

A QR Code for anything a phone should open, since that's the code phone cameras look for. A Data Matrix fits the same text into a smaller square, which suits a part or a pack with little room.

How much can a Data Matrix hold?

Up to 1,556 bytes here, which fills its largest square, 144 modules a side. A letter without an accent or a digit takes one byte, and other characters two to four.

What's the difference between Data Matrix and GS1 DataMatrix?

They're drawn alike, but a GS1 DataMatrix holds GS1's application identifiers, such as a GTIN, a batch and an expiry date, and marks its data as GS1's. Use it for products, and plain Data Matrix for your own text.

Why is there no text under my Data Matrix?

A 2D code has no line of digits under it, as a bar code does, and its text can be long. Put any words people need to read beside it on your label.