2D barcode · ECC 200
Data Matrix Generator
Type text, a serial number or a part number to make a Data Matrix code. Download it as SVG or PNG, free and without signing up.
Any text up to about 1,500 characters. Compact 2D code for small parts and labels.
Where Data Matrix codes are used
Data Matrix packs a lot of data into a tiny square, so it shows up wherever space is short.
Electronics and parts
Serial and part numbers on circuit boards, components and tools, often printed or marked just a few millimetres wide.
Inventory and assets
Bin, tote and asset labels where a linear barcode with a long ID would be too wide.
Healthcare and lab samples
Tubes, vials and instruments. Regulated products may require the GS1 DataMatrix variant.
Documents and mail
Postal and document tracking systems use Data Matrix to carry routing and ID data.
Data Matrix vs. QR code vs. Code 128
| Data Matrix | QR Code | Code 128 | |
|---|---|---|---|
| Shape | Square or rectangle | Square with three corner markers | Linear bars |
| Best for | Small items, industrial scanners | Phone cameras, links | Inventory SKUs, shipping |
| Size for the same data | Smallest | Larger | Wide for long values |
| Damage tolerance | High (error correction) | High (adjustable) | Low |
Need hundreds of Data Matrix codes?
Import a list of serial numbers from Excel or CSV, pick Data Matrix, and download every code as SVG or PNG — or print them straight onto label sheets.
Data Matrix FAQ
What is a Data Matrix code?
Data Matrix is a square 2D barcode made of black and white cells. It stores letters, numbers and symbols in a very small area and can still be read when part of it is damaged, which is why it is used on electronic parts, medical devices and small product labels.
Data Matrix or QR code — which should I use?
Use Data Matrix for serial numbers, part numbers and other data printed on small items or read by industrial scanners: it is smaller for the same data. Use a QR code when people will scan it with a phone camera, such as a link to a web page.
How much data can a Data Matrix hold?
The largest standard Data Matrix holds up to 2,335 letters and digits or 3,116 digits. This generator accepts about 1,500 characters; keep the content short so the code stays small and easy to read.
Does this make GS1 DataMatrix codes?
Not yet. This page creates standard Data Matrix (ECC 200). GS1 DataMatrix used for pharmaceutical and healthcare traceability needs special GS1 formatting; check your industry’s requirements before using these codes for regulated products.
Can I create many Data Matrix codes from a spreadsheet?
Yes. Open the Bulk Barcode Generator, choose Data Matrix as the barcode type, and import your Excel or CSV file to get a ZIP of SVG/PNG files or a label PDF.
What size should I print a Data Matrix?
It depends on the amount of data and your scanner. As a rule of thumb, keep each cell at least 0.25 mm wide and leave a blank margin around the code. Print one, test it with your own scanner, then print the batch.