Data Matrix Generator

Create Data Matrix 2D codes used on small parts, labels and pharmaceutical packs, and download them as a PNG or SVG file.

Scan check passed: decoding the image returns your exact text.

About Data Matrix Generator

The Data Matrix Generator creates compact square 2D codes, the kind used on electronic parts, tools, labels and pharmaceutical packs where space is tight.

Settings

Choose the scale in pixels per module, the quiet zone and the colours, and download PNG or SVG.

Standard ECC 200

The version in use today, with built-in error correction.

Built-in scan check

The tool reads its own picture back and confirms it decodes to what you entered.

Match your printer

Laser marking and fine printers can make tiny codes; office printers need bigger modules.

Test first

Scan a printed sample with the scanner you will use.

Private

Everything runs in your browser. Nothing is uploaded.

How to use Data Matrix Generator

  1. Enter the content to encode.
  2. Set the scale, quiet zone and colours.
  3. Check the preview.
  4. Download PNG or SVG.

Help & FAQ

What is a Data Matrix code used for?

Marking small items and packaging with a lot of information in a very small area, common in electronics, healthcare and manufacturing.

How is it different from a QR code?

Data Matrix is often smaller for the same data and uses a different finder pattern. Phones read QR codes natively, while Data Matrix usually needs a scanner or an app.

What scale should we use?

Use a scale that gives each module at least a few pixels, and print at a size your scanner can read.

How much data can it hold?

Quite a lot for its size, but short data gives a smaller, easier code.

How much text can a Data Matrix code hold?

Up to 3,116 digits, 2,335 letters and digits or 1,556 bytes in the largest 144 x 144 symbol. Small symbols hold much less, and shorter content gives an easier code to scan.

What does 'Scan check passed' mean?

The page decoded the image it generated and the result matched your input exactly. It is a quick check, so test the printed code with your scanner as well.

What is the quiet zone and why does it matter?

It is the blank margin around the symbol, measured in modules. Scanners need it to find the edges, and removing it often makes the code unreadable.

Can we print a very small Data Matrix code?

Yes, but module size is limited by your printing or marking method. Test at the final size with your scanner before you print many.

Should we use PNG or SVG?

Use SVG for printing and resizing because it stays sharp at any size. Use PNG for screens and documents that do not support SVG.

Can phones scan Data Matrix codes?

Support varies by phone and by camera or scanner app, and many scanner apps can read them. If ordinary customers will scan the code, test it on common phones or choose a QR code.

More in QR & Barcode

See all 12 in QR & Barcode