Skip to content
QR Code Toolbox

Free forever. Unlocks every style and format.

Data Matrix generator

Make Data Matrix codes for serial numbers, parts and small labels. We pick the smallest size that fits, add error correction and test that it scans.

Data Matrix code

Tiny 2D codes for parts, electronics and healthcare

Holds about 1,500 characters of text, or 3,000 digits. Keep it short for a smaller code.

Style

Shape
Transparent background For designs and packaging artwork. Print it on a light surface.

How to make a Data Matrix code

  1. 1

    Enter the content

    A serial number, part number, batch code or link. Shorter content makes a smaller code.

  2. 2

    Square or rectangle

    Square holds the most. Rectangle fits narrow spaces like cable labels and edges.

  3. 3

    Check the grid size

    We pick the smallest symbol that fits, from 10 × 10 cells up to 144 × 144.

  4. 4

    Download

    PNG for labels, SVG, PDF or EPS for engraving files and print shops.

What is a Data Matrix code?

A Data Matrix is a 2D code made of square cells. You can spot one by its border: two sides are solid lines in an L shape, and the other two alternate light and dark. The solid L tells the scanner where the code is and which way up it is.

The current version, ECC 200, adds Reed-Solomon error correction, so a code that’s scratched, smudged or partly worn off still reads. Codes come in squares from 10 × 10 to 144 × 144 cells, and rectangles from 8 × 18 to 16 × 48.

Where Data Matrix is used

  • Electronics: circuit boards and components, where a code has to fit in a few millimetres.
  • Automotive and aerospace parts: often laser-etched or dot-peened straight into metal, so they last the life of the part.
  • Medicines and medical devices: GS1 DataMatrix carries product numbers, batch, expiry and serial numbers on drug packs in the EU and US.
  • Labels and documents: anywhere you need a lot of data in a small space.

Data Matrix vs QR code

Data MatrixQR code
Smallest size10 × 10 cells21 × 21 cells
Best forShort data in tiny spaces, industryLinks and anything the public scans
Phone camera appsUsually need a scanner appBuilt into every phone camera
Most digits3,1167,089

For anything customers will scan with a phone, like packaging, menus or flyers, use a QR code. For parts, small labels and internal tracking, Data Matrix is smaller and is the industry standard.

Printing and marking tips

  • Leave a margin. The code needs at least one blank cell all around. Ours includes two.
  • Cell size: 0.25-0.5 mm works for printed labels read with a 2D scanner. Bigger cells read from further away.
  • High contrast. Dark cells on a light background. For laser marking, use the SVG or EPS so every cell edge is exact.
  • Test it with your scanner, or upload a photo to our online scanner, which reads Data Matrix too.

Questions

Yes. Making and downloading barcodes is free, including for commercial use. PNG downloads need no account. SVG, PDF and EPS files need a free account. There’s no watermark, ever.

The current version of Data Matrix, with Reed-Solomon error correction. Older versions (ECC 000 to 140) are obsolete. Every code we make is ECC 200.

Up to 3,116 digits or about 1,500 characters of text here. The more you put in, the more cells the code needs, so keep it short where you can.

Most barcode scanner apps can, and so can our online scanner. Built-in camera apps are made for QR codes, so for anything the public will scan, use a QR code.

Square, unless you’re short on height. Rectangles only hold up to 49 codewords (about 49 characters, or 98 digits), but they fit on narrow labels and edges.

Not yet. GS1 DataMatrix adds a special start character and GS1 data fields (product number, batch, expiry, serial) for medicines and medical devices. It’s coming.
QR Code Toolbox

Every QR tool you need. Free, fast, and your codes never die.

Create QR codes

  • URL QR code
  • Text QR code
  • WiFi QR code
  • vCard QR code
  • Email QR code
  • SMS QR code
  • Phone call QR code
  • WhatsApp QR code
  • Location QR code
  • Event QR code
  • UPI QR code
  • SEPA QR code
  • PayPal QR code
  • Bitcoin QR code
  • Google review QR code
  • Social media QR code
  • App Store QR code
  • PDF QR code
  • Menu QR code

Design

  • QR code with logo
  • Custom color QR code
  • Transparent QR code
  • QR code frames
  • AI art QR code

Scan & check

  • QR code scanner
  • QR safety checker
  • QR code tester
  • Dead QR code rescue
  • Extract QR from PDF

Bulk & print

  • Bulk QR code generator
  • QR code size calculator
  • QR label sheets
  • Free QR code API

Barcodes & GS1

© 2026 QR Code Toolbox Pricing Privacy Terms support@qrcodetoolbox.com

QR Code is a registered trademark of DENSO WAVE INCORPORATED.