Free Data Matrix barcode generator for small parts

This free Data Matrix generator puts a serial number on a label small enough for a circuit board, a vial or a tool. Type the value, click Generate, and mylabelmaker draws the 2D square at your label size. Data Matrix packs more into a small square than a QR code of the same size. No signup.

Data Matrix

Use Data Matrix on small parts and tiny tags. Use a QR code when a phone should open a link.

How it works

A tiny label on a board, read by a 2D scanner

Data Matrix fits a serial into a square smaller than a stamp. Keep each module about 3 dots at 203 dpi and leave a clear margin around it.

1A tiny part

A serial number on something the size of a fingernail

Picture a repair bench with a tray of small circuit boards. Each one needs its serial number on it, and the free space on each board is smaller than a stamp.

A regular barcode won't fit there. A QR code that small gets hard to read. A Data Matrix is made for this job. It's a dense little square that a 2D scanner reads in a blink.

In mylabelmaker you type the serial, put it on a 1.25 x 0.75 inch label, and print a test. Then you scan it with the reader on the bench before you label the whole tray.

2Make it

How to make a Data Matrix code

One box and one button. Here's the whole thing:

The first time you draw a Data Matrix, the page may load a small script. If the square doesn't appear, click Generate again once it's loaded.

  1. Open https://app.mylabelmaker.com with a 1.25 x 0.75 label, or type the value above and click Generate. No signup.
  2. Type the value your part spec asks for: a serial, a lot number or a short code.
  3. Add the serial in plain text next to the square, so a person can still type it.
  4. Choose This computer and click Print.
  5. Scan the sample with the 2D reader you actually use. A customer's phone is the wrong test for a part label.

3Data Matrix or QR

Data Matrix or QR code?

Both are 2D squares. They do different jobs.

For a link people open with a phone, use the QR code generator instead.

Data MatrixQR code
Tiny labels on parts, boards, vials, toolsStickers people scan with a phone
Read by a 2D scanner on the line or in the labOpens a page, a menu or a WiFi network
Denser in a small squareNeeds about 1 inch to scan well

4Size it right

How small a Data Matrix can be

Each tiny square in the code is a module. On a thermal printer, the module size is what decides if it scans.

  • At 203 dpi: keep each module at least 2 dots. 3 dots, about 0.015 inch, is safer when the label has room.
  • Quiet zone: leave a clear margin around the square, about one module. A border that touches the square will fail.
  • Label size: a 1.25 x 0.75 label is 254 by 152 dots at 203 dpi. That fits a short serial and its quiet zone. A long record needs a bigger label.
  • Contrast: print dark squares on a light label.
  • Check digit: you don't type one. Error correction is built into the symbol.

5GS1 and parts

GS1 DataMatrix and part marking

This form has one box. It encodes the text you type. It doesn't build a GS1 application identifier string for you. If your customer or your spec gives you an exact string to encode, paste that string, and test it with their scanner.

Marking straight onto metal is a different process. This tool prints a label. For a whole tray of parts, put one serial per row in a spreadsheet, or print a run of numbered labels. The barcode label maker has more on label layout.

Data Matrix generator questions

What is a Data Matrix generator for?

For small labels on parts, boards, vials and tools. It makes a dense 2D square that holds a serial or a short code in very little space.

Will a phone scan Data Matrix?

Some phone cameras do. The usual reader is a shop-floor or lab scanner set up for Data Matrix. For a customer link, use a QR code.

How small can the square be?

Keep each module at least 2 dots at 203 dpi, and 3 dots when you can. A 1.25 x 0.75 label is a practical start for a short serial.

Is Data Matrix the same as QR?

No. Both are 2D. Data Matrix is denser on a tiny part. QR is what you want when a phone should open a page.

Do I need a check digit?

Not as a separate digit you type. Error correction is inside the symbol. Type the serial or code the spec gave you.