1001Ferramentas
🔲Generators

Data Matrix Generator

Create compact 2D Data Matrix (ECC 200) codes for industrial parts and traceability. Supports text and numbers with PNG/SVG download.

Data Matrix — the industrial 2D barcode

Data Matrix is a 2D matrix barcode standardised as ISO/IEC 16022. It was invented in 1989 by International Data Matrix Inc, later acquired by Siemens and then RVSI. A Data Matrix symbol can store up to 2,335 ASCII characters or 1,556 binary bytes in a square or rectangular grid of black-and-white modules.

Anatomy: finder pattern, timing and ECC

Every Data Matrix has a distinctive L-shaped finder pattern (solid black left edge + solid bottom edge) and an alternating timing pattern (right edge + top edge). Together they let the decoder lock onto the grid even at extreme angles. Symbols are surrounded by a quiet zone of one module width. Data is protected by Reed–Solomon error correction with about 30% redundancy, so a Data Matrix can be read even when partially scratched, dirty or printed at low contrast. Symbol sizes range from 10x10 (about 8 numeric digits) up to 144x144 (1,558 alphanumeric characters), plus rectangular variants like 12x36 and 8x32.

Data Matrix vs QR code

Both are 2D matrix codes with Reed–Solomon ECC, but their sweet spots differ:

  • Data Matrix wins for short data on tiny surfaces — works at ~10 mm or less, ideal for chips and circuit boards.
  • QR code wins for longer URLs and consumer-facing uses — bigger but ubiquitous and well-supported on every smartphone camera.
  • Adoption — QR dominates consumer marketing; Data Matrix dominates industry and healthcare.

Pharmaceutical and industrial use

Data Matrix is the de facto pharma 2D barcode. The EU Falsified Medicines Directive (EU FMD, in force since 2019) mandates GS1 DataMatrix on every prescription drug pack, encoding GTIN, batch, expiry and unique serial. Brazil's ANVISA SNCM (Sistema Nacional de Controle de Medicamentos) follows a similar scheme. The FDA UDI (Unique Device Identification) program for medical devices also relies heavily on Data Matrix. In manufacturing, Direct Part Marking (DPM) uses laser etching or dot peening to mark a Data Matrix directly on chips, PCBs, aircraft parts and surgical instruments — no label needed, fully durable.

Reading Data Matrix on a phone

Any modern smartphone camera can read Data Matrix with the right library: ZXing (open source, Java/Kotlin), ZBar (C, very fast), Dynamsoft Barcode Reader (commercial, optimised for DPM), Apple Vision Framework and Google ML Kit. Most pharmacist apps in EU/Brazil scan GS1 DataMatrix to validate authenticity.

FAQ

Data Matrix vs QR — which is smaller? For short payloads (under 50 characters), Data Matrix is typically smaller and more reliable at tiny print sizes. QR pulls ahead for very long URLs or multi-language text.

Is Data Matrix mandatory in pharma? Yes in the EU (FMD), Brazil (SNCM), Turkey, South Korea, India and growing list of countries — all under the GS1 DataMatrix variant with structured AIs.

Can smartphones really read it? Yes. Native scanner apps on iOS and Android detect Data Matrix automatically; the libraries above work on every camera made in the last decade.

What is Direct Part Marking? Laser-etched or dot-peened Data Matrix codes burned directly onto a physical part. They survive sandblasting, paint, heat and decades of wear — used in aerospace and automotive supply chains.

Related Tools