Skip to content

Free Data Matrix Code Generator

Create a square ECC 200 Data Matrix from plain text or a URL. It is the compact 2D code used to mark electronic parts, pharmaceutical packs and laser-etched components. Preview it live and download a PNG, SVG or vector PDF, all generated locally in your browser.

Any text. Data Matrix stores a lot of data in a small square.

Valid

Customize
#000000
#ffffff

Generating…

Your data stays on your device.

How does it work?

  1. 1Type or paste the text or URL to encode.
  2. 2Check the live preview; choose the symbol size and colours.
  3. 3Keep the quiet margin around the symbol and make sure the contrast is high.
  4. 4Download the code as PNG, SVG or a vector PDF.

What is Data Matrix Generator?

Data Matrix is a two-dimensional matrix code made of square modules. It is recognised by its solid L-shaped border on the left and bottom and an alternating dotted pattern on the top and right. This tool generates the ECC 200 version, the modern standard (ISO/IEC 16022), with Reed-Solomon error correction and square symbols from 10 × 10 up to 144 × 144 modules.

A single symbol can hold roughly 2,335 alphanumeric characters or 3,116 digits, but its real strength is the opposite: very small symbols. A short serial number fits in a code only a few millimetres wide, which is why Data Matrix is used for marking electronic components, medical devices, pharmaceutical packs and parts that are laser-etched or dot-peened.

Scanning is done by industrial imagers and by dedicated scanner apps. Most default phone camera apps do not read Data Matrix the way they read QR codes, so consider your audience before choosing it for customer-facing use.

When should you use it?

  • You need to mark a very small part, PCB or component where a QR code would not fit.
  • A supplier or customer specification asks for a Data Matrix ECC 200 symbol.
  • You are preparing serial numbers or batch identifiers for internal traceability.
  • You want to test a Data Matrix reader or a print and marking process with sample data.
  • You need a dense code for a label where space is limited and readers are dedicated scanners.

Data Matrix vs QR Code

Both are square 2D symbols that are free to use, but they suit different jobs. Here is how they compare on the points that matter when you choose.

Capacity: a QR Code holds more, up to about 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes. Data Matrix ECC 200 tops out at about 3,116 digits, 2,335 alphanumeric characters or 1,556 bytes. For anything beyond a few hundred characters QR is the more practical choice.

Size and density: Data Matrix is smaller for short data. A numeric string of about ten digits fits in a symbol of roughly 12 × 12 modules, whereas the smallest QR Code is 21 × 21 modules. That is why Data Matrix is chosen for tiny parts and direct marking.

Quiet zone: Data Matrix needs only a margin of about one module around the symbol, while QR Code specifies four modules. Data Matrix therefore saves surface on crowded labels, but keeping a clean margin still helps every scanner.

Error correction: QR Code lets you choose a level (L, M, Q or H, roughly 7 % to 30 % recovery). Data Matrix ECC 200 uses Reed-Solomon coding with a level fixed by the symbol size and no user-selectable option, and it copes well with damage and rough marking.

Typical uses: QR Code is built for marketing, payments, Wi-Fi, tickets and links. Data Matrix is built for industry, such as electronics, healthcare, aerospace and traceability.

Phone scanning: QR Codes are read natively by the camera app on current iOS and Android phones. Data Matrix often needs a dedicated scanner app, so for the general public QR is the safer choice.

Privacy

This tool runs in your browser. What you type, paste or open is processed on your device by JavaScript and is not sent to our servers, stored or shared. Your data stays on your device.

The text is encoded to a Data Matrix locally with the bwip-js library in your browser; it is not uploaded or stored. The code contains only what you type.

Frequently Asked Questions

How much data can a Data Matrix hold?

Up to about 3,116 digits, 2,335 alphanumeric characters or 1,556 bytes in the largest 144 × 144 symbol. The more data you encode, the larger and denser the symbol becomes, so keep the content short when the space is limited.

Can I scan a Data Matrix with my phone?

Sometimes. Many default camera apps only read QR codes, so you may need a dedicated scanner app. The barcode scanner page on this site reads Data Matrix from your camera or from an image.

What is the difference between Data Matrix and GS1 DataMatrix?

GS1 DataMatrix is the same symbol carrying structured GS1 data (Application Identifiers) with a special FNC1 first character, used for healthcare and traceability. A plain Data Matrix carries free text. There is a separate generator for the GS1 flavour.

Why does my Data Matrix look grainy when printed?

Modules that are too small for your printer blur together. Export SVG or PDF, print at 100 % / actual size, and enlarge the code until each module is several printer dots wide. Always test-scan a printed sample.