How to Use the Data Matrix Generator
Type a value of up to 500 characters, or load the sample. The symbol appears as you type. Pick a square or rectangle, set the module size and download SVG or PNG.
A module is one small square in the grid. A larger module makes a larger symbol that is easier to print and read. For retail checkout numbers you need a one-line barcode instead, which the UPC tool makes.
What a Data Matrix Is
A Data Matrix is a two-dimensional code made of dark and light squares. It holds letters, digits and keyboard symbols in a small space, so it suits tiny parts, electronics, lab samples and asset tags. This page makes the common version, called ECC 200, which includes error correction. A partly damaged symbol can often still be read.
The Parts of the Symbol
| Part | Where | What it does |
|---|---|---|
| Solid L | Left side and bottom | Shows the scanner where the symbol is and which way up |
| Alternating squares | Top and right side | Show how many rows and columns there are |
| Data area | Inside the border | Holds your value and the error correction |
| Quiet zone | All four sides | Blank margin that separates the symbol from its surroundings |
Keep at least one module of blank space on every side. This tool leaves two, which gives some room for printing drift.
How Much It Can Hold
The largest square ECC 200 symbol, 144 by 144 modules, holds up to 3,116 digits or 2,335 letters and digits. Square symbols start at 10 by 10. This tool stops at 500 characters, because very dense symbols are hard to print small.
Longer values make more modules. At a fixed module size, that means a larger symbol. Store only the identifier you need and keep descriptions in your database.
Square or Rectangle?
Square is the usual choice and holds more. A rectangle helps on narrow places such as a tube, a cable tag or the edge of a part. Rectangular symbols have far less capacity, and the tool tells you when a value is too long for one.
Data Matrix and GS1 DataMatrix
GS1 DataMatrix uses the same squares but starts with a special function character, then GS1 data fields such as a product number, lot or expiry date. This page makes plain Data Matrix only. If a customer or regulator asks for GS1 DataMatrix, use a tool built for it.
Data Matrix or a Linear Barcode?
| Need | Better choice |
|---|---|
| Retail checkout today | UPC or EAN |
| Short internal code on a flat label | Code 128 |
| Long value on a very small part | Data Matrix |
| Reading with a camera-based scanner | Data Matrix works well |
Older laser scanners read only one-line barcodes. Check that your scanner reads 2D codes before you change labels.
Printing and Testing
Print black on white and keep the grid square, with no stretching. Choose a module size your printer can draw cleanly. Then scan a printed sample with the scanner that will be used. You can also check a photo or screenshot with the barcode reader. To compare other types, open the barcode maker.
Data Matrix FAQs
What is a Data Matrix code?
A square or rectangular grid code that stores text and numbers in a small area.
Is it the same as a QR code?
No. Both are 2D codes, but they use different patterns and a Data Matrix has the L-shaped edge.
Can I use it instead of a UPC?
Not for the retail checkout number unless your trading partner asks for a 2D code.
How small can I print it?
That depends on your printer and scanner. Test a sample at final size.
Is this Data Matrix generator free?
Yes. There is no sign-up, and the files carry no watermark.
Is my value uploaded?
No. The symbol is drawn in your browser.