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.

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.

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 Symbols
    Data 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 Correction
    All 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 Traceability
    Data 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 Compliance
    The 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 Compliance
    The 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.

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.

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.

1

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.

2

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.

3

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.

4

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.

5

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.

6

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.

7

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.

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.