GS1 DataMatrix explained: the same drawing, something else inside
Seen from outside, a Data Matrix and a GS1 DataMatrix use the same kind of drawing — square, or rectangular. The difference is in the initial FNC1 and in how the data is organised: that is how the system recognises the GS1 format, for example when reading a medicine pack.
Data Matrix is a symbology: it knows how to store characters in a small space. The ECC 200 version uses Reed-Solomon error correction, which recovers data within certain limits of damage — it is not a promise to read any weak printing. GS1 DataMatrix is that symbology with the GS1 rules on top — exactly the same relationship there is between Code 128 and GS1-128.
What sets it apart from an ordinary Data Matrix
| Data Matrix | GS1 DataMatrix | |
|---|---|---|
| First character | None mandatory | FNC1, always |
| Data | Free text | Application Identifiers |
| Version | Several | ECC 200 only |
| The scanner announces it as | ]d1 | ]d2 |
Examples of ECC 200 without ECI, with the scanner set to transmit the symbology identifier. Older versions of Data Matrix announce themselves differently.
The FNC1 in the first position is the signal. It is not readable text, but it takes up space in the symbol. It is what lets the scanner identify the GS1 format and announce it as ]d2, when it is set to transmit the symbology identifier. That identifier is added by the scanner; it is not stored inside the barcode.
Inside, the data goes as in GS1-128: each field starts with an Application Identifier of two, three or four digits. On a medicine, typically (01) for the GTIN, (17) for the expiry date, (10) for the batch and (21) for the serial number.
The separator almost nobody sees
Fields (01) and (17) have a predefined length: fourteen digits for the GTIN, six for the expiry date. They need no separator. Batch (10) and serial (21) have a variable length, from one to twenty characters, and need a separator if another field follows — without a mark saying where they end, the scanner does not know where the next one starts. Watch out for the trap: what makes a separator unnecessary is not merely having a fixed length, it is being on the GS1 list of predefined lengths. The (426), for example, has three digits of data and still needs a separator if another field follows.
That mark is the group separator: FNC1 again, or the GS character (ASCII 29) — and, on the scanner's output, it is transmitted as GS. It is only needed when another field follows; the last one in the string takes no separator. Missing a required separator joins fields that the system should read apart.
Sizes and capacity
GS1 DataMatrix exists in square and in rectangle. In square there are 24 sizes, from 10×10 to 144×144 modules; in rectangle there are six, from 8 to 16 rows by 18 to 48 columns. The largest square carries 2,334 alphanumeric characters or 3,114 digits — with the mandatory FNC1 already discounted. The largest rectangle carries 71 alphanumeric characters or 96 digits. These are maxima that depend on the encoding, and the identifiers and separators take up room too. The smallest, the 10×10, carries six digits — but that is plain Data Matrix: in GS1, the mandatory FNC1 takes one of the three data codewords and four digits are left. Enough for a two-digit identifier with a two-digit value, such as (90) or (91); a (01) with the GTIN does not come close. The size always follows from the complete string you are going to encode.
With dark modules on a light background and in the usual orientation, the top right corner is light. The quiet zone is mandatory on all four sides, at least one module wide.
Capacities and sizes: GS1 DataMatrix Guideline, version 2.5.1. Transition to 2D in retail: 2D Barcodes at Retail Point-of-Sale, version 1.1.0, December 2025.
Where it is used
Where there is no room and the information is plenty: medicines, medical devices, surgical instruments marked directly on the piece, industrial components. In healthcare it is the symbol of serialisation — the square on the medicine box carrying the GTIN, the batch, the expiry date and a serial number unique to that box.
For the supermarket checkout, the EAN-13 is still what you find nearly everywhere — but it is no longer the end of the story: GS1 DataMatrix is part of GS1's transition to 2D barcodes at the point of sale, with the 2027 target for scanning capability. A capability target, not a guarantee: before putting a 2D barcode on retail packaging, ask the retailer what the checkouts read today, and keep the linear identification they require.
A readable barcode can still be wrong
It is the same problem as GS1-128, and with the same root: an encoder without GS1 validation turns wrong data into a perfectly readable symbol. A thirteen-digit GTIN inside an (01) that asks for fourteen, an expiry date written 31/12/2026 instead of 261231, a batch without a separator before the next field — all of that draws a pretty square that the scanner decodes and that the system on the other side cannot interpret.