What is a Data Matrix code?
A Data Matrix code is a two-dimensional matrix barcode made of black and white modules arranged in a square or rectangular pattern. Unlike a traditional linear barcode, which encodes data in a single dimension, a Data Matrix code stores information in two dimensions, so it fits a larger amount of data into a much smaller print area. For a GS1 DataMatrix, confirm the application identifiers and data format your customer or system expects. See the GS1 DataMatrix characteristics.
How a Data Matrix code looks
A Data Matrix code typically appears as a square or rectangular grid of black and white modules. The arrangement of those modules encodes the data. Despite their small footprint, Data Matrix codes can carry significant amounts of information, including alphanumeric characters, symbols and binary data.
Why industries rely on Data Matrix codes
- Compact storage. Data Matrix codes encode large amounts of data in a small space, which suits product packaging and labeling where print area is limited.
- High data density. Their two-dimensional structure stores more information than a traditional linear barcode, including serial numbers, batch numbers, expiration dates and product details — see the date coder guide for how that variable data gets printed.
- Error correction. Built-in error correction can help a reader recover data from some damage. Grade the code after normal handling.
- Versatility. Data Matrix codes print on paper, plastic, metal and glass, and can be applied to curved or uneven surfaces.
- Compliance. A customer or industry specification may require a particular symbol, data format and print quality. Confirm all three before choosing a marking method.
Data Matrix codes are a practical tool for data encoding, storage and retrieval across industries that need compact, durable, machine-readable marks — whether for inventory tracking, asset management or product authentication.
Compare industrial Data Matrix marking methods
- Inline thermal inkjet. Trial compact codes on cartons, films or parts where the printhead can hold a consistent distance and a compatible ink bonds to the surface. Compare the RNJet H1 for layouts up to 12.7 mm tall.
- Piezo inkjet. Evaluate it when the code must share space with a larger case message on corrugated board. Include the whole message in a trial using the corrugated case coding guide.
- Thermal-transfer labels. Evaluate a ribbon and label when the part or pack offers a suitable label area. Check adhesion and readability after handling.
- Industrial laser marking. Evaluate a direct mark when the part specification calls for a permanent mark. Check material compatibility, contrast and verification under the specified lighting.
Test the code before production
- Bring the actual package or part, the longest data string and the available print area. Leave at least one module clear on all four sides of a GS1 DataMatrix symbol, as specified by GS1.
- Run the complete message at production speed. Check the first acceptable mark after a restart and check it again after routine handling, cleaning or packing.
- Ask for the grade and verification method your customer requires. A successful read confirms that the scanner decoded the mark on that pass. A barcode verifier measures symbol quality. ISO/IEC 29158:2025 describes a quality test for direct part marks.
Use the electronics component and packaging trial for PCBs and enclosures, the metal part print-test guide for metal surfaces and the GS1 Sunrise 2027 guide for retail packaging.
Frequently asked questions
What is a Data Matrix code?
A Data Matrix code is a two-dimensional matrix barcode made of black and white modules arranged in a square or rectangular pattern. Unlike a linear barcode, it encodes data in two dimensions, so it can store more information in a smaller space.
Why do businesses use Data Matrix codes instead of linear barcodes?
Data Matrix codes can fit more data into a smaller print area than a linear code. Error correction can help recover data from some damage. Test the mark on the actual material and check the grade required for your application.
Which printer should I use for Data Matrix codes?
Consider inline inkjet for suitable packaging or components, thermal-transfer labels where a label fits, or industrial laser marking when a permanent direct mark is specified. Compare code quality on actual samples at production speed.
Request a Data Matrix printing recommendation
Send RNJet USA your substrate, data string and line speed, and we will help you choose the right printer for a reliably scannable Data Matrix code.