Data Matrix Barcode: Size, Structure and Check Digit

Barcodes · 2D and stacked codes

Data Matrix: 2D matrix. Data: Up to 3,116 digits / 2,335 alphanumeric / 1,556 bytes. Error checking: Reed–Solomon (ECC 200). Standard: ISO/IEC 16022. Typical use: Pharmaceutical serialization, electronics part marking, direct part marking (DPM).

Type
2D matrix

Drawing

clock track (alternating) on top and rightsolid 'L' finder on left and bottom
Schematic of the symbol structure, not a scannable code.

Data Matrix specifications

Type2D matrix
Character setASCII, bytes; GS1 Application Identifiers (GS1 DataMatrix)
Data lengthUp to 3,116 digits / 2,335 alphanumeric / 1,556 bytes
Check digit / error correctionReed–Solomon (ECC 200)
StandardISO/IEC 16022
Quiet zone1 module each side
Symbol size10 × 10 to 144 × 144 modules (also rectangular)
Typical usePharmaceutical serialization, electronics part marking, direct part marking (DPM)

A Data Matrix is recognized by its 'L' finder (two solid edges) and the alternating clock track on the opposite two edges. It is the standard for small items and direct part marking: an ECC 200 code holding a 20-character serial number fits in a few millimetres. GS1 DataMatrix (with FNC1) is used for pharmaceutical serialization under the EU Falsified Medicines Directive and the US DSCSA.

All barcode types

Compare all 17 barcode types →

Sources

  1. GS1 General Specifications (Release 24.0): §5 symbol specifications, symbol specification tables
  2. GS1: How to calculate a check digit manually
  3. GS1 Sweden: Barcode size guide (X-dimension and height tables)
  4. GS1 UK: How big should an ITF-14 barcode be?
  5. ISO/IEC 15420 (EAN/UPC), 15417 (Code 128), 16388 (Code 39), 16390 (ITF), 24724 (GS1 DataBar)
  6. ISO/IEC 18004 (QR Code), 16022 (Data Matrix), 15438 (PDF417), 24778 (Aztec Code)
  7. JsBarcode (MIT): Code 128 / Code 39 / Codabar pattern tables used to cross-check the drawings

Values last checked against these sources on November 15, 2026. · How we check data

Reference values for planning and identification. Confirm critical dimensions with the manufacturer's drawing or the current edition of the standard before production.