Data Matrix code generator

Data Matrix,for tiny labels and parts.

Data Matrix (ECC 200) packs a serial number, SKU or short link into a compact square grid with built-in Reed-Solomon error correction. Made for PCBs, vials, hardware parts and small labels where a QR code takes too much room.

what goes in the matrix?

Pick a starting example and type your value. Everything is built right in your browser.

Live Data Matrix
Need GS1 AI?
What it holds

Compact text, digits pack twice as tight.

ECC 200 encodes digits in pairs and supports full ASCII and UTF-8 text up to a 44×44 grid here.

0 – 9

Digit pairs pack two digits into one codeword, keeping serials very small.

2x dense
A – Z, a – z

Full uppercase, lowercase and punctuation in standard ASCII.

Full ASCII
UTF-8

International characters and symbols are supported via byte shift.

Supported
ECC 200

Reed-Solomon error correction recovers damaged or smudged modules.

Built in
GS1 FNC1

Need (01) GTIN, (10) Batch or (17) Expiry? Use our GS1 Data Matrix generator.

GS1 tool
Size

smaller than QR at short text.

At 10–30 characters, Data Matrix needs fewer modules and less quiet zone than a QR code.

WhatGuide
Smallest grid10×10 modules (up to 6 digits or 3 characters)
Largest grid here44×44 modules (up to 144 codewords)
Quiet zone1 module minimum around all four sides (2 modules drawn here)
Module size (X)0.25 mm to 0.50 mm for laser/thermal labels; 18–20 mm total PDF width here
Error correctionECC 200 Reed-Solomon, automatic per grid size
Before you print

Data Matrix or QR code?

DM
Use Data Matrix for parts, serials and industrial scanners

Electronics, medical devices, hardware and warehouse bins favour Data Matrix because it stays readable at 3–5 mm square and needs only a 1-module quiet zone.

QR
Use QR code for phone cameras and consumer packaging

Every smartphone camera scans QR codes natively. Many phones need a third-party app for plain Data Matrix, so use QR for customer-facing links.

Questions

people also ask.

All answers
What is a Data Matrix code?

A 2D square barcode made of black and white modules with a solid L-shaped finder border on two sides and an alternating clock track on the other two.

What is ECC 200?

ECC 200 is the modern ISO/IEC 16022 Data Matrix standard using Reed-Solomon error correction. Always use ECC 200 for new labels.

Data Matrix vs QR code: what is the difference?

Data Matrix is smaller for short SKUs and serial numbers and only needs a 1-module quiet zone. QR codes are larger but can be scanned directly by any phone camera.

Can I use this for GS1 DataMatrix with (01) GTIN?

This page generates standard Data Matrix without the GS1 FNC1 prefix. For (01) GTIN, (10) Lot and (17) Expiry, use our GS1 Barcode Generator.

How small can I print a Data Matrix code?

On a 300–600 DPI thermal or laser printer, a 14×14 Data Matrix at 0.30 mm per module is only 4.8 mm wide including quiet zone. Always test-scan on your target reader.

Do you store the codes I generate?

No. Every Data Matrix is encoded locally in JavaScript inside your browser.

need GS1 (01) GTIN or (10) Batch?

Use our GS1 DataMatrix tool with FNC1 built in.

Open GS1 Generator

Guides for this task