Free Data Matrix Barcode Generator — Create, Preview & Download Instantly
Generate Data Matrix barcodes online for free — no signup, no software, no limits. Enter any alphanumeric string, binary data, or GS1-formatted content and get a crisp, scannable Data Matrix symbol in PNG or SVG format within seconds. Data Matrix is the ISO-standard 2D barcode for small-item marking — required by the US FDA for medical devices (UDI), used by the US DoD for military parts, and adopted across aerospace, electronics, and pharmaceutical manufacturing. Real-time preview updates as you type. Download or bulk-generate your barcodes instantly.
What Is Data Matrix?
Data Matrix is a two-dimensional matrix barcode capable of encoding text, numbers, and binary data in a compact square or rectangular symbol. Standardized under ISO/IEC 16022, it is one of the most space-efficient barcodes available — encoding up to 2,335 alphanumeric characters in a symbol as small as 2.5 mm × 2.5 mm. Data Matrix uses Reed–Solomon error correction (ECC 200, the current standard) to recover up to 30% of damaged data, making it highly reliable for industrial direct part marking (DPM) via laser engraving, dot-peening, or chemical etching on metal and plastic components. Unlike QR codes, Data Matrix is optimized for small-surface, high-density marking in manufacturing environments where space is severely constrained.
- Extremely Compact — Encodes Data in Millimeter-Scale SymbolsData Matrix can encode the same amount of information as a much larger 1D barcode in a fraction of the space. A 10 × 10 module symbol can encode up to 3 numeric digits or 1–2 alphanumeric characters; a 32 × 32 module symbol holds up to 44 characters. This extreme compactness makes Data Matrix the mandatory format for marking small components: PCB chips, surgical instruments, pharmaceutical blister packs, and hardware fasteners where a QR code or 1D barcode simply will not fit.
- ECC 200 Reed–Solomon Error CorrectionAll modern Data Matrix barcodes use ECC 200 (Error Checking and Correcting level 200), which employs Reed–Solomon error correction to recover up to 25–30% of corrupted codewords. This means Data Matrix symbols remain fully readable even when scratched, stained, partially obscured, or engraved on curved or reflective surfaces — the exact conditions found in aerospace assembly lines, hospital operating rooms, and electronics manufacturing floors.
- Direct Part Marking (DPM) — Permanent TraceabilityData Matrix is the dominant format for direct part marking: permanently engraving or etching a barcode directly onto a component rather than applying a label. DPM methods include laser engraving, dot-peening (mechanical indentation), inkjet printing, and electro-chemical etching. The resulting mark lasts the lifetime of the part, enabling end-to-end traceability without adhesive labels that can fall off, fade, or be removed.
- FDA UDI and GS1 ComplianceThe US FDA requires Data Matrix as the machine-readable format for Unique Device Identification (UDI) labels on medical devices sold in the United States — including surgical instruments, implants, diagnostic equipment, and drug-device combination products. Data Matrix also supports GS1 Application Identifiers for encoding GTINs, lot numbers, expiry dates, and serial numbers in a single symbol, enabling full GS1 supply chain compliance.
- DoD UID and Aerospace MIL-STD ComplianceThe US Department of Defense mandates Data Matrix for Unique Item Identification (UID) marking on all property, plant, and equipment items under MIL-STD-130. Aerospace standards including AS9132 and IAQG SCMH also specify Data Matrix for part traceability. This generator produces standard ECC 200 Data Matrix symbols that meet the module size and print quality requirements of these specifications.
Data Matrix specifications
A compact 2D matrix code with fixed Reed-Solomon error correction — the standard for pharma serialization and tiny parts. The table below lists the exact Data Matrix specifications — character set, check digit, X-dimension, quiet zone and the governing ISO/IEC 16022 (ECC 200); AIM USS Data Matrix standard — so you can size and print the symbol correctly the first time.
| Character set | ASCII by default; extended via ECI (UTF-8 and other code pages) |
|---|---|
| Data length | Up to 3,116 numeric / 2,335 alphanumeric / 1,556 bytes (ECC 200, 144×144) |
| Check digit | No check digit; fixed Reed-Solomon ECC 200 correction (up to ~25% damage recoverable on large symbols) |
| Density | 100-500 characters per cm² — the highest density of the common 2D symbologies |
| X-dimension (module width) | 0.20-0.50 mm printed; 0.05-0.10 mm possible in laser direct-part marking |
| Quiet zone | 1 module on all sides — the smallest of any 2D symbology |
| Symbol size | Symbol size scales in module counts; 10×10 minimum for full character sets |
| Module structure | Square or rectangular grid of uniform modules |
| Standard | ISO/IEC 16022 (ECC 200); AIM USS Data Matrix |
| Introduced | 1994 — ID Matrix (later Acuity CiMatrix / RVSI) |
Typical uses: Pharmaceutical serialization (EU FMD, US DSCSA); Direct part marking on medical devices and electronics; Small-item identification in aerospace and electronics; Document and coupon authentication.
How Data Matrix compares to similar barcode types
Choosing the wrong symbology is the most common cause of barcodes that scan in the warehouse but get rejected downstream. This table compares Data Matrix with the formats most often confused with it, on the three properties that decide compatibility: character set, check digit, and quiet zone.
| Symbology | Character set | Check digit | Quiet zone |
|---|---|---|---|
| Data Matrix(this page) | ASCII by default; extended via ECI (UTF-8 and other code pages) | No check digit; fixed Reed-Solomon ECC 200 correction (up to ~25% damage recoverable on large symbols) | 1 module on all sides — the smallest of any 2D symbology |
| QR Code | Four modes: numeric (0-9), alphanumeric (45 chars), byte (ISO-8859-1 / UTF-8), and kanji/kana | No check digit; integrity via Reed-Solomon error correction (levels L/M/Q/H) | 4 modules on all sides |
| Aztec Code | Numeric, alphanumeric (upper and lower case), byte, and digit-pair compaction modes | No check digit; Reed-Solomon correction selectable in 23 steps (~5%-95%) | None required — the only major symbology with a true zero quiet zone |
| PDF417 | Text mode (alphanumeric compaction), numeric mode, and byte mode; extended via ECI | No check digit; Reed-Solomon error correction, levels 0-8 (selectable) | 2X on all sides (2 rows above/below, 2 columns left/right) |
Who Uses Data Matrix?
Data Matrix is the mandated or preferred 2D barcode format in industries where space is limited, durability is critical, and regulatory compliance is required.
Medical Device Manufacturers
Generate FDA UDI-compliant Data Matrix barcodes for surgical instruments, implants, diagnostic equipment, and drug-device combination products. Encode GS1 Application Identifiers for GTIN, lot number, expiry date, and serial number in a single symbol that meets 21 CFR Part 830 labeling requirements.
Aerospace and Defense Suppliers
Produce MIL-STD-130 and AS9132 compliant Data Matrix UID marks for aircraft components, military hardware, and ground support equipment. Direct part marking with laser or dot-peen ensures permanent traceability throughout the part lifecycle.
Electronics and PCB Manufacturers
Mark integrated circuits, PCBs, connectors, and sub-assemblies with Data Matrix serial numbers for production tracking, quality control, and end-of-life recall management. Millimeter-scale symbols fit on the smallest surface-mount components.
Pharmaceutical Manufacturers
Generate GS1-compliant Data Matrix codes for blister packs, vials, syringes, and folding cartons. Encode GTIN, batch number, expiry date, and serial number in a single compact symbol to comply with global pharmaceutical serialization regulations including EU FMD and DSCSA.
Data Matrix Barcode Generator Features
Everything you need to create compliant, production-quality Data Matrix symbols — from real-time preview to bulk generation and lossless SVG output.
Real-Time Preview as You Type
The Data Matrix symbol preview updates live with every keystroke. See the exact module grid and overall symbol dimensions before downloading. Inputs that exceed the selected symbol size capacity are flagged immediately, allowing you to shorten your data or select a larger matrix size before sending to a printer or marking system.
PNG and SVG Download
Download your Data Matrix barcode as a high-resolution PNG for documents and labels, or as a lossless SVG for print-ready packaging design and vector workflow integration. SVG output scales to any size without pixelation — essential for both micro-scale PCB labels and large-format industrial part tags.
Adjustable Symbol Size and Quiet Zone
Control the output dimensions of your Data Matrix symbol to match your marking area or label template. The mandatory quiet zone — 1 module width on all four sides per ISO/IEC 16022 — is automatically included. For DPM applications, adjust the module size to the smallest reliably scannable value for your marking method and surface material.
Bulk Data Matrix Generation
Enter multiple values — serial numbers, part IDs, lot codes, or UDI strings — one per line, and generate a separate Data Matrix symbol for each entry. Download all as a ZIP archive of individual PNG or SVG files. Ideal for serialized component marking, medical device UDI compliance, and any manufacturing workflow requiring unique per-unit barcodes.
Human-Readable Text — Show or Hide
Toggle the optional human-readable text line below the Data Matrix symbol on or off. Displaying the encoded value in plain text is required on many FDA UDI labels for manual verification and is useful on internal inventory tags. Hide the text for DPM marks on small components where space is too constrained for a text line.
No Account, No Watermarks, No Limits
This Data Matrix generator is completely free — no registration, no subscription, no watermarks. All encoding is performed client-side in your browser. Serial numbers, part IDs, and any other sensitive manufacturing data you encode are never transmitted to any server.
Data Matrix Barcode — Frequently Asked Questions
Technical answers to the most common questions about Data Matrix encoding, ECC 200, size limits, DPM, and regulatory compliance.
What is Data Matrix and how is it different from QR Code?
Data Matrix is a 2D matrix barcode standardized under ISO/IEC 16022, optimized for high-density data encoding in small physical spaces and direct part marking on industrial components. QR codes (ISO/IEC 18004) are larger symbols optimized for easy consumer scanning with smartphone cameras. Data Matrix is preferred in manufacturing, aerospace, medical devices, and electronics because it can be engraved directly onto parts (DPM), stores comparable data in a smaller area, and is mandated by the FDA and DoD. QR codes are preferred for consumer marketing, payments, and mobile-first applications.
What is ECC 200 and why does it matter?
ECC 200 is the error correction standard used by all current Data Matrix barcodes. It applies Reed–Solomon error correction to embed redundant data within the symbol, allowing up to 25–30% of damaged or unreadable codewords to be reconstructed by the scanner. ECC 200 replaced older, less capable correction schemes (ECC 000–140) and is the only version in active use today. All Data Matrix symbols generated by this tool use ECC 200 by default, ensuring compliance with ISO/IEC 16022 and compatibility with all modern scanners.
How much data can a Data Matrix barcode store?
Data Matrix capacity depends on the symbol size (from 10×10 to 144×144 modules for square symbols, or rectangular variants). Maximum capacities at the largest symbol size (144×144) are: 2,335 alphanumeric characters, 3,116 ASCII characters, or 1,555 bytes of binary data. Smaller symbols hold proportionally less — a 16×16 symbol holds approximately 12 alphanumeric characters. For GS1 Application Identifier strings (GTIN + lot + expiry + serial), a 24×24 or 32×32 symbol is typically sufficient.
What is direct part marking (DPM) and does this generator support it?
Direct part marking (DPM) is the process of permanently marking a Data Matrix barcode directly onto a component surface using laser engraving, dot-peening, inkjet, or electrochemical etching — without an adhesive label. This generator produces standard ECC 200 Data Matrix symbols in SVG and PNG formats that can be used as artwork for DPM systems, CNC laser machines, and dot-peen marking controllers. The SVG format is recommended for DPM artwork because it is resolution-independent and can be scaled to any module pitch without pixelation.
Is Data Matrix required for FDA UDI compliance?
The FDA requires medical devices distributed in the United States to carry a Unique Device Identifier (UDI) label under 21 CFR Part 830. The machine-readable portion of the UDI must be encoded as either a linear barcode or a 2D barcode; for implantable and small devices where a linear barcode is impractical, Data Matrix (per ISO/IEC 16022) is the specified 2D format. The UDI must encode the device identifier (DI) and, where applicable, the production identifier (PI) including lot number, expiry date, and serial number using GS1 Application Identifiers.
What is the minimum size for a scannable Data Matrix barcode?
The minimum scannable size depends on the marking method, surface, and scanner type. For label printing, a minimum module size of 0.25 mm is recommended, resulting in a 10×10 symbol approximately 2.5 mm × 2.5 mm. For direct part marking (laser or dot-peen), minimum module sizes of 0.15–0.20 mm are achievable with high-resolution systems and appropriate DPM scanners. General-purpose imagers (standard 2D scanners) may require modules of 0.30 mm or larger for reliable reads on DPM surfaces.
Is my data safe when using this generator?
Yes. All Data Matrix encoding is performed entirely in your browser using client-side JavaScript. Your part numbers, serial numbers, UDI strings, and any other manufacturing data are never transmitted to any server and never stored or logged. Closing the browser tab clears all input data completely.
Specification reference
Read the full Data Matrix specification — character set, check digit, quiet zone, density, and the governing ISO/IEC 16022 (ECC 200); AIM USS Data Matrix standard — in our barcode glossary.
Data Matrix specificationRelated barcode types
Compare Data Matrix with similar symbologies, or open their full specifications.
- QR Code
The dominant 2D matrix barcode: up to 7,089 digits in a square symbol with selectable error correction.
- Aztec Code
A compact matrix code with a bullseye finder and no quiet zone — popular on rail tickets.
- PDF417
A stacked-linear 2D code carrying up to 1,850 text characters — the workhorse of IDs, boarding passes, and transport documents.
Related barcode tools
Need more than one barcode, a printed label sheet, or a way to check the result? These tools use the same generator, so the output matches.
- Bulk Barcode GeneratorImport Excel or CSV, paste a list, or create a sequence and get a barcode for every row. Export as PNG, SVG, JPG, or a ZIP.
- Barcode Label PrintPrint a full sheet of labels that lines up with Avery label stock, at the correct physical size.
- Barcode ScannerVerify a printed label before you run the whole batch — decode it from an image or your camera.
- Barcode MakerFull control over size, colors, font, quiet zone, and layout for a single barcode.
Generate Your Data Matrix Barcode Now — Free, Instant, No Account Required
This free Data Matrix barcode generator is ready to use immediately. Enter any part number, UDI string, serial number, or GS1 data, adjust the symbol size, and download a print-ready PNG or SVG in seconds. No signup, no watermarks, no usage limits. All encoding runs locally in your browser — your manufacturing data stays private. Generate one barcode or thousands; the tool is completely free regardless of volume.
