Data Matrix Barcode Generator
Generate compact Data Matrix barcodes for product identification, industrial labeling, electronics, healthcare and other high-density data applications.
Barcode & Matrix Generator
Live Studio Preview
Code 128 Batch Serial Number Generator
Generate sequential Code 128 barcodes for warehouse SKUs, asset tags, inventory labels, and other internal identifiers.
Data Matrix Barcode Generator
Quick answer: A Data Matrix barcode is a 2D matrix symbology defined by ISO/IEC 16022:2006. ECC 200 error correction uses Reed-Solomon coding and allows the symbol to be read even when significantly damaged. Maximum capacity is 3,116 digits, 2,335 alphanumeric characters or 1,555 bytes.
What a Data Matrix barcode is
Data Matrix is a 2D matrix barcode symbology defined in ISO/IEC 16022:2006. The current edition mandates ECC 200 error correction for all new applications. ECC 000 through ECC 140 are legacy convolutional correction variants used only in closed, existing systems.
The symbol is a square or rectangular grid of dark and light modules. Two adjacent sides form a solid L-shaped finder pattern, and the two remaining sides form an alternating clock track. The finder pattern allows a scanner to locate the symbol in any orientation and under any rotation, which is why Data Matrix does not have a fixed top or bottom.
ECC 200 uses Reed-Solomon coding. This means error correction codewords are computed from the data and interleaved through the symbol. A reader can reconstruct the original data even when a significant portion of the symbol is physically missing, scratched or contaminated. The exact percentage depends on the symbol size and the proportion of damaged modules, not a fixed figure like QR Code's four levels.
Data Matrix technical specification
Capacity and symbol sizes
| Parameter | Value | Source |
|---|---|---|
| Standard | ISO/IEC 16022:2006 | iso.org/standard/44230.html |
| Error correction | ECC 200 — Reed-Solomon (all new applications) | ISO/IEC 16022:2006 §4.1 |
| Max capacity — numeric | 3,116 digits | ISO/IEC 16022:2006 §4.1(d) |
| Max capacity — alphanumeric | 2,335 characters | ISO/IEC 16022:2006 §4.1(d) |
| Max capacity — bytes | 1,555 bytes | ISO/IEC 16022:2006 §4.1(d) |
| Square symbol sizes (ECC 200) | 10×10 to 144×144 modules (even values) | ISO/IEC 16022:2006 §4.3.2 |
| Rectangular symbol sizes (ECC 200) | 8×18 to 16×48 modules | ISO/IEC 16022:2006 §4.3.2 |
| Orientation independence | Yes — reads in any orientation | ISO/IEC 16022:2006 §4.1(g) |
| Character set | ASCII values 0–127 (US ASCII), 128–255 (ISO 8859-1), full binary via Base 256 mode | ISO/IEC 16022:2006 §4.1(a) |
ECC 200 versus earlier ECC variants
ECC 000 through ECC 140 use convolutional error correction and are found in closed legacy systems that predate the ISO/IEC 16022 standard. ECC 200 supersedes all of them. Any new application, any new printing system and any new scanner should use ECC 200 only. Mixing ECC variants in the same system requires scanners that can identify and switch modes, which most modern readers do not support.
Square versus rectangular symbols
ECC 200 defines 24 square symbol sizes from 10×10 to 144×144 modules and 6 rectangular symbol sizes from 8×18 to 16×48 modules. Square symbols accommodate the highest data densities at the largest sizes. Rectangular symbols are used when the label space is narrow and tall, such as a syringe barrel or a thin cable tie. This generator supports both variants; select the shape that matches your label geometry.
When to use a Data Matrix barcode
Pharmaceutical serialisation under EU FMD. The EU Falsified Medicines Directive requires a unique identifier on the outer packaging of prescription medicines sold in the European Union. The European Medicines Verification Organisation (EMVO) and EUDAMED specify Data Matrix as the required 2D symbology for that identifier. GS1 DataMatrix is the variant used in practice, combining the Data Matrix symbol with GS1 Application Identifiers to encode GTIN, serial number, batch number and expiry date in one symbol.
Direct part marking on electronics and PCBs. Printed circuit boards, semiconductor wafers and assembled electronics often need a permanent traceability mark that survives the manufacturing process. Data Matrix symbols can be etched, laser-marked, dot-peened or chemically etched directly onto surfaces that could not carry a paper label. The ECC 200 correction capability handles surface imperfections and degradation.
Surgical instruments and medical devices. Unique Device Identification (UDI) requirements in the United States (FDA) and European Union mandate permanent marks on reusable surgical instruments. Data Matrix is the 2D symbology specified in UDI guidance because it survives repeated sterilisation cycles where a paper label would be destroyed.
Aerospace and defence parts tracking. Aircraft component traceability requires permanent marks that remain readable for decades. Data Matrix at fine X-dimensions satisfies this with a mark small enough to fit on hydraulic fittings and fasteners.
Small-label packaging where QR Code is too large. Data Matrix achieves the same data capacity as a QR Code in a smaller physical footprint. A 32×32-module Data Matrix symbol can encode a short URL or serial number in an area where the equivalent QR Code would need a larger version number and more modules.
Print and marking requirements for Data Matrix
X-dimension. The X-dimension is the width of one module. It determines the physical size of the entire symbol and the minimum scanner resolution required to decode it. Print quality standards for 2D symbols follow ISO/IEC 15415. The correct X-dimension for a given application depends on the reading distance and the scanner's resolution specification, not a single universal figure.
Quiet zone. The quiet zone around a Data Matrix symbol must be at least one X-dimension on every side. This is a narrower requirement than QR Code's four-module quiet zone, which is why Data Matrix can occupy a smaller total footprint on a label.
Contrast and substrate. The modules must be dark and the background light, or the reverse (light modules on dark substrate with appropriate scanner inversion setting). Substrates that absorb ink unevenly, such as raw corrugated board, increase the risk of voided modules. For direct part marking, contrast depends on the marking method and surface reflectivity — verify with a scan grade test (ISO/IEC 15415) before committing to production.
Bar height. Data Matrix is a square or rectangular matrix, not a linear barcode, so there is no separate bar height parameter. The symbol aspect ratio is fixed by the chosen matrix size. Do not scale a Data Matrix symbol disproportionately — stretching one axis distorts module spacing and makes the symbol unreadable.
Module regularity. Each module should be as close to a perfect square as the print or marking method allows. Ink spread, under-etch and surface roughness all erode module edges. Print at the highest resolution available to your output device, and verify scan quality before production.
Troubleshooting: why your Data Matrix barcode is not scanning
Wrong character for the encoding mode. Data Matrix Base 256 mode handles binary bytes, but some generator configurations default to ASCII or C40 mode. If you are encoding binary data and the symbol will not scan correctly, confirm the generator is using the appropriate mode for the data type.
X-dimension too small for the scanner. A Data Matrix printed at 0.1 mm per module requires a high-resolution industrial scanner to decode. Consumer phone cameras may not resolve fine-pitch symbols. Increase the X-dimension or move to a larger symbol size.
Missing or insufficient quiet zone. The quiet zone must be at least one X-dimension on every side. Anything that encroaches on the quiet zone — a border, another element, a cropped label edge — prevents the finder pattern from being detected.
Damaged finder pattern. The solid L-shaped border on two sides of a Data Matrix symbol is the primary location target for the decoder. Physical damage to those two edges will prevent symbol location even if most of the data area is intact.
Symbol distorted by non-uniform scaling. Stretching or squashing a Data Matrix symbol makes the module spacing unequal in one axis. Most decoders will reject a symbol whose module aspect ratio deviates significantly from square. Always scale uniformly from the source file.
Scanner not configured for ECC 200. Some older industrial scanners or handheld readers ship with ECC 200 disabled by default. Consult the scanner's programming manual and scan the ECC 200 enable barcode before testing.
Insufficient print contrast. ISO/IEC 15415 specifies minimum print contrast ratios for 2D symbols. A scan grade test with a calibrated verifier identifies contrast failures before deployment.
Data Matrix versus QR Code
Both Data Matrix and QR Code are 2D matrix symbologies with Reed-Solomon error correction. They are not interchangeable — a scanner configured to read one will not necessarily read the other, and most consumer phone cameras can scan QR Code but not Data Matrix without a specific app.
| Data Matrix | QR Code | |
|---|---|---|
| Standard | ISO/IEC 16022:2006 | ISO/IEC 18004 |
| Error correction | Reed-Solomon (ECC 200) | Reed-Solomon, levels L/M/Q/H |
| Max capacity (numeric) | 3,116 digits | 7,089 digits (Version 40) |
| Max capacity (bytes) | 1,555 bytes | 2,953 bytes (Version 40, level L) |
| Minimum symbol size | 10×10 modules | 21×21 modules (Version 1) |
| Orientation independence | Any | Any |
| Quiet zone | 1 module all sides | 4 modules all sides |
| Consumer phone scan (native) | No — requires dedicated app | Yes — iOS and Android native |
| Best for | DPM, pharma serialisation, small labels | Consumer-facing URLs, marketing, payments |
Choose Data Matrix when the label space is small, the scanning environment is industrial, and consumer phone readability is not a requirement. Choose QR Code when end consumers will scan the symbol with their own device.
Using this barcode in Bahrain and international supply chains
Bahrain retailers, importers, manufacturers and logistics teams should match identifiers to the rules of their trading partners. Retail GTINs must come from the proper issuing organisation; a generator creates artwork but does not assign ownership. Internal stock and asset references may use organisation-defined values when the receiving system supports them.
Use British English in operational guidance where it matches your organisation’s style, and add Arabic instructions for teams that need them. Print under the actual conditions of use. Bahrain’s heat, bright light, dust, curved packaging and reflective laminate can expose contrast or surface problems that are invisible on a monitor.
Keep quiet zones clear, avoid stretching the image, and prefer dark bars on a plain light background. Scan samples from the beginning, middle and end of a print run. For regulated retail, healthcare, publishing or logistics use, confirm the current GS1, ISBN-agency, customer or industry specification before approving production.
Before you print
- Correct symbology selected
- Identifier ownership confirmed
- Check digit verified
- Quiet zones kept clear
- Strong bar contrast
- Aspect ratio unchanged
- SVG or high-resolution PNG
- Production scanner test
Frequently asked questions
Open a question to read a concise technical answer.
01What is a Data Matrix barcode?+
A Data Matrix barcode is a 2D matrix symbology defined in ISO/IEC 16022:2006. It stores data as a grid of dark and light modules. ECC 200 error correction uses Reed-Solomon coding, which allows the symbol to be decoded even when a significant portion is physically damaged. Data Matrix reads in any orientation and requires no fixed top or bottom.
02How much data can a Data Matrix barcode store?+
At the maximum 144×144 ECC 200 symbol size, Data Matrix stores up to 3,116 numeric digits, 2,335 alphanumeric characters or 1,555 bytes of binary data. These are the figures from ISO/IEC 16022:2006 §4.1(d). Smaller symbol sizes hold proportionally less data.
03What is ECC 200 error correction?+
ECC 200 is the Reed-Solomon error correction scheme defined in ISO/IEC 16022:2006 for Data Matrix. Error correction codewords are interleaved through the symbol so a reader can reconstruct the original data even when modules are physically missing or damaged. ECC 200 is mandatory for all new Data Matrix applications; earlier ECC variants are legacy only.
04What is the difference between Data Matrix and QR Code?+
Data Matrix is standardised in ISO/IEC 16022:2006 and QR Code in ISO/IEC 18004. Data Matrix achieves a higher data density in a smaller footprint — its quiet zone is one module versus four modules for QR Code. Consumer phone cameras read QR Code natively but generally do not read Data Matrix without a dedicated app. Data Matrix is the correct choice for industrial direct part marking and pharma serialisation; QR Code is correct for consumer-facing applications.
05What industries use Data Matrix barcodes?+
The EU Falsified Medicines Directive requires Data Matrix (specifically GS1 DataMatrix) on prescription medicine outer packaging sold in the EU. Electronics and PCB manufacturers use Data Matrix for direct part marking on components too small for a label. Aerospace and defence use it for permanent traceability marks on parts. Surgical instruments under FDA and EU UDI requirements are marked with Data Matrix because it survives sterilisation cycles.
06Can Data Matrix be read in any orientation?+
Yes. The L-shaped finder pattern on two edges and the alternating clock track on the other two edges allow the decoder to locate and orient the symbol regardless of rotation. This is stated explicitly in ISO/IEC 16022:2006 §4.1(g).
07Is Data Matrix the same as GS1 DataMatrix?+
GS1 DataMatrix is a specific application of the Data Matrix symbology. It uses the standard ECC 200 Data Matrix symbol but encodes data according to GS1 Application Identifiers, allowing systems in the GS1 supply chain to parse the symbol into GTIN, serial number, batch and expiry date. All GS1 DataMatrix symbols are valid Data Matrix symbols, but not every Data Matrix symbol is a GS1 DataMatrix symbol.
08Can Data Matrix encode binary data?+
Yes. ISO/IEC 16022:2006 §4.1(a) specifies a Base 256 encoding mode that stores byte values 0–255. This allows Data Matrix to encode any binary content including non-printable control characters and raw bytes up to the 1,555-byte capacity limit of the 144×144 ECC 200 symbol.
09What is the minimum size for a Data Matrix barcode?+
The minimum size depends on the X-dimension (module width) and the scanner being used. ISO/IEC 16022 does not specify a universal minimum print size; ISO/IEC 15415 governs print quality grading for 2D symbols. For automated industrial scanning, the X-dimension is typically set by the scanner's resolution specification. Consumer applications should use larger X-dimensions because phone cameras have lower resolution than industrial readers.
10Do I need a GS1 licence to generate a Data Matrix barcode?+
No, for most uses. A Data Matrix barcode can encode any arbitrary data without a GS1 licence. GS1 licensing is only required if the encoded content includes a GS1 Application Identifier structure (GS1 DataMatrix) containing a GTIN — the same licence requirement that applies to any barcode carrying a retail product identifier.