Free Data Matrix Generator

Data Matrix packs data into a tiny square — the 2D standard for electronics, instruments and pharma marking.

Compact 2D code for small items.

Enter data to preview your barcode

Data Matrix at a glance

How to use this Data Matrix generator

Type or paste your data into the field above. The preview updates as you type, and anything that breaks the Data Matrix rules — a wrong length, an unsupported character or a bad check digit — is explained before you download, so you never print a code that will not scan.

Download PNG for documents and web pages, SVG when a designer or print shop needs a sharp vector file, or PDF for an exact-size print. Keep the white margin around the bars (the quiet zone) clear, print at 100% scale, and test-scan one label before a full run.

Share this tool

Data Matrix data is validated before rendering. Generating an image encodes a number you already own — it does not license or register identifiers with GS1 or any ISBN agency.