This Data Matrix generator turns text, serial numbers or a link (up to 1,000 characters here) into a square Data Matrix ECC 200 code with built-in Reed-Solomon error correction, and lets you download it as PNG or SVG. The code grows from 10×10 cells upward as you add data, and it is drawn in your browser.
How to make a Data Matrix code
- Type or paste the data: a serial number, a part number, a link or any text.
- Choose the size and colors.
- Download the PNG or SVG file, or print it.
What is a Data Matrix code?
A Data Matrix code is a 2D barcode made of black and white square cells, called modules, arranged in a square or rectangle. It is defined in the standard ISO/IEC 16022. The current version, ECC 200, uses Reed-Solomon error correction, so a scanner can still read the code when part of it is dirty or scratched.
Square ECC 200 codes range from 10×10 to 144×144 modules, and rectangular ones from 8×18 to 16×48. This generator makes square codes.
Data Matrix capacity and sizes
The more data you encode, the more modules the code needs. Digits pack tighter than letters.
| Symbol size (modules) | Digits | Letters and text | Bytes |
|---|---|---|---|
| 10 × 10 | 6 | 3 | 1 |
| 16 × 16 | 24 | 16 | 10 |
| 144 × 144 (largest) | 3,116 | 2,335 | 1,556 |
This page accepts up to 1,000 characters, which keeps the code small enough to print and scan.
Data Matrix vs QR code
- Shape: Data Matrix can be square or rectangular; QR Code is always square.
- Error correction: Data Matrix ECC 200 has one fixed level; QR Code lets you choose one of four levels.
- Reading: most phone cameras read QR Code; Data Matrix often needs a barcode scanner app.
To make a QR Code or another type, use the barcode generator.
Data Matrix vs GS1 DataMatrix
GS1 DataMatrix is a standard Data Matrix ECC 200 code with an FNC1 character in the first position and data written in GS1 application identifiers, such as a GTIN, a batch number and an expiry date. It is used on medical devices and pharmaceuticals. Choose GS1 DataMatrix in the type menu above and type the data with the identifiers in brackets, for example (01)09501101530003(17)261231(10)AB-123.
Where Data Matrix is used
Data Matrix stores a lot of data in a very small area, so it is used to mark electronic components, circuit boards, medical devices, small packages and metal parts marked directly by laser or dot peen. For long text codes on larger labels, the Code 128 generator is often enough.
Is it private?
Yes. The Data Matrix code is drawn in your browser. The data you type is not sent to our server.
Tips for Data Matrix codes
- Keep the data short; shorter data makes a smaller code with larger cells that scan more easily.
- Leave a blank margin around the code.
- Print dark cells on a light background.
- Do not print each cell smaller than your printer can draw cleanly; use SVG for small labels.
- Test the code with the scanner or app your users have.
Related tools
Frequently asked questions
Can a phone read a Data Matrix code?
Yes, with a barcode scanner app. Some built-in phone camera apps read only QR codes.
How much data fits in a Data Matrix code?
The largest code, 144 × 144 modules, holds 3,116 digits or 2,335 letters. This page accepts up to 1,000 characters.
Can I make a GS1 DataMatrix?
Yes. Choose GS1 DataMatrix in the type menu and enter GS1 application identifiers in brackets. Each identifier and its length are checked.
Why does the code get bigger when I type more?
Each module holds one bit of data, so more data needs more rows and columns.
Can I make Data Matrix codes in bulk?
Yes. The bulk barcode generator makes one Data Matrix code per line of a list.