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.

EAN Studio · Updated November 2026

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 MatrixGS1 DataMatrix
First characterNone mandatoryFNC1, always
DataFree textApplication Identifiers
VersionSeveralECC 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.

EAN Studio validates the string before drawing. The GTIN check digit, the length and the type of each identifier, the dates in YYMMDD, the separators where they have to be. If the string is not right, no barcode comes out — and it says which identifier is wrong.

GS1 DataMatrix is a Pro feature

GS1 DataMatrix, GS1-128 and GS1 DataBar are part of the Pro plan. Plain Data Matrix and QR Code are free.

See the Pro plan Free Data Matrix generator

Frequently asked questions

What is the difference between Data Matrix and GS1 DataMatrix?

GS1 DataMatrix uses Data Matrix ECC 200 with an FNC1 in the first position and the data organised by GS1 Application Identifiers. It is that FNC1 that leads the scanner to announce the barcode 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.

Does GS1 DataMatrix use a special version?

It uses ECC 200, which is the only version of Data Matrix that GS1 specifies. It is also the only one with Reed-Solomon error correction, which recovers data within certain limits — it does not guarantee that any scratched or badly printed barcode will be read.

How much information fits in a GS1 DataMatrix?

In the largest square, 144 by 144 modules, 2,334 alphanumeric characters or 3,114 digits fit. In the largest rectangle, 71 alphanumeric or 96 digits. These are maxima that depend on the encoding. In the 10 by 10, six digits is the capacity without FNC1: in GS1, with the initial FNC1, four digits are left — enough for a (90) or a (91) with a two-digit value, not for an (01) with the GTIN.

Do I need a separator between the fields?

It is needed after a field without a predefined length when another one follows, as happens with batch (10) and serial (21). The (01) and the (17) do without it. It is not enough for the field to have a fixed length: the (426) has three digits of data and needs a separator if another field follows. The separator may be FNC1 or GS; on the scanner output it is transmitted as GS.

Where is GS1 DataMatrix used?

In healthcare above all: serialised medicines, medical devices and instruments marked directly on the piece. Also in industrial components, in retail during the transition to 2D barcodes, and anywhere there is no room for a linear barcode and batch, expiry or serial number have to travel.

Can I use it at the supermarket checkout?

Yes, if the retailer has readers and systems ready for GS1 DataMatrix. It is part of GS1's transition to 2D barcodes at the point of sale, with the 2027 target for scanning capability. During the transition, keep the linear identification the retailer requires and do not assume universal compatibility.

What happens if the string is written wrong?

An encoder without GS1 validation draws it all the same: out comes a square that can even be read, and what fails is the system on the other side, which cannot separate or interpret the fields. Being readable is not enough to be right. EAN Studio validates the string before drawing and, if it is not right, draws nothing and says which identifier is wrong.