Online 2D Barcode Tool
Data Matrix Generator
Create a scannable Data Matrix (ECC 200) code from your own text or numbers. Generate a live preview, adjust the size and colors, then download a print-ready SVG or PNG file.
Data Matrix Generator Tool
Encode your data into an ECC 200 Data Matrix symbol and download it as SVG or PNG.
Supports ASCII text and numbers. Digits are encoded most compactly.
How to Generate a Data Matrix Code
-
1
Enter your data
Type the text, URL, serial number, or product code you want to encode into the Data Matrix symbol.
-
2
Adjust size and appearance
Keep the symbol size on Auto or pick a fixed size, then set the module size, quiet zone, and colors.
-
3
Download the code
Save the Data Matrix as SVG for crisp scaling in design and print work, or as PNG for quick use.
What Is a Data Matrix Code?
A Data Matrix is a two-dimensional (2D) barcode that stores data in a grid of black and white square modules. It uses the ECC 200 standard with Reed-Solomon error correction, so a symbol stays readable even when part of it is damaged.
Data Matrix codes are widely used to mark small industrial parts, electronic components, medical devices, and pharmaceutical packaging, where a large amount of data has to fit into a very small printed area.
The distinctive L-shaped solid border (the finder pattern) helps a scanner locate and orient the symbol from any angle.
Data Matrix vs QR Code
Data Matrix is optimized for small marks and direct part marking. It needs only a limited quiet zone, encodes efficiently at small sizes, and is common in manufacturing, healthcare, and aerospace traceability.
QR codes hold more data and are more familiar to consumers for marketing, payments, and links. For tiny labels and industrial marking, Data Matrix is usually the better fit.
Data Matrix Generator FAQ
Is the Data Matrix code scannable?
Yes. The tool builds standards-compliant ECC 200 symbols with Reed-Solomon error correction, so the output can be read by standard Data Matrix scanners and mobile scanning apps. Print it large enough and keep the quiet zone clear for best results.
Is the Data Matrix generator free?
Yes. You can generate codes and download SVG or PNG files for free, with no watermark and no sign-up. Everything runs in your browser, so your data never leaves your device.
How much data can a Data Matrix code hold?
The symbol grows with your data. This generator supports square ECC 200 symbols up to 52x52 modules, which holds roughly 340 digits or 200 ASCII characters. Choose Auto to always use the smallest symbol that fits.
Should I download SVG or PNG?
Use SVG for print and design work because it scales without losing sharpness. Use PNG when you need a ready-to-use raster image for documents, web pages, or quick sharing.
Which characters are supported?
You can encode standard ASCII text and numbers, including letters, digits, spaces, and common punctuation such as URLs and product codes. Digits are encoded most compactly, two per module byte.
Related Tools
Need a 1D barcode instead? Use the Barcode Generator for Code 128, UPC, EAN, and more, or the Code 128 Generator for shipping and inventory labels.