Download Download Download Buy Now
Symbology Guide 2D / Modern

Data Matrix

ECC 200, ISO/IEC 16022

Data Matrix is a 2D matrix barcode that encodes alphanumeric data in a compact square or rectangle. It scans omnidirectionally and can fit a remarkable amount of information into a small physical space – up to 2,335 alphanumeric characters in a single symbol. The current version (ECC 200) uses Reed-Solomon error correction, which means even a substantially damaged or partially obscured Data Matrix code can still be read accurately. It's the modern workhorse of industrial marking, healthcare, and small-package identification.

NEW IN 26 — Data Matrix is new in Barcode Producer 26.

Applications

  • Industrial part marking — laser-etched directly onto components
  • Healthcare unit identification (FDA UDI compliance)
  • Pharmaceutical packaging (GS1 DataMatrix for regulated drugs)
  • Electronics manufacturing — PCBs and components
  • Small-format product labeling where a UPC or QR code won't fit
  • Document tracking and forms processing

Also Known As

  • ECC 200 (the current revision)
  • ISO/IEC 16022 (the international standard)
  • GS1 DataMatrix (the GS1-compliant variant used in retail and healthcare)

Frequently Asked Questions

When should I use Data Matrix instead of QR Code?

Both are 2D barcodes that encode similar data, but they're optimized for different use cases. Data Matrix is more efficient for small physical sizes and short-to-medium amounts of data – it's the default choice when you're marking a tiny part, an electronic component, or a small-label medication package. QR Code is built for camera-phone scanning and is more recognizable to the general public, so it's the default for consumer-facing applications like marketing URLs and contact info.

If you're labeling industrial or healthcare products that get scanned by handheld or fixed industrial scanners, Data Matrix is almost always the right answer. If your end user is going to point a smartphone at the code, QR Code is more familiar and reads more reliably with consumer apps.

How much data can a Data Matrix encode?

Up to 2,335 alphanumeric characters or 3,116 numeric digits in a single symbol, depending on the symbol size. Most practical uses fit a serial number, lot code, or short identifier – under a hundred characters. Going much larger than that is technically possible but reduces the size of each module, requiring better print quality and higher-resolution scanning.

What's the difference between Data Matrix and GS1 DataMatrix?

GS1 DataMatrix is Data Matrix encoded with GS1 Application Identifiers – a standardized way of structuring the data so a scanner downstream can reliably identify "this part of the encoded string is the GTIN, this part is the lot number, this part is the expiration date." If you're marking a product subject to GS1 regulations (retail, healthcare in many jurisdictions), use GS1 DataMatrix. Otherwise, plain Data Matrix is fine.

Barcode Producer generates both. Choose GS1 DataMatrix when prompted if your workflow requires it.

Can I read Data Matrix codes with a phone?

Yes. Modern iOS and Android cameras both recognize Data Matrix codes natively. Older consumer scanning apps are sometimes hit or miss – Apple's built-in Camera app reads Data Matrix reliably as of iOS 17.

For industrial workflows you should still use a dedicated 2D imager (handheld or fixed). Phone cameras work for spot-checking and verification, not high-volume scanning.

What size should my Data Matrix code be?

The minimum module size depends on print quality and scanning distance. A safe starting point for laser-printed labels is a 10-mil module (1 mil = 0.001 inch). For thermal-transfer or industrial direct-part-marking workflows, even smaller is possible. Barcode Producer's Factor sizing system handles this for you – set the factor, get a scannable code.

Barcode Producer is for your Mac or PC. Enter your email and we'll send you a download link to use when you're back at your desk.

Send link
Account
Download Download Download Buy Now