What you're using right now
- 100+ barcode & QR symbologies
- Live preview & customization
- PNG & SVG export, no login
- Copy to clipboard
Loading Barcode Mintβ¦
Free Online Barcode & QR Code Generator
Generate a compact Data Matrix code built for tiny labels, direct part marking, and industrial traceability.
Open the generator βTurn a CSV β or a numbered sequence β into hundreds of barcodes at once, exported as a ZIP of images or a print-ready PDF sheet. Launching with Pro.
The browser generator stays free forever. Paid plans are for teams who need bulk output and developers who need the REST API at scale β commercial license included. Tell us what you'd use; early-list members get first access and launch pricing.
What you're using right now
For designers & teams
Priced by requests. Commercial license and self-serve keys included; usage dashboard at launch.
Data Matrix is a two-dimensional matrix barcode standardized under ISO/IEC 16022 that packs data into a small square or rectangular grid, designed specifically for situations where label space is at a premium. It was developed in 1989 by International Data Matrix (later acquired by RVSI Acuity CiMatrix) and is now free to use under an open standard. The current version, ECC200, uses Reed-Solomon error correction and is the version virtually all modern generators and scanners produce; older ECC0-140 convolutional-code versions are effectively obsolete and rarely encountered outside legacy systems.
Every Data Matrix symbol has a distinctive solid black border in an "L" shape along two adjacent sides — the finder pattern — which lets a scanner instantly determine the code's position and orientation regardless of rotation. The two opposite sides carry an alternating black-and-white "clock track" pattern that tells the scanner exactly how many rows and columns of modules make up the grid, so the decoder knows the symbol's dimensions before it even reads a single data module. Inside that border, data is encoded using Reed-Solomon error correction, which allows the symbol to remain readable even with moderate damage, dirt, or printing defects — a critical property for parts that get handled, etched, or exposed to harsh environments. Unlike QR code's three separated finder squares, Data Matrix's single continuous L-border means the symbol keeps working even when a corner is obscured, as long as enough of the border and clock track survive.
Data Matrix can encode plain text, numbers, and binary data, with symbol sizes ranging from a tiny 10×10 module grid up to 144×144 modules in square form, or in rectangular shapes (such as 8×18 or 16×48 modules) for labels with unusual proportions like cable wraps or narrow strips. Capacity scales with size: small symbols hold only a handful of characters, while the largest square symbols can hold roughly 2,000 alphanumeric characters or around 1,500 bytes of binary data, though real-world payloads for part marking and GS1 use are almost always far shorter. Error correction uses ECC200 Reed-Solomon coding at a fixed, symbol-size-dependent overhead rather than the user-selectable L/M/Q/H tiers found in QR code — you don't choose a correction level, the standard's built-in ratio for that symbol size handles it. Because of its compact footprint relative to data capacity, Data Matrix is frequently the smallest option among common 2D symbologies for a given amount of data, which is why it dominates direct part marking.
Direct part marking on electronics, automotive components, and aerospace parts, where the code is laser-etched or dot-peened directly onto metal or plastic surfaces and must survive machining, heat, or corrosion; printed circuit board serialization for traceability from fabrication through assembly; medical device and pharmaceutical labeling where FDA UDI (Unique Device Identification) rules commonly point manufacturers toward Data Matrix or GS1 DataMatrix; small retail and cosmetic packaging where a UPC barcode would consume too much surface area relative to the product; and document and mail sorting systems that rely on its compact, high-density format to fit alongside other printed content on a page or envelope.
Select Data Matrix from the symbology list on the left and enter your text, numeric, or ID data directly — no special formatting is required unless you're targeting GS1 compliance, in which case use the separate GS1 Data Matrix type instead. Error correction is fixed at ECC200 (Reed-Solomon) for every symbol, so there's no L/M/Q/H setting to configure; the standard applies the appropriate redundancy automatically based on symbol size. From there you can:
/barcode?type=datamatrix&data=PART-00042 — to automate label generation from your own systemsMaintain a quiet zone on all four sides, though Data Matrix's solid-border finder pattern tolerates tighter surrounding print than symbologies with separated finder squares like QR code. For direct part marking, match your marking method — laser etching, dot-peen, chemical etch, or ink-jet — to the material and ensure sufficient contrast between the mark and the surface under the lighting your scanner will use; low-contrast etches on shiny metal are the most common source of read failures. Keep each module large enough for your scanner's optical resolution; very small or curved-surface codes typically need a dedicated imaging scanner rather than a basic laser barcode reader, since laser scanners can't reliably resolve a 2D grid. Grading against ISO/IEC 15415 print-quality standards is common in regulated or high-volume manufacturing settings. Test scans on the actual production surface and equipment before committing to a marking method at scale, since reflectivity, curvature, and material finish can significantly affect readability in ways a flat printed proof won't reveal.
Data Matrix and QR code are the two most common 2D matrix symbologies, but they optimize for different things: Data Matrix typically achieves a smaller physical footprint for the same data payload and is the standard choice for direct part marking, while QR code is far more widely recognized by consumer smartphone cameras and offers selectable error correction levels (L/M/Q/H) plus native support for logos and styling. Aztec code, like Data Matrix, needs no separate quiet zone in principle since its finder pattern sits at the symbol's center, and it's often chosen for transport tickets and boarding passes rather than industrial marking. PDF417, a stacked linear format rather than a true matrix code, holds far more data per symbol but requires a larger printed area, making it better suited to IDs and shipping labels than to tiny component marking. For structured supply-chain data specifically, GS1 Data Matrix layers GS1 Application Identifiers on top of the same physical Data Matrix symbol described here.