All barcode types

2D codes

Data Matrix generator

Type any text and get a Data Matrix, the small square code for parts, samples and electronics.

Make your own

A Data Matrix holding EncodeLabel 12345

Sample: EncodeLabel 12345

Choose label paper and print

Type your own value to download it. The SVG prints at the size shown; the PNG is drawn for a 600 dpi printer. Each picture counts as 1 label. Free for up to 100 labels a month. No account needed.

What Data Matrix is

Data Matrix is a small square 2D code with a solid L-shaped edge. It packs a lot into very little space.

It is used on small parts, electronics, laboratory samples and postage.

What fits

Any text, up to about 2,300 letters and digits. Short values make the smallest codes: the sample, 17 characters, is only 18 cells across.

Size facts

It needs only one cell of blank margin, so it suits very small labels. The sample at 0.5 mm cells is about 10 mm (0.4 in) square.

Shape
A grid of small squares, called cells.
The sample
18 cells across and 18 down, plus its blank margin.
At 0.5 mm cells
The sample is about 10 × 10 mm (0.39 × 0.39 in) with its margin.
Rule of thumb
Keep each cell at 0.4 mm or more. Under 0.25 mm it is too small to scan reliably.
Blank margin
1 cell on every side. It is already part of what we draw.

Sizes are advice, never a block: you can print smaller, and the size line beside the preview says what to expect. Check that it scans before you print a big batch.

Questions

Can a phone camera read a Data Matrix?
Less readily than a QR Code. If people will scan it with their phones, use a QR Code. Data Matrix is at its best with a 2D barcode scanner.
Data Matrix or QR Code?
Data Matrix is smaller for the same short text and needs less blank margin. QR Code is what phone cameras expect. Use whichever your scanner or your customer asks for.
Is this the same as GS1 DataMatrix?
Not quite. GS1 DataMatrix is a Data Matrix that carries GS1 data, such as a product number with an expiry date, in a set format. It has its own type on the Barcode types page.
Do I need an account to make Data Matrix labels?
No. Free for up to 100 labels a month, with no account needed. Each label you print, and each SVG or PNG you download, counts as one. What you see on screen never counts.

More in 2D codes

All barcode types
Feedback

Suggestions and feedback

What would make EncodeLabel better, or what isn’t working? It goes straight to the people who run the site.

Only if you’d like a reply.

We use your email only to reply to you. Please don’t include passwords or private details. Privacy Policy

Add EncodeLabel to your Home Screen

One tap to your labels, like an app, with nothing to download from an app store.