What Is 2D Barcode (GS1 DataMatrix)?
A 2D barcode, such as a GS1 DataMatrix or a QR code with GS1 Digital Link, stores the product number plus extra data like batch, expiry date and serial number in a small square pattern.
Most products on the shelf still carry the striped EAN-13 barcode, but small square patterns are becoming increasingly common on medicine packs and some food packaging. These patterns are 2D barcodes, or two-dimensional barcodes. GS1 DataMatrix and QR codes containing a GS1 Digital Link are the main types used in retail. While a traditional barcode carries only the product number, a 2D barcode can store additional information such as batch number, expiry date and serial number in the same small space.
How does a 2D barcode work?
The data is structured using short codes called application identifiers. For example, (01) indicates the product's GTIN, (10) the batch number and (17) the expiry date. The square pattern is read by camera-based (imaging) scanners; older laser scanners cannot read these codes. Moving to 2D barcodes therefore also requires till scanners and software to be updated.
2D codes have long been established on medicines under pharmaceutical track-and-trace systems, such as the EU Falsified Medicines Directive and Türkiye's Pharmaceutical Track and Trace System. GS1 is also running a global transition programme, known as Sunrise 2027, to make retail checkouts capable of reading 2D barcodes. For the retailer, the benefit is being able to read more than the product number at the till: it becomes possible to block the sale of expired products, track stock by batch and record waste more accurately.
Example of a 2D barcode in retail
A hypothetical example: a supermarket chain asks its suppliers to print 2D barcodes containing the expiry date on deli products. Till scanners are replaced with camera-based models. If a product scanned at the till is past its date, the system stops the sale and shows a warning. When a supplier issues a recall notice, only products from the affected batch are removed from the shelves.
Points to watch with 2D barcodes
- During the transition, having both a linear barcode and a 2D barcode on packs prevents scanning problems at the till.
- Till scanners and POS software should be tested in advance to ensure they can process 2D data.
- Print quality and the position of the code on the pack directly affect readability.
- QR codes used for marketing and GS1-compliant product barcodes should be treated as separate things.
Related terms
EAN-13 barcode, lot traceability, traceability and FEFO.
Last updated: · Source: Retail EMEA Retail Glossary
When quoting, please cite: "What is 2D Barcode (GS1 DataMatrix)?", Retail Glossary, Retail EMEA — https://retailemea.com/glossary/what-is-a-2d-barcode-gs1-datamatrix/