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
Data Matrix specifications
| Type | 2D matrix |
|---|---|
| Character set | ASCII, bytes; GS1 Application Identifiers (GS1 DataMatrix) |
| Data length | Up to 3,116 digits / 2,335 alphanumeric / 1,556 bytes |
| Check digit / error correction | Reed–Solomon (ECC 200) |
| Standard | ISO/IEC 16022 |
| Quiet zone | 1 module each side |
| Symbol size | 10 × 10 to 144 × 144 modules (also rectangular) |
| Typical use | Pharmaceutical 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
Sources
- GS1 General Specifications (Release 24.0): §5 symbol specifications, symbol specification tables
- GS1: How to calculate a check digit manually
- GS1 Sweden: Barcode size guide (X-dimension and height tables)
- GS1 UK: How big should an ITF-14 barcode be?
- ISO/IEC 15420 (EAN/UPC), 15417 (Code 128), 16388 (Code 39), 16390 (ITF), 24724 (GS1 DataBar)
- ISO/IEC 18004 (QR Code), 16022 (Data Matrix), 15438 (PDF417), 24778 (Aztec Code)
- 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.