Data Matrix Code Generator

Create a Data Matrix code in your browser for parts marking, electronics, labels and healthcare. Text or numbers, PNG, SVG or JPG, or bulk ZIP. No upload.

Runs in your browser. Your files are never uploaded. How it works

Make many barcodes at once

One value per line (up to 1,000). Each becomes a PNG file in a ZIP, named after its value.

This page opens with Barcode type set to Data Matrix, the small square 2D code used on electronic components, medicine and medical device packaging, parts labels and documents. Type text or a number, adjust the size and colours, and download PNG, SVG or JPG. Everything runs in your browser and nothing is uploaded.

Make a Data Matrix code

  1. Type the content under Data: a part number, serial number, batch code or short text.
  2. Pick a Size from 1× to 8×. Larger sizes give bigger cells for printing.
  3. Set Bars and Background colours or a Transparent background, then download.

Where Data Matrix is used

Field Typical content
Electronics and parts Part and serial numbers on very small labels
Healthcare Product codes, batch numbers and expiry dates on packs
Manufacturing Tracking parts through production
Documents and mail Reference numbers on letters and forms

Some industries use a specific data layout inside the code (for example GS1 Data Matrix for healthcare products). Check the format your customer or regulator asks for and type the content exactly as specified.

Many codes at once

Paste up to 1,000 values, one per line, into Make many barcodes at once and download a ZIP with one PNG per value.

Tips

  • Use SVG for print so the cells stay square and sharp.
  • Keep a quiet margin around the code and use dark cells on a light background.
  • Test with QR Code Scanner before printing, or use QR Code Generator if people will scan with a phone camera.

Frequently asked questions

What is a Data Matrix code?

A square 2D barcode made of small black and white cells. It stores text and numbers in a very small area, which is why it is printed or etched on electronic parts, medicine packs and small labels.

Data Matrix or QR code?

Both store text. Data Matrix is more compact for short data and is the usual choice in industry and healthcare. QR codes are what phones scan for links and payments. For a link people will scan with a phone, use QR Code Generator.

Can a phone scan a Data Matrix code?

Many scanner apps can, including QR Code Scanner on this site, which reads Data Matrix from an image or the camera. The built-in camera app on some phones only reads QR codes.

Is my data uploaded?

No. The code is made in your browser, on your device.

More ways to use Barcode Generator

Related tools