Tiny 2D code for parts, tools and medicines. Free, unlimited and instant — with every professional option included.
Free for personal and commercial use. No watermark, no sign-up.
For razor-sharp printing, download the SVG — it scales to any size.
Data Matrix is the tiny 2D code laser-etched onto phone parts, tools, circuit boards and medicine packs. The ECC 200 version corrects damage automatically, and it stays readable at sizes as small as a few millimetres — which is why regulators chose it for medical devices.
Data Matrix was invented in the late 1980s by International Data Matrix and matured through the 1990s as manufacturers — above all NASA and the electronics industry — needed to mark parts too small for any strip barcode. Its ECC 200 version, with Reed–Solomon error correction, became the standard. Regulators then made it famous: the US FDA’s Unique Device Identification rule and the EU’s medical device and medicines regimes chose Data Matrix as the carrier for device and pack data. The tiny square on a scalpel, a phone board and a medicine box is this code.
The symbol is a grid of dark and light cells inside an L-shaped solid finder border, with a clock track of alternating cells on the other two sides — that frame lets imaging scanners locate and deskew it instantly. Inside, data is encoded in 8-bit codewords with error correction woven through: ECC 200 can reconstruct roughly 25% of the symbol even if it is destroyed, which is why an etched code on a worn tool still reads. Capacity runs to 2,335 alphanumeric characters in the largest (144×144) size, but its superpower is the small end: a 10×10 or 12×12 symbol holding a short serial fits in a few millimetres. When the data is GS1-structured, a special FNC1 first character marks it — the same AI grammar as GS1-128, in a square.
Data Matrix is routinely printed or etched at 2–10 mm square — sizes where no 1D code could live. The governing rule is cell size: each module should be at least 0.25 mm for printed labels, and laser-etched parts need enough contrast between etched and unetched surface, sometimes achieved with a printed white panel first. The quiet zone is one module on all sides — small, but not zero. On this generator, use the margin slider to guarantee it, download the SVG for label printing, and test with the actual scanner or phone at the actual size: tiny codes forgive nothing.
The code’s territory is small, valuable or regulated things: surgical instruments and implants (UDI), medicine packs (with GTIN, batch, expiry and serial in GS1 form), circuit boards and chips, aerospace and automotive parts, laboratory samples and premium tools. Direct part marking — dot-peen or laser etch — puts Data Matrix on metal for the life of the part, which is why engines and medical devices carry their identity in this form from factory to scrapyard.
Working with Data Matrix, decide the data discipline first: a bare serial is fine for internal tracking, but the moment a regulator or a customer scans it, GS1 structure is expected — GTIN first, then the AIs, exactly as on the GS1-128 page of this site. Also choose the symbol size by data length, not by hope: more data means more modules, and forcing a long string into a tiny printed square produces an unreadable smudge. Generate here, print one, scan it with three devices, then commit.
Every option above the preview exists because a real labelling job needed it. Bar width sets the thickness of the narrowest bar — raise it for labels that travel far or are scanned at a distance, lower it only when space genuinely runs out. Barcode height does not change the data, but taller bars are dramatically easier to scan, especially handheld. The quiet zone slider controls the blank margin the scanner needs to find the symbol; the default suits most labels, and crowded artwork is the only reason to touch it. The text settings control the human-readable line under the bars — keep it on for anything people also read, and pick OCR-B for the classic machine-printed look. Colours should stay dark-on-light; the transparent background option is for placing the code over your own light artwork in a design program. Finally, the download size matters: SVG is a vector that stays perfect at any scale and is always the professional choice, while the 3x and 4x PNG options exist for software that cannot take vectors. Set the options once, watch the preview, and only then download.
Data Matrix versus QR Code: QR is bigger, phone-native and consumer-facing; Data Matrix is smaller, industrial and regulator-backed — phones can read it with the right app, but it is not the café-menu choice. Versus Aztec: Aztec needs no quiet zone and rules tickets; Data Matrix wins on tiny etched parts. Versus PDF417: PDF417 holds long records on ID documents; Data Matrix holds compact data on objects.
When a freshly printed Data Matrix refuses to scan, the cause is almost never the data — it is the physics of the print. Work through the usual suspects in order. Contrast: scanners see in shades of red light, so black bars on white are the gold standard; red, orange and metallic bars can be nearly invisible, and a dark background with light bars defeats most readers entirely. Quiet zone: the blank margin around the symbol is part of the code — if text, borders or the edge of the label crowd it, the scanner cannot find where the code starts. Size: a symbol shrunk below its sensible minimum merges its fine bars into grey mush; print bigger or simplify the data. Print quality: inkjet bleed, a worn thermal head and low-resolution images all fatten or break bars — print from the SVG, at 100% size, on the best printer setting. Damage and gloss: creases, lamination glare and curved surfaces each steal a slice of the symbol; matte labels placed flat scan best. The professional habit that prevents all of it: print one label, scan it with the actual device that will be used, in the actual lighting, before printing the batch.
Five terms explain nearly everything about working with Data Matrix. The symbology is the language itself — the set of rules that turns data into bars and back; Data Matrix is one symbology among the twenty-one on this site. The X-dimension is the width of the narrowest bar or space, and every other measurement — total size, quiet zone, print tolerance — is expressed as a multiple of it. The quiet zone is the blank margin at both ends of the symbol; scanners use it to recognise where the code begins, and stealing it is the most common cause of failure. A check digit is a final character calculated from all the others, letting the scanner prove the read is correct instead of merely plausible. And the human-readable line is the printed text beneath the bars — there for people, ignored by scanners, and worth keeping accurate because when a scan fails, a human types exactly what it says. Keep these five straight and the rest of this page — and any barcode specification you are handed — becomes easy reading.
Professionals grade printed barcodes from A (excellent) to F (fail) with a device called a verifier, which measures contrast, bar accuracy and defects against the standard for the symbology. You do not need a verifier for everyday work, but the grades explain what “good” means: a Grade A symbol has crisp edges, bars within a hair of their intended widths, and strong contrast. Home and office printing usually lands at B or C — perfectly serviceable for internal labels, shelf edges and documents. Retail packaging and supply-chain labels are held to higher bars because they must scan first time, every time, on equipment you do not control. The practical translation: generate from a proper encoder (as this page does), print from vector artwork, keep contrast absolute, respect the quiet zone, and test-scan. Follow those five rules and your Data Matrix labels will behave like professionally produced ones, because the difference was never the price of the software — it is the discipline of the print.
For posters, menus and anything a customer scans, use QR — phones read it natively. For tiny industrial marking and regulated products, Data Matrix is the professional standard.
Modern phones can, through scanner apps and many camera apps, though support is less universal than QR. In its home territory — factories, hospitals, logistics — dedicated imagers read it instantly. If your audience is the general public, choose QR; if it is industry, Data Matrix is the standard.
Yes — completely free and unlimited. Create as many barcodes as you like and download them as PNG, SVG or JPG with no watermark and no sign-up. Everything is generated in your browser; nothing is uploaded.
Download the SVG for perfectly sharp printing at any size, or a PNG at Print quality (3x) or higher. Keep the quiet zone (the empty margin) around the code, print a test copy, and scan it with a phone or scanner before a big print run.
Yes — the Serial Numbers tab on this page generates a running series, and the Bulk List tab turns a pasted list (one value per line) into barcodes you can download together as a ZIP file or print as a sheet.