Skip to content
StylQR home

Data Matrix Code Generator

Create Data Matrix codes that fit lots of data into a tiny square. Enter text, a serial number or a link, and download a print-ready 2D barcode for labels, parts and packaging.

  • Free & unlimited
  • Validated live
  • Print-ready SVG, PDF & PNG
  • Nothing uploaded
1

Enter your data

Checked live against the official rules for this barcode type.

Any text or link, up to about 2,000 characters.

2

Design your barcode

Pick a label template or adjust size, text, colors and style.

Start from a template

One click styles the label. Your data and size stay as they are.

Check your data

Tap to preview

Preview & download

Loading barcode engine…

Format

Resolution

Print labels

A vector PDF filled with your barcode — print on label stock, stickers or plain paper.

Square cells with dashed cut guides; choose 2–6 columns.

Labels per row

What is Data Matrix?

Data Matrix is a 2D barcode made of square modules in a grid, from 10 × 10 up to 144 × 144, plus rectangular sizes from 8 × 18. It is recognised by an L-shaped solid border on two sides and an alternating “clock” pattern on the other two.

The modern version, ECC 200, uses Reed–Solomon error correction, so a code stays readable even if part of it is damaged. The symbol size is chosen automatically to fit your data.

A single symbol holds up to 3,116 digits, 2,335 alphanumeric characters or 1,556 bytes. Very small codes are possible: a short serial number fits in a code a few millimetres across.

Specification

Data Matrix at a glance

Type
2D matrix (ECC 200)
Characters
Full ASCII and binary data, including UTF-8 text
Capacity
Up to 3,116 digits, 2,335 alphanumeric or 1,556 bytes
Sizes
10 × 10 to 144 × 144 modules; rectangular 8 × 18 to 16 × 48
Error correction
Reed–Solomon, built in
Module size
0.5 mm default; down to about 0.25 mm for good printers
Quiet zone
1 module on all sides
Standard
ISO/IEC 16022

How to create a Data Matrix barcode

Four steps from data to a print-ready file.

  1. 1

    Step 1

    Enter your Data Matrix data. Any text or link, up to about 2,000 characters.

  2. 2

    Step 2

    Check the live validation — check digits are added for you and any problem is explained in plain words.

  3. 3

    Step 3

    Pick a label template or adjust bar width, height, text, colours and style. The printed size updates as you go.

  4. 4

    Step 4

    Press Test scan, then download a PNG at up to 1200 DPI, vector SVG or PDF — or print it on label sheets.

Built for people who print barcodes

Details most barcode generators charge for — all free in the studio above.

  • Check digits, fixed for you

    Type 12 digits and the EAN-13 check digit is added. Type a wrong one and you get the correct digit with a one-click fix.

  • Frames & label templates

    Banners, tickets, hang tags, shelf prices, coupons and more — ready-made labels that never cover the bars.

  • Sized in millimetres

    Set the bar width and height and see the finished printed size update live, in mm or inches.

  • Crisp at any DPI

    PNG at 300, 600 or 1200 DPI with every bar a whole number of pixels, plus vector SVG and exact-size PDF.

  • Scanner-safe colours

    Warnings for red bars laser scanners cannot see, low contrast, thin bars and tight quiet zones.

  • GS1 helper

    Insert Application Identifiers like GTIN, expiry, batch and serial with one click — validated by the official rules.

  • Avery label sheets

    Fill Avery 5160, L7160 and 22805 sheets, sticker sheets or a label grid with one click.

  • Save, open & share

    Keep a barcode as a design file, reopen it later, share a link, and undo or redo any change.

Where Data Matrix is used

Real-world applications for this symbology.

  • Electronics

    Serial numbers on circuit boards and components where space is tiny.

  • Direct part marking

    Laser-etched or dot-peened onto metal parts in aerospace and automotive.

  • Healthcare

    Instruments, implants and lab samples with unique identifiers.

  • Postage

    Postal services use Data Matrix for digital stamps and franking.

  • Document management

    Encoding document IDs and metadata on forms and records.

Printing Data Matrix that scans first time

Small details that make the difference between a code people ignore and one they scan.

  • Keep the data short — fewer characters mean bigger modules for the same printed size, which scans more reliably.

  • Choose a rectangular Data Matrix for narrow labels such as cable tags or vials.

  • Use GS1 DataMatrix, not plain Data Matrix, when encoding GTINs, batches or expiry dates for healthcare or retail.

  • Data Matrix needs a camera-based (imaging) scanner; laser scanners cannot read 2D codes.

  • Leave at least one module of blank space around the code.

Data Matrix questions, answered

What is the difference between Data Matrix and QR code?

Both are 2D codes. Data Matrix is more compact for short data and is preferred in industry and healthcare; QR codes are easier for phones to scan from a distance and better for consumer links.

How much data can a Data Matrix hold?

Up to 2,335 alphanumeric characters or 3,116 digits, though a few dozen characters is ideal for small labels.

Can my phone read Data Matrix codes?

Most barcode scanner apps can, including StylQR’s free scanner, but many phone camera apps only read QR codes.

What is ECC 200?

The current version of Data Matrix with Reed–Solomon error correction. All codes made here are ECC 200.

Every other barcode type

Retail, logistics, 2D, healthcare and postal symbologies — validated with the official rules and ready to print.

The barcodes people make most.