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
Sets the printed size of the downloads.
Sample: EncodeLabel 12345
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.
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.
Related barcode types
- Rectangular Data Matrix The long, low form for narrow spaces.
- GS1 DataMatrix Data Matrix carrying GS1 data, on medicine packs.