A Data Matrix code is a two-dimensional matrix barcode consisting of black and white square modules arranged in either a square or rectangular pattern. The information to be encoded can be text or raw data. Usual data size is from a few bytes up to 2 kilobytes. The length of the encoded data depends on the symbol dimension used. Error correction codes are added to increase symbol strength: even if they are partially damaged, they can still be read. A Data Matrix symbol can store up to 2,335 alphanumeric characters.


Code Type Matrix
Versions ECC 200 (ECC 000 - 140 are obsolete)
Encodable Character Set All 128 ASCII characters
Extended ASCII characters
8-bit byte data
Symbol Height 10 - 144 modules
Symbol Width 10 - 144 modules
Omnidirectional Decoding Yes
Error Correction Reed-Solomon error correction
Maximum Data Characters 2,335 text
3,116 digits
1,556 bytes

ENCODING (Section in progress)

Symbol Structure

Character Encodation

Finder Patterns

Quiet Zones

Symbol Dimensions

Error Detection and Correction

Transmitted Data

SAMPLE IMAGES (click on image to download full decodable bmp)

Data Matrix Production Bar Code
621 KB (bmp)
Data Matrix US Postal Bar Code
249 KB (bmp)
Rectangular Data Matrix Bar Code
131 KB (bmp)
Negative Data Matrix Bar Code
361 KB (bmp)
Data Matrix DPM Bar Code
301 KB (bmp)
Large Data Matrix Bar Code
1.1 MB (bmp)


  • Manufacturing part tracking
  • Lotteries
  • Patient Bracelets
  • ID Cards
  • Registrations
  • Postal Tracking
  • Asset Tracking
  • Medication

    ISO/IEC 16022:2006 - Data Matrix bar code symbology specification
    ANSI / AIM BC11 ISS - Data Matrix specification