Data Matrix Generator
A tiny square 2D code for parts, labels and healthcare.
- 100% Free
- No Sign Up
- Works in Your Browser
Data Matrix generator
Square Data Matrix codes for small parts
Any text, up to 1,000 characters (GS1 mode: AIs in brackets).
SVG and PDF are vectors: sharp at any size, best for print.
Made in your browser. Nothing is uploaded.
More Barcode Tools
View all tools- Barcode generatorMake UPC, EAN, Code 128 and 2D barcodes
- UPC barcode generatorUPC-A barcodes for US and Canadian retail
- EAN-13 barcode generatorEAN-13 barcodes for retail worldwide
- EAN-8 barcode generatorShort EAN-8 barcodes for small packs
- ISBN barcode generatorBookland EAN barcodes for book covers
- Barcode scannerScan barcodes with your camera
- Code 128 generatorCode 128 for letters, numbers and symbols
- Design barcode generatorBarcodes with art in the bars, scan-checked
- Check digit calculatorGS1 check digits for UPC, EAN and GTIN
Every barcode you need, made right in your browser.
No software. No uploads. No signup.
Browse all 24 tools- Barcode tools
- 24
- Reference guides
- 7
- Files uploaded
- 0
How to use the data Matrix generator
Three steps, all in your browser.
- 1
Enter your data
Type or paste the number or text to encode. Errors are explained.
- 2
Adjust the barcode
Change the options if you need to. The preview updates as you type.
- 3
Download
Save the result and print it. Test a printed sample before a big run.
Data Matrix Generator: what to know
Data Matrix is a square or rectangular 2D code made of black and white cells, framed by an L-shaped solid border on two sides and a dotted timing pattern on the other two. The modern version, ECC 200, uses Reed-Solomon error correction, so a code can be read even when part of it is damaged or dirty.
It packs a lot into very little space: a short serial number fits in a 10 by 10 cell square a few millimetres wide, and the largest symbol, 144 by 144 cells, holds up to 3,116 digits. That's why it's used to mark electronic components, car parts and surgical instruments, often etched straight into metal.
GS1 DataMatrix, Data Matrix with GS1 Application Identifiers, is the standard for healthcare products, including the UDI on medical devices and serialized medicine packs. The generator encodes your text or numbers into an ECC 200 symbol and picks the smallest size that fits.
Popular uses
- Serial numbers on electronics and small parts
- Medical device and pharmaceutical labels
- Document tracking on forms and letters
- Small labels where a QR code would be too big
Tips for the best result
- Keep a quiet zone of at least one cell around the code; more is safer.
- Phone camera apps vary in Data Matrix support; dedicated scanners and our camera scanner read it reliably.
- Print cells square; stretching the code makes it harder to read.
Read how JustYourBarcode works and our privacy details. Numbers, pictures, CSV files and camera frames are processed in your browser and are never sent to our server. A barcode doesn't register a product number: retail UPC and EAN numbers come from GS1.