BarcodeSheets

Data Matrix Barcode Generator

Encode any text or data as a compact Data Matrix 2D symbol — free, unlimited, with ECC 200 error correction built in.

Unlimited — no caps SVG & print-res PNG free No account 100% in your browser

What Data Matrix encodes

Data Matrix is a two-dimensional symbology that arranges data into a square or rectangular grid of black-and-white modules rather than a single row of bars. That grid structure is what lets it pack a meaningful amount of text, numbers, or binary data into a physical footprint many times smaller than an equivalent linear barcode — a full serial number or URL can fit in a symbol just a few millimeters across. Enter any text here and this tool renders it as a scan-ready Data Matrix symbol, with the module grid sized automatically to fit whatever you type.

ECC 200 error correction and capacity vs. QR

Every symbol this tool generates uses ECC 200, the Reed-Solomon-based error correction standard every modern Data Matrix reader expects — it lets a scanner recover the full data even when a meaningful portion of the symbol is smudged, torn, or obscured, without needing a perfect scan. On raw capacity, Data Matrix and QR are broadly comparable at their largest sizes (both handle a few thousand characters), but Data Matrix is generally the denser choice at small physical sizes, which is why it's the default for tiny-item marking. QR's advantage is elsewhere: near-universal recognition by phone camera apps, which is why it dominates consumer-facing uses like URLs rather than industrial part marking.

Where Data Matrix is used

Data Matrix's small footprint at high capacity is exactly what a handful of industries need. Pharmaceutical packaging uses it for unit-dose blister packs and, under FDA/EU medical device UDI (Unique Device Identification) rules, on device labels too small for a linear code. Electronics manufacturers etch it directly onto PCBs and components for traceability through assembly. Aerospace and automotive parts get it laser-etched or dot-peened directly into metal — called direct part marking (DPM) — so a part carries a permanent, scannable identity for its entire service life, well past any adhesive label's lifespan.

Sizing and the quiet zone

Data Matrix's quiet zone — the clear margin required around the symbol — is unusually small: just one module wide on each side, versus 10+ times the bar width for a linear barcode like Code 128. That's part of what makes it so space-efficient, but it also means the module size itself matters more: shrink a Data Matrix symbol until individual modules approach your printer or etching process's minimum resolvable dot size, and scan reliability drops off fast. Always test-scan a Data Matrix symbol at its actual intended print or etch size, on the real substrate, before committing to a full production run — especially for direct part marking, where re-doing an already-etched mark generally isn't an option at all.

GS1 Data Matrix

GS1 also standardizes a structured variant, GS1 DataMatrix, which carries the same Application Identifier syntax as GS1-128 — GTIN, batch/lot, expiry, serial — inside a single 2D symbol instead of a linear one. It's the format increasingly required on small pharmaceutical and medical device packaging where a linear GS1-128 label simply won't fit. This generator encodes plain text into a standard Data Matrix symbol rather than parsing GS1 Application Identifier syntax; if you need that structured AI encoding on a linear symbol instead, see our GS1-128 generator at /gs1-128.

Frequently asked questions

What is a Data Matrix code used for?

Marking small items where a linear barcode wouldn't fit: pharmaceutical unit-dose packaging, medical device labels (UDI), electronic component marking, and direct part marking laser-etched or dot-peened onto metal or plastic parts for lifetime traceability in manufacturing.

How much data can a Data Matrix barcode hold?

Up to about 2,335 alphanumeric characters or 3,116 numeric digits in the largest standard symbol size, though real-world use is almost always far shorter — a serial number, a URL, or a GS1 Application Identifier string. Capacity scales with the module grid size, from as small as 10×10 modules up to 144×144.

Is Data Matrix the same as a QR code?

No — both are 2D matrix symbologies with error correction, but Data Matrix packs data into a smaller physical footprint at equivalent capacity, which is why it dominates tiny-item marking, while QR is far more widely recognized by phone cameras and consumer scanning apps, which is why it dominates consumer-facing use like URLs and payments.

What is ECC 200?

The error-correction scheme every modern Data Matrix symbol uses (Reed-Solomon based, replacing older ECC 000-140 convolutional schemes). It lets a scanner reconstruct the full data even when part of the symbol is damaged, dirty, or poorly printed — this generator always produces ECC 200 symbols.

Can Data Matrix be laser-etched onto metal parts?

Yes — this is one of its primary industrial uses, called direct part marking (DPM), common in aerospace, automotive, and electronics manufacturing. Etched or dot-peened Data Matrix symbols survive machining, heat, and handling in ways a printed adhesive label can't, giving a part a permanent, scannable identity for its whole service life.