How to make a Data Matrix code
- 1
Enter the content
A serial number, part number, batch code or link. Shorter content makes a smaller code.
- 2
Square or rectangle
Square holds the most. Rectangle fits narrow spaces like cable labels and edges.
- 3
Check the grid size
We pick the smallest symbol that fits, from 10 × 10 cells up to 144 × 144.
- 4
Download
PNG for labels, SVG, PDF or EPS for engraving files and print shops.
What is a Data Matrix code?
A Data Matrix is a 2D code made of square cells. You can spot one by its border: two sides are solid lines in an L shape, and the other two alternate light and dark. The solid L tells the scanner where the code is and which way up it is.
The current version, ECC 200, adds Reed-Solomon error correction, so a code that’s scratched, smudged or partly worn off still reads. Codes come in squares from 10 × 10 to 144 × 144 cells, and rectangles from 8 × 18 to 16 × 48.
Where Data Matrix is used
- Electronics: circuit boards and components, where a code has to fit in a few millimetres.
- Automotive and aerospace parts: often laser-etched or dot-peened straight into metal, so they last the life of the part.
- Medicines and medical devices: GS1 DataMatrix carries product numbers, batch, expiry and serial numbers on drug packs in the EU and US.
- Labels and documents: anywhere you need a lot of data in a small space.
Data Matrix vs QR code
| Data Matrix | QR code | |
|---|---|---|
| Smallest size | 10 × 10 cells | 21 × 21 cells |
| Best for | Short data in tiny spaces, industry | Links and anything the public scans |
| Phone camera apps | Usually need a scanner app | Built into every phone camera |
| Most digits | 3,116 | 7,089 |
For anything customers will scan with a phone, like packaging, menus or flyers, use a QR code. For parts, small labels and internal tracking, Data Matrix is smaller and is the industry standard.
Printing and marking tips
- Leave a margin. The code needs at least one blank cell all around. Ours includes two.
- Cell size: 0.25-0.5 mm works for printed labels read with a 2D scanner. Bigger cells read from further away.
- High contrast. Dark cells on a light background. For laser marking, use the SVG or EPS so every cell edge is exact.
- Test it with your scanner, or upload a photo to our online scanner, which reads Data Matrix too.