Skip to content

Data Matrix code

Free Data Matrix code generator

Make a Data Matrix code that fits a lot of data into a tiny square, for parts, electronics and labels. Download SVG or PNG. Free, no sign-up, no watermark.

Type text, a serial number or a link. The code grows in size as you add more data.

What a Data Matrix code is

Data Matrix is a 2D barcode made of square cells in a grid, square or rectangular. You can spot it by the solid L-shaped border on two sides and the dotted pattern on the other two. The L shows a scanner which way up the code is, and the dotted edges set the grid size.

The modern version, ECC 200, uses Reed-Solomon error correction, so it still reads when part of the code is scratched or smudged. A single symbol holds up to 3,116 digits or 2,335 letters and numbers, though most real uses encode a serial number or short ID.

Where Data Matrix codes are used

Because the code can be marked directly onto the item, it stays readable for the life of the part, long after a paper label would have peeled off. That is why engineering and medical device standards often specify it.

How to generate a Data Matrix code

  1. Choose Data Matrix in the generator.
  2. Type your data, such as a part number and serial like PN4471-SN000213.
  3. Watch the preview. More characters mean more rows and columns.
  4. Download SVG if the code will be etched, engraved or scaled; PNG for labels and documents.
  5. Leave a blank margin of at least one cell width around the code, and test it at its final size.

Sizing and marking tips

Data Matrix vs QR code

Both are 2D codes, but they suit different jobs. Data Matrix has no large corner squares, so for short data it is smaller than a QR code and fits on tiny parts. QR codes are better for anything the public will scan, because every phone camera app reads them. Many phones do not read Data Matrix from the camera app, though our scanner does, in the browser.

If you need a GS1 DataMatrix with application identifiers for medicine packs, note that this data matrix generator makes standard Data Matrix. GS1 formatting is not a dedicated option yet.

Related

FAQ

Questions

Is this Data Matrix generator free?

Yes. You can create and download Data Matrix codes as SVG or PNG with no sign-up and no watermark.

How much data fits in a Data Matrix code?

Up to 3,116 digits or 2,335 alphanumeric characters in one symbol. Smaller amounts give a smaller code, which is why it suits tiny parts.

Can phones scan Data Matrix codes?

Many phone camera apps do not. Our online scanner reads Data Matrix from your camera or from an uploaded image.

Can I make a GS1 DataMatrix here?

Not as a dedicated option yet. The generator makes standard Data Matrix without GS1 application identifiers.

Is Data Matrix the same as a QR code?

No. Both are 2D matrix codes, but Data Matrix uses an L-shaped border instead of three corner squares and is more compact for short data.