How to scan a Data Matrix
Choose how to collect codes
Use Continuous list to build a list, Stop after one code for a single check, or Stock count to tally how many times each code is scanned.
Get close and steady
Start the camera and fill the marked frame with the code. Small codes on packs need the phone 5 to 10 centimetres away; let it focus before moving. Shiny or curved surfaces read better with the light coming from the side.
Or use a photo or document
Choose images, a PDF of artwork proofs or an Office file. Each picture is searched for Data Matrix symbols and up to 20 can be read from one image.
Read and export
Each result shows the decoded text, the GS1 fields if there are any, and a Raw data line where control characters are present. Download a CSV with a GS1 fields column, or copy the values.
Example: the code on a medicine pack
A pharmacy assistant wants to record what a GS1 Data Matrix on an outer pack holds before reporting a damaged delivery. The code itself is a run of digits and letters with an invisible separator; the scanner splits it into four fields.
The (17) field is the expiry date in year, month, day order. The (21) serial number is unique to this one pack, which is what lets the supply chain spot a duplicate or a fake.
Camera scan of the pack's 2D code
Data Matrix GS1 data (01) GTIN (product number) 05012345678900 (17) Expiry date 2027-12-31 (10) Batch or lot B12345 (21) Serial number 7XK2P9 Raw data: 01050123456789001727123110B12345<GS>217XK2P9
GS1 fields you will meet most often
| Identifier | Meaning | Format |
|---|---|---|
| (01) | Product number (GTIN) | 14 digits |
| (10) | Batch or lot | Up to 20 characters |
| (11) | Production date | YYMMDD |
| (17) | Expiry date | YYMMDD |
| (21) | Serial number | Up to 20 characters |
| (00) | SSCC for a pallet or parcel | 18 digits |
Where you will find Data Matrix in a small business
Trade suppliers increasingly print GS1 Data Matrix on cartons alongside the familiar EAN barcode, so a wholesaler or retailer can capture batch and date details as well as the product. Engineering and electronics parts often carry a plain Data Matrix with a part and serial number. In both cases this scanner gives you the content as text you can paste into a stock sheet, a returns form or an email to the supplier.
Questions people ask
Can a phone camera read a Data Matrix code?
Yes, on this page any phone with a working camera and a modern browser can. Allow camera access, hold the phone close enough for the code to fill the frame and keep it still while it focuses. Very small codes etched on metal can be hard for any camera; a well-lit photo taken slightly from the side often works better.
What do the numbers in brackets mean?
They are GS1 application identifiers, which label each field in the code. (01) is the product number, (10) the batch, (17) the expiry date and (21) the serial number. The brackets are only printed in the human-readable line under or beside the code; inside the code the identifiers run straight into their values.
Why does my scan show plain text instead of GS1 fields?
Because the code is a plain Data Matrix, not a GS1 one. Many manufacturers encode their own part numbers, serials or web addresses without GS1 structure. The text is still read correctly; it simply has no standard fields to split out.
Can I check whether a medicine pack is genuine with this?
No. The scanner shows what the code contains, but checking that a serial number is genuine needs a lookup in the official verification system, which pharmacies and wholesalers reach through their own software. If you suspect a medicine is falsified, report it to the MHRA through its Yellow Card scheme.
Where your data goes
The codes are decoded inside your browser from camera frames or the files you choose. No image, serial number or batch code is sent to Map Extract or any other service.
Checked against the tool on