In this article

Data Matrix Barcodes: Everything You Need to Know in 2024

3.3 minutes

In this article we will explore what data matrix barcodes are, their structure and benefits. We will also look at some real-world examples of data matrix barcodes in the world today. Read on to learn more.

data matrix barcode

What is a Data Matrix Barcode?

A Data Matrix barcode is a two-dimensional matrix barcode composed of black squares on a white background, capable of encoding various types of data, including text and numbers. They are commonly used in industries like manufacturing and healthcare for efficient data encoding and retrieval, requiring specialized barcode readers for decoding.

Example: A Data Matrix barcode on a medical equipment box 

Data Encoded in Data Matrix Barcode:

  • Serial Number: 123456789
  • Manufacturing Date: 20231001 (October 1, 2023)
  • Supplier Code: SUP345

In this example, the Data Matrix barcode encodes the serial number "123456789," manufacturing date "20231001," and supplier code "SUP345." When scanned by a specialized barcode reader, these numbers can be quickly retrieved, allowing manufacturers and healthcare professionals to efficiently track the product's origin and manage inventory.

datamatrix barcode

Structure of Data Matrix Barcodes

The structure of a Data Matrix barcode consists of black squares arranged on a white background in a square or rectangular pattern. The arrangement of these black and white squares encodes the data. Here are the key components of a Data Matrix barcode:

Finder Pattern: Data Matrix barcodes typically start with a finder pattern, a distinctive L-shaped pattern at the corners, which helps the scanner locate and orient the barcode.

Quiet Zone: A clear area surrounding the barcode that separates it from any text or graphics. This zone ensures that no other visual elements interfere with the barcode scanning process.

Data Region: The central part of the barcode contains the encoded data. It consists of black and white modules (squares) arranged in a grid pattern. The data is encoded both horizontally and vertically, allowing for high data density.

Alignment Pattern: In larger Data Matrix barcodes, alignment patterns may be included to assist in the accurate reading of the barcode. These patterns help scanners adjust for distortions that might occur during printing or marking processes.

Format and Version Information: In some cases, Data Matrix barcodes include format and version information, providing details about the encoding method and size of the barcode.

Error Correction Codewords: Data Matrix barcodes often include error correction codewords, allowing the barcode to remain readable even if parts of it are damaged or obscured. The level of error correction determines how much damage the barcode can sustain while still being decoded correctly.

datamatrix barcodes

Key Specifications of Data Matrix Barcodes

Data Matrix barcodes have specific specifications that determine their size, data capacity, error correction capabilities, and more. Here are some key specifications:


Data Matrix barcodes can range in size from a small square to a larger rectangular shape. The size can vary based on the amount of data to be encoded and the specific application requirements. Here are some approximate size examples for Data Matrix barcodes along with the number of alphanumeric characters they can typically store:

Small Size Data Matrix:

  • Dimensions: 10mm x 10mm
  • Capacity: Approximately 20 alphanumeric characters

Medium Size Data Matrix:

  • Dimensions: 20mm x 20mm
  • Capacity: Approximately 50 alphanumeric characters

Large Size Data Matrix:

  • Dimensions: 40mm x 40mm
  • Capacity: Approximately 200 alphanumeric characters

Very Large Size Data Matrix:

  • Dimensions: 100mm x 100mm
  • Capacity: Approximately 1,500 alphanumeric characters

Data Capacity: 

The amount of data a Data Matrix barcode can store depends on its size and the version of the code used. Data capacity is expressed in terms of the number of alphanumeric characters or numeric digits that can be encoded. Smaller versions may store fewer characters, while larger versions can store more. Here are specific examples of data capacities for different versions of Data Matrix barcodes:

Data Matrix Version 10x10:

  • Alphanumeric: Approximately 3 characters
  • Numeric: Approximately 6 digits

Data Matrix Version 22x22:

  • Alphanumeric: Approximately 14 characters
  • Numeric: Approximately 28 digits

Data Matrix Version 32x32:

  • Alphanumeric: Approximately 24 characters
  • Numeric: Approximately 48 digits

Data Matrix Version 44x44:

  • Alphanumeric: Approximately 49 characters
  • Numeric: Approximately 98 digits

Data Matrix Version 62x62:

  • Alphanumeric: Approximately 106 characters
  • Numeric: Approximately 212 digits

Error Correction: 

Data Matrix barcodes can incorporate different levels of error correction to ensure accurate data retrieval even if parts of the barcode are damaged or obscured. Error correction levels are typically represented as a percentage of codewords that can be restored. Higher error correction levels provide more robustness but may reduce overall data capacity.


Data Matrix barcodes have different versions, each with a specific arrangement of modules (black and white squares). Higher versions allow for more data to be encoded, but they may require larger physical space.

Module (Cell) Size: 

Data Matrix barcodes consist of individual modules, which are the black or white squares. The size of these modules can vary based on the barcode's physical dimensions and printing resolution.

Reading Technology: 

Data Matrix barcodes are read using specialized 2D barcode scanners or imagers equipped with the capability to decode 2D symbologies. These scanners use imaging technology to capture the entire barcode, ensuring accurate and fast data retrieval.


Data Matrix barcodes find applications in various industries, including manufacturing, healthcare, logistics, and electronics, where compact codes are needed to store product information, track inventory, or enable traceability.

Benefits of Data Matrix Barcodes

Data Matrix barcodes offer several benefits that make them advantageous for various applications. Let’s explore each benefit below:

High Data Capacity: 

Data Matrix barcodes can store a significant amount of data, including text, numbers, and binary information, in a small space. This high data density is especially useful for applications where limited space is available for printing the barcode.

2D Structure: 

Unlike traditional 1D barcodes, Data Matrix barcodes are two-dimensional, allowing them to store data both horizontally and vertically. This capability enables them to store more information and provides flexibility in data encoding.

Error Correction: 

Data Matrix barcodes can incorporate error correction codes, ensuring data accuracy even if the barcode is damaged or partially obscured. This feature is crucial for applications where the barcode might be exposed to harsh environments or wear and tear.

Compact Size: 

Due to their high data density, Data Matrix barcodes can be relatively small while still containing a significant amount of information. This makes them suitable for marking small items, medical devices, electronics, and other compact products.


Data Matrix barcodes can encode various types of data, making them versatile for different applications. They are used in industries such as manufacturing, healthcare, logistics, and electronics for tasks like product tracking, inventory management, and quality control.

Direct Part Marking: 

Data Matrix barcodes can be marked directly onto products using methods like laser engraving, dot peening, or inkjet printing. This capability is valuable for industries where durable and permanent marking is required for traceability and anti-counterfeiting measures.

Fast and Accurate Scanning: 

Specialized 2D barcode scanners can quickly and accurately read Data Matrix barcodes. These scanners use imaging technology, allowing them to capture the entire barcode at once, ensuring efficient data retrieval.


Data Matrix barcodes offer a cost-effective solution for encoding and tracking data, especially when compared to other technologies like RFID (Radio-Frequency Identification). They require minimal printing or marking equipment and can be easily integrated into existing processes.

Global Acceptance: 

Data Matrix barcodes are an internationally accepted standard, ensuring compatibility and ease of use across various regions and industries.

data matrix bar code

Examples of Data Matrix Barcodes

Here are a few examples of how Data Matrix barcodes are used:

Product Packaging: 

Data Matrix barcodes are commonly used on product packaging for items like electronics, pharmaceuticals, and automotive parts. They encode information such as serial numbers, manufacturing dates, and batch numbers.

Medical Industry: 

In healthcare, Data Matrix barcodes are used on medication packages and medical devices. These barcodes store crucial information like drug identification numbers, dosage instructions, and expiration dates to ensure patient safety.

Boarding Passes and Tickets: 

Airlines and event organizers use Data Matrix barcodes on boarding passes, tickets, and event badges. These barcodes contain passenger or attendee information, flight details, and seat assignments.

Inventory Management: 

Data Matrix barcodes are employed in warehouses and logistics for efficient inventory management. They help track items, manage stock levels, and monitor shipments as they move through the supply chain.

Automotive Industry: 

Data Matrix barcodes are used on automotive parts and components for traceability and quality control. They store manufacturing details, part numbers, and production dates, aiding in recalls and maintenance.

Direct Part Marking: 

Data Matrix barcodes are marked directly onto products using methods like laser etching, dot peening, or inkjet printing. This permanent marking ensures traceability throughout the product's lifecycle, even in harsh environments.

Document Management: 

Data Matrix barcodes are used in document management systems to organize and track paper documents. Each document can have a unique barcode, linking it to digital records and improving file retrieval.

Lab Samples: 

Laboratories use Data Matrix barcodes on sample containers. These barcodes encode information about the sample, including type, origin, and storage requirements, ensuring accurate identification and processing.

We hope our article has now left you with a better understanding of data matrix barcodes, their structure, specifications, benefits, and how they are being used in today’s world.

If you enjoyed this article, you might also like our article on barcode country codes list or our article on unscannable barcodes.

Get Google Sheets productivity and automation tips delivered straight to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
We'll email you 1-3 times a week — and never share your information.
Get your copy of our free Google Sheets automation guide!
  • 27 pages of Google Sheets tips and tricks to save time
  • Covers pivot tables and other advanced topics
  • 100% free

Work less, automate more!

Use Lido to connect your spreadsheets to email, Slack, calendars, and more to automate data transfers and eliminate manual copying and pasting. View all use cases ->