GS1 2D barcodes carry a product’s GTIN plus extra data, such as batch, expiry date and serial number, in a small square code. They are used to track medicines and medical devices, and retail is moving to them at checkout through the GS1 Sunrise 2027 effort. One code can serve the supply chain, the checkout and, with a web link, the shopper.
Choose GS1 DataMatrix for healthcare and industrial labels that are read by scanners. Choose GS1 Digital Link QR for consumer packs, so phones open a web page and checkouts still read the GTIN. GS1 QR with plain AI data and GS1 DotCode fit narrower cases, such as high-speed printing lines.
6 barcode types in GS1 2D Codes
Which GS1 2D Codes barcode should I use?
| Barcode type | Allowed data | Best for |
|---|---|---|
| GS1 DataMatrix | GS1 AIs (GTIN, expiry, batch) | Healthcare, pharma serialization |
| GS1 DataMatrix Rectangular | GS1 AIs | Narrow pharma labels |
| GS1 QR Code | GS1 AIs | Product info + URL |
| GS1 Digital Link QR | GS1 Digital Link URI | Sunrise 2027: QR replacing EAN at POS |
| GS1 Digital Link Data Matrix | GS1 Digital Link URI | Product packaging |
| GS1 DotCode | GS1 AIs | Tobacco traceability (EU TPD) |
Element Strings vs GS1 Digital Link URIs
GS1 2D codes encode data in one of two syntaxes. GS1 DataMatrix, GS1 QR and GS1 DotCode use element strings: Application Identifiers and values, starting with an FNC1 character, the same format as GS1-128. GS1 Digital Link codes instead encode a web address that contains the same keys, for example a domain followed by /01/ and the GTIN, then /10/ and the batch.
Element strings are made for scanners in the supply chain and give no web link. A Digital Link URI works for both: a phone opens the page, and a checkout or warehouse scanner set up for Digital Link extracts the GTIN and other data.
Where GS1 DataMatrix Is Required in Healthcare
Under the EU Falsified Medicines Directive, prescription medicine packs carry a Data Matrix with a product code, serial number, batch and expiry date, and GS1 DataMatrix is the common way to meet that. GS1 DataMatrix is also a widely used carrier for medical device UDI labels.
Typical data on a pack is (01) GTIN, (17) expiry date, (10) batch or lot and (21) serial number. Many regulators expect the same data printed as human-readable text next to the code.
Moving to 2D at Retail Checkout
GS1's Sunrise 2027 work aims for retail checkout scanners to read 2D codes as well as EAN and UPC. For consumer packs, GS1 recommends QR codes with GS1 Digital Link syntax rather than QR codes with plain element strings, so shoppers and scanners get the same code.
During the transition most brands keep the EAN or UPC on the pack alongside the 2D code, because not every store can read 2D yet.
Getting GS1 2D Data Right
- Dates use YYMMDD; a day of 00 means the last day of the month
- Put fixed-length AIs such as (01) and (17) before variable-length ones such as (10) and (21) to save separator characters
- The GTIN must have a correct check digit; QRCodeChamp validates it as you type
- For Digital Link, use a domain you control or the GS1 resolver, and keep the path stable because printed packs cannot be changed
- GS1 DotCode suits high-speed inkjet printing where cells are printed as separate dots
Common Mistakes with GS1 2D Barcodes
- Printing a plain Data Matrix or QR code with GS1-looking text; without FNC1 or Digital Link syntax, scanners do not treat it as GS1 data
- Typing the parentheses around AIs into the encoded data
- Pointing a QR code to a normal web page without the GTIN in the path, so checkout scanners cannot use it
- Dropping the linear barcode before every retailer can scan 2D
- Using a GTIN you have not licensed from GS1
How to Create a Barcode in 3 Steps
Choose a barcode type
Select a category on the left (e.g. Linear Codes), then the exact type like Code-128.
Enter data & customise
Type your data — we check it live and add check digits. Adjust size, font and colors.
Download or print
Get PNG, JPG, SVG, PDF or EPS, or print a full sheet of labels in one click.
Why Use QRCodeChamp Barcode Generator
125+ barcode types
Linear, 2D, GS1, postal, healthcare and payment codes.
Live validation
Friendly errors with one-click fixes and automatic check digits.
Print-ready PDF
Exact mm sizes, label sheets (Avery, A4, 4×6 thermal).
Bulk barcodes
Paste a list or generate number sequences.
Choose the Type of Barcode You Need
Not sure which barcode to use? Start with what you need it for — we’ll pick the right type.
GS1 2D Codes FAQs
They use the same symbol. GS1 DataMatrix starts with an FNC1 character and follows GS1 Application Identifier rules, so any GS1 system knows what each field means. Plain Data Matrix can hold any text with no fixed structure.
It is a normal QR code symbol, but the link follows GS1 rules: the GTIN and other keys sit in the path with their AI numbers. That structure is what lets checkout and warehouse scanners read product data from it.
You can, but GS1 advises using the Digital Link syntax on consumer packs. A QR code with plain element strings shows meaningless text when scanned with a phone.
For now, usually yes. Many stores cannot yet read 2D at checkout, so brands print both until their retailers confirm 2D scanning.
Typically the GTIN (01), expiry date (17), batch number (10) and serial number (21). Some countries add a national reimbursement number; check your market's rules.
