Data Matrix Reader
Scan a Data Matrix code with your camera or upload an image. Built for healthcare, manufacturing, logistics, and GS1 DataMatrix payloads — decoded locally in your browser.
Camera access requires HTTPS and a one-time permission.
Result
Scan or upload a Data Matrix code. The decoded value and detected format will appear here.
Where Data Matrix is used
Data Matrix dominates wherever the code has to be tiny, durable, and machine-readable. These are the four use cases this reader is tuned for.
GS1 DataMatrix on pharmaceutical packs encodes GTIN, batch, expiry and unique serial — required by EU FMD and US DSCSA traceability rules.
Direct-part-marked Data Matrix on castings, PCBs and machined parts survives heat, oil and abrasion that would destroy a printed label.
Compact Data Matrix labels fit on small parcels and components where a Code 128 wouldn't, while still carrying full SSCC and lot data.
Standardized Data Matrix profile carrying GS1 Application Identifiers, used across retail, healthcare and supply chain.
Data Matrix vs QR code
Both are 2D codes, but they're built for different jobs. Use this quick comparison to confirm you're scanning the right thing.
| Feature | Data Matrix | QR Code |
|---|---|---|
| Finder pattern | Solid L on two sides + timing on the other two | Three corner squares (and an alignment pattern) |
| Minimum practical size | Roughly 2 × 2 mm with industrial print | Roughly 10 × 10 mm for camera scanning |
| Typical payload | Up to ~2,300 ASCII characters | Up to ~4,300 ASCII characters |
| Common in | Healthcare, manufacturing, aerospace, logistics | Marketing, payments, Wi-Fi, contacts |
| Direct part marking | Yes — laser/dot-peen friendly | Rarely, and at larger sizes |
About this Data Matrix reader
The ReadBarcode Data Matrix reader decodes 2D Data Matrix codes — including GS1 DataMatrix — directly in your browser. Use your phone camera, your webcam, or upload an image file. There's no app to install, no signup, and no upload step: the image stays on your device and is processed locally with a WebAssembly build of ZXing.
Data Matrix is the workhorse 2D symbology for healthcare, manufacturing, and logistics, where space is tight and codes must survive being marked directly onto parts. This online Data Matrix reader is built specifically for those workflows.
When to use it
- Reading a GS1 DataMatrix on a pharmaceutical pack to confirm the GTIN, batch, expiry and serial.
- Decoding a direct-part-marked Data Matrix on an electronics component or aerospace part.
- Scanning a unit-load logistics label that carries a Data Matrix instead of a Code 128.
- Auditing what a freshly generated Data Matrix actually encodes before mass production.
- Quickly checking a small Data Matrix on a coupon, ticket, or appointment slip.
How it works
- 1Step 1Pick an input
Choose the camera, an uploaded image, or paste a URL to an image of the Data Matrix code.
- 2Step 2Frame the code
Fill the frame with the Data Matrix square. Even lighting beats high resolution every time.
- 3Step 3Auto-decode
The ZXing engine detects the L-shaped finder pattern and reads the modules.
- 4Step 4Inspect the payload
The result panel shows the detected format (Data Matrix) and the decoded text.
- 5Step 5Parse further if needed
For GS1 DataMatrix payloads, pass the value to the GS1 Digital Link Decoder to split it into AIs.
What to avoid
- Scanning glossy direct-part marks with a single point light source — the glare wipes out modules.
- Digital-zooming on a small Data Matrix; move closer instead so each module stays crisp.
- Cropping away the quiet zone around the code — most failures are quiet-zone failures.
- Expecting product names or batch metadata — this is a decoder, not a healthcare database.
- Confusing a tiny QR code for a Data Matrix. QR has three corner finder squares; Data Matrix has one solid L.
Tips & tricks
- Diffuse, indirect light gives the best contrast on metal or foil packaging.
- For very small codes, take the photo first at maximum resolution, then upload it here.
- If the result starts with the GS1 FNC1 indicator, treat it as GS1 DataMatrix and parse the AIs.
- When a code refuses to scan, try rotating the image 90° — Data Matrix is orientation-agnostic but the camera autofocus isn't.
- Use the same tool to audit suppliers' Data Matrix codes before integrating them into your packing line.