Scanning Data Matrix Codes
Scan Data Matrix codes directly in your web apps.
Overview
The Data Matrix symbology is a high-density, 2D matrix code widely used in manufacturing, healthcare, logistics and retail for efficient data encoding and retrieval. Data Matrix is standardised as ISO/IEC 16022 and GS1 Data Matrix.
Data Matrix consists of a square or rectangular matrix of black and white cells enclosed in an L-shaped finder pattern and surrounded by a quiet zone. It is known for being high-density, allowing large amounts of data to be packed into a compact space. It is particularly suited for applications requiring traceability, such as marking small items, packaging or electronic components.
Data Matrix ECC 200 has strong error correction based on Reed-Solomon (ECC 200), ensuring accurate reads even if the code is partially damaged or obscured.
Square Data Matrix
Data Matrix codes are usually square and come in a fixed number of sizes, from 10x10 up to 144x144 rows/columns. Data Matrix codes can store numeric (digits) and alphanumeric (characters and digits) data.
Increasing the number of rows and columns increases the code's capacity, but makes also makes the code harder to read. The table below lists the code capacities for each size.
Size | Capacity (numeric/alphanumeric) | Size | Capacity (numeric/alphanumeric) |
---|---|---|---|
10x10 | 6/3 | 44x44 | 288/214 |
12x12 | 10/6 | 48x48 | 348/259 |
14x14 | 16/10 | 52x52 | 408/304 |
16x16 | 24/16 | 64x64 | 560/418 |
18x18 | 36/25 | 72x72 | 736/550 |
20x20 | 44/31 | 80x80 | 912/682 |
22x22 | 60/43 | 88x88 | 1152/862 |
24x24 | 72/52 | 96x96 | 1392/1042 |
26x26 | 88/64 | 104x104 | 1632/1222 |
32x32 | 124/91 | 120x120 | 2100/1573 |
36x36 | 172/127 | 132x132 | 2608/1954 |
40x40 | 228/169 | 144x144 | 3116/2335 |
Scanning Data Matrix Barcodes in Web Apps
STRICH enables you to scan Data Matrix barcodes in your web apps with just a few lines of JavaScript. The scanning happens on the device, in the web browser – no backend involved.
Adding Data Matrix scanning to your web app can be as simple as a single line of code using our Popup Scanner. For more information on Data Matrix support in STRICH, please refer to our documentation.
const code = await PopupScanner.scan({ symbologies: ['datamatrix'] });
Online Data Matrix Scanner
Why not try it out? Press the button below to open a popup that scans a Data Matrix code and displays its value here.
Rectangular Data Matrix (DMRE)
Rectangular Data Matrix codes are less common. These codes are often used on postage and can currently not be read using our SDK. We plan to add support for them in 2025.