Guide

Data Matrix Generator for UDI & Industrial Marking (Free + API)

Generate Data Matrix barcodes free or via API — for FDA UDI on medical devices, GS1 element strings, electronics, and small-part marking. Module size, quiet zone, and scannability explained.

Data Matrix Generator for UDI & Industrial Marking

Data Matrix is the small, dense 2D code you see on medical devices, circuit boards, surgical instruments, and aerospace parts. It packs a lot of data into a tiny square and stays readable when marked directly onto metal or plastic. This guide generates one and covers what matters for compliance and scanning.

Generate one now: open the generator, choose Data Matrix, and enter your data.

Why Data Matrix (and not QR)?

Both are 2D, but Data Matrix is the standard for small-item and direct-part marking:

  • Smaller footprint at a given data size — fits on a vial, a connector, a tool.
  • ECC200 error correction is fixed and robust, designed for industrial conditions.
  • Mandated for FDA UDI (Unique Device Identification) and used in GS1 healthcare, automotive, and defense (MIL-STD-130) marking.

Use QR for consumer-facing links; use Data Matrix for parts, devices, and labels.

FDA UDI and GS1 element strings

A UDI is not just a number — it's a structured GS1 element string built from Application Identifiers (AIs):

| AI | Meaning | Example | |---|---|---| | (01) | GTIN (device identifier) | (01)00312345678906 | | (11) | production date | (11)260624 | | (17) | expiration date | (17)271231 | | (10) | lot/batch | (10)LOT42 | | (21) | serial number | (21)SN0001 |

Encode the concatenated element string (e.g. (01)00312345678906(17)271231(10)LOT42) as the Data Matrix payload. The result is a GS1-compliant UDI carrier. (Always validate the final mark against your regulatory submission and a verified scanner.)

Settings that matter for small-part scanning

  • Module size — the size of each cell. Direct-part marking and tiny labels need a module large enough for your scanner's resolution; too small and it won't read.
  • Quiet zone — Data Matrix needs at least a 1-module clear margin on all sides.
  • Contrast — dark on light, high contrast; for laser/dot-peen marking, contrast is the usual failure point.

Generate from your line or app (API)

bash curl -X POST https://YOUR-DOMAIN/api/datamatrix \ -H "Content-Type: application/json" \ -d '{ "payload": "(01)00312345678906(17)271231(10)LOT42", "moduleSize": 8 }'

Returns a base64 PNG (or SVG for crisp print/laser output). See the API docs for parameters and limits.

Common questions

  • Is this GS1/UDI compliant? The tool encodes your GS1 element string into a spec-correct Data Matrix. Compliance of the data (correct AIs, GTIN, formatting) is yours to validate; the carrier is standard ECC200.
  • What's the max capacity? Up to ~2,335 numeric / ~1,556 alphanumeric characters, but smaller payloads mark and scan far more reliably on small parts.
  • Can I export vector for laser marking? Yes — SVG output scales without pixelation.

One thing we don't do

This tool is for lawful barcode generation and validation. It does not produce official identity-document or credential payloads.

Generate your Data Matrix

Open the generator → — choose Data Matrix, paste your GS1/UDI string, set a module size for your scanner, and export PNG or SVG.