2D Matrix Codes · 2D Matrix

Data Matrix Barcode Generator

Data Matrix is the 2D code of choice when space is at a premium. It stays readable at just a few millimetres across, which is why it marks everything from microchips and surgical instruments to pharmaceutical packaging.

Generate a Data Matrix barcode

Free · No watermark · In-browser

Controls

Appearance

Bar color
Background

Advanced

Rotation
Data Matrix2d
live preview

About Data Matrix

A high-density 2D code that stays readable at tiny sizes — ideal for electronics and medical devices.

Full Data Matrix guide
About Data Matrix

How Data Matrix works

A Data Matrix uses an L-shaped solid finder pattern along two edges and a timing pattern of alternating modules on the other two. This lets readers locate the code at any rotation and at very small sizes.

It offers excellent data density and Reed–Solomon error correction, surviving the laser-etching, dot-peening and inkjet processes used to mark metal and plastic parts directly.

In healthcare, GS1 DataMatrix carries the GTIN, batch, expiry and serial number required for pharmaceutical traceability regulations worldwide.

Where Data Matrix is used

  • Electronics and component marking
  • Medical device and surgical tool ID
  • Pharmaceutical traceability (GS1)
  • Direct part marking (DPM)
Data Matrix FAQ

Data Matrix questions answered

What is a Data Matrix code?

Data Matrix is a high-density 2D barcode that remains readable at very small sizes, ideal for marking electronics, medical devices and pharmaceuticals.

How small can a Data Matrix be?

It can be read at just a few millimetres across, far smaller than a practical QR code, thanks to its efficient finder pattern.

What is GS1 DataMatrix used for?

It carries GTIN, batch, expiry and serial data for pharmaceutical and medical-device traceability required by healthcare regulations.

Data Matrix vs QR Code — which should I use?

Use Data Matrix for tiny, industrial or regulated part marking; use QR for consumer-facing links and larger labels read by phones.

Need many Data Matrix codes?

Batch-generate hundreds from a CSV, or place Data Matrix on a full printable label with text and logos.