Free Data Matrix reader · no sign-up
Read Data Matrix codes from photos.
Open a photo or PDF with a Data Matrix code, the small square pattern on medicines, devices, parts and parcels. It is decoded in your browser; GS1 and UDI codes are split into product number, lot, expiry and serial.
Data Matrix reader online
About these barcodes
Where Data Matrix is used
The square code holds a lot of data in little space: medicine packs (GTIN, serial, lot, expiry for anti-counterfeiting rules), medical devices (UDI), electronic parts and postage. Phone camera apps often read it but show only one long string.
Plain or GS1
A Data Matrix that starts with FNC1 carries GS1 data; this page splits it into named fields and checks them. Other Data Matrix codes (part numbers, serials, postage) are shown as their text.
In short
- Reads
- Data Matrix (ECC 200) incl. GS1 DataMatrix, rectangular sizes, mirrored and inverted codes
- Also reads
- QR, PDF417, Aztec and all common barcodes
- Checks
- GTIN check digit, dates, lengths, GS1 rules
- Privacy
- Read on your device; nothing uploaded
How to do it
- Open the photo
Take it close and straight; the square should fill a good part of the frame. Several photos at once are fine.
- Read the result
Text codes show their text. GS1 codes show GTIN, lot, expiry, serial and other fields, each with its check.
- Download
One row per code in Excel, CSV or JSON.
Good to know
Dot-peened or laser-etched codes on metal (DPM) with strong glare are hard; photograph them with soft, side light.
What this tool doesn't do
- Doesn't verify medicines against a national verification system
- Doesn't grade print quality (ISO/IEC 15415)
- Doesn't decode encrypted postage content
- Doesn't upload or keep your files
What happens to your files
Runs in your browser; your photos and PDFs stay on your device. Nothing is uploaded.
Runs in your browser; your photos and PDFs stay on your device. Nothing is uploaded.
- Read on your device
The codes are found and decoded by a program inside this page. Your photos and PDFs never leave your phone or computer.
- Nothing kept
Close the tab and it's gone. We never get a copy, so there's nothing to delete.
- Checked, not guessed
Check digits, dates and GS1 rules are checked by program against the official GS1 table, and every result says what was checked.
Questions
How do I read a Data Matrix code online?
Open its photo or PDF here: the code is decoded in your browser in about a second and listed with its content and, for GS1 codes, its fields.
Can it read the code on my medicine pack?
Yes: pharma Data Matrix codes are GS1 codes with product number (01), serial (21), lot (10) and expiry (17); each is shown and checked. It does not check the pack against the national verification system.
For AI agents: Barcode reader from image · index.md · /llms.txt