Home / Data Matrix Generator

Data Matrix Generator

Create Data Matrix codes online for free – compact 2D codes for industry, pharma and small parts.

Open the generator →

Try it now

Data Matrix code

What is a Data Matrix code?

Example of a Data Matrix code barcode
Example rendering of a Data Matrix code, created with Barcode Studio

Data Matrix is a very compact 2D code that stores many characters in just a few millimeters – the standard for industry, electronics and pharma serialization.

Its strong error correction makes it robust against scratches and partial occlusion, which is why it is often laser-etched directly onto parts.

Technical details

Category
2D matrix code
Data & character set
alphanumeric and binary
Capacity
up to ~2,335 alphanumeric characters
Check / error correction
Reed-Solomon error correction (built in)
Norm / standard
ISO/IEC 16022
Size & printing
from a few square millimetres
Good to know
Standard for direct part marking (DPM) and pharma serialization under the EU FMD.

Compared to related codes

CodeCategoryData & character set
Data Matrix code2D matrix codealphanumeric and binary
QR code2D matrix codetext, URLs, digits, binary, WiFi, SEPA/GiroCode
PDF417 code2D stacked code (stacked linear)alphanumeric, numeric and binary
Aztec code2D matrix codealphanumeric and binary

This helps you pick the right code type for your use case faster.

How to create a Data Matrix code

  1. The type “Data Matrix code” is preselected – you can change it anytime in the generator.
  2. Enter your value (example: HELLO-123).
  3. Adjust colors, module size and the quiet zone and check the live preview.
  4. Download the Data Matrix code as PNG, SVG or PDF, or print an A4 label sheet.

Use cases

Tips for clean printing & scanning

Features

FAQ

How do I create a Data Matrix code?
Choose the type, enter your value (e.g. HELLO-123), adjust the design and download the Data Matrix code as PNG, SVG or PDF.
What is a Data Matrix code used for?
Typical use cases are Industrial marking, Pharma and medical devices, Small parts and components.
What is an example value for a Data Matrix code?
A valid example is “HELLO-123”. Just enter your own value and the Data Matrix code is generated instantly in the preview.
Is the Data Matrix Generator free?
Yes. Barcode Studio is completely free and requires no sign-up.
Which download formats are available?
You can export as PNG, SVG or PDF and print directly.
Does it work on mobile?
Yes, Barcode Studio runs in any modern browser on desktop and mobile.

Related codes

Related guides

Trustpilot

Review on Trustpilot ↗