Skip to content

GS1 Digital Link: QR code syntax, a worked example and how to generate one

GS1 Digital Link is a GS1 standard that writes product identifiers, such as the GTIN, batch and serial number, into an ordinary web address: https://id.gs1.org/01/09506000134352/10/ABC123. Put that address in a QR code and a phone opens a web page, while systems that need the GTIN can still read it. LynkPIM's Digital Product Passport add-on creates a GS1 Digital Link for every product with a GTIN.

By Binu Mathew, founder of LynkPIM. Checked 8 November 2026 against the GS1 Digital Link standard and EUR-Lex. How articles are checked

How a GS1 Digital Link URL is built

A GS1 Digital Link is a web address with a fixed pattern: a domain, then pairs of a GS1 Application Identifier (AI) and its value. The rules are in the GS1 Digital Link URI Syntax standard (release 1.7.0, ratified August 2026). The parts you use most:

PartApplication IdentifierWhere it goesExample
DomainNoneStart of the URL: your own domain or a resolver such as id.gs1.orghttps://id.gs1.org
GTIN01Path, always 14 digits (pad GTIN-8, -12 and -13 with leading zeros)/01/09506000134352
Batch or lot10Path, after the GTIN (1 to 20 characters)/10/ABC123
Serial number21Path, after the batch (1 to 20 characters)/21/12345
Expiry date17Query string, as YYMMDD?17=271231

Order matters: after the GTIN comes the batch, then the serial number; you may leave either out, but not reverse them. Source: GS1 Digital Link URI Syntax.

A worked example, step by step

Take a product with the 13-digit GTIN 9506000134352 (an example number GS1 uses in its own documents), made in batch ABC123, with serial number 12345 and an expiry date of 31 December 2027.

  1. 1Pad the GTIN to 14 digits with a leading zero: 09506000134352. Check the last digit with a GTIN check digit calculator.
  2. 2Add the GTIN to the domain with AI 01: https://id.gs1.org/01/09506000134352. This alone identifies the product model, and is enough for most marketing and passport uses.
  3. 3Add the batch with AI 10: https://id.gs1.org/01/09506000134352/10/ABC123.
  4. 4Add the serial number with AI 21 for item-level identification: https://id.gs1.org/01/09506000134352/10/ABC123/21/12345.
  5. 5Add the expiry date as a query parameter: https://id.gs1.org/01/09506000134352/10/ABC123/21/12345?17=271231.
  6. 6Swap id.gs1.org for your own domain if you run your own resolver: https://example.com/01/09506000134352/10/ABC123/21/12345?17=271231. The meaning is the same.

How to generate a GS1 Digital Link QR code

  1. 1Get your GTINs from your GS1 member organisation. A GTIN belongs to the brand owner who licensed the company prefix; do not reuse numbers you did not license.
  2. 2Decide the level you need: the GTIN alone for product-level pages, plus batch or serial number when each batch or item needs its own page (for example recalls, warranties or item-level passports).
  3. 3Choose the domain. Your own domain keeps control with you; a resolver redirects the URL to the right page and can offer several links (product page, instructions, passport) for the same code. See the GS1 Conformant Resolver standard.
  4. 4Make the URL answer: set up the redirect or resolver so the address opens the page you want, and keep it working for the product's whole life.
  5. 5Encode the full URL in a QR code with a generator that writes the address exactly as typed. Use a static code: a short-link redirect hides the /01/ path, so scanners can no longer read the GTIN from the code.
  6. 6Test before printing: scan with several phones, check the size and quiet zone on the real label, and confirm the page opens for every batch and serial you encode.

Sunrise 2027: QR codes at the checkout

Sunrise 2027 is a GS1 US initiative for the move from one-dimensional UPC barcodes to 2D barcodes. GS1 US asks retailers to make their point-of-sale scanners read 2D codes and extract the GTIN, and asks brands to move their on-pack QR codes to GS1 Digital Link. One GS1 Digital Link QR code can then serve the checkout scanner, the shopper's phone and, in the EU, the product passport.

How LynkPIM creates GS1 Digital Links

LynkPIM's Digital Product Passport add-on builds a GS1 Digital Link for every product with a valid GTIN: https://dpp.lynkpim.app/01/ followed by the GTIN padded to 14 digits. Scanning it opens the product's published passport. If you run your own resolver, store your own Digital Link URL on the product and LynkPIM uses that instead. Batch and serial numbers are kept with the passport data.

The DPP add-on costs $299 a month on top of the PIM, which is free up to 25 products. See what PIM software does and LynkPIM pricing.

Frequently asked questions

What is a GS1 Digital Link?

A GS1 standard for writing product identifiers into a web address, for example https://id.gs1.org/01/09506000134352. The URL carries the GTIN and optionally the batch and serial number, so one QR code can open a web page and still be read by systems that need the GTIN.

How do I generate a GS1 Digital Link?

Pad your GTIN to 14 digits, add it to a domain after /01/, add /10/ and the batch or /21/ and the serial number if you need them, and put dates such as expiry (17) in the query string. Then encode the full URL in a static QR code and make sure the domain answers.

Is a GS1 Digital Link QR code different from a normal QR code?

The QR code itself is the same; what differs is the content. A GS1 Digital Link QR code holds a URL that follows GS1's syntax, so the GTIN and other identifiers can be read from it. A normal QR code can hold any URL or text.

Do I need GS1 membership to use GS1 Digital Link?

You need GTINs, and GTINs come from licensing a company prefix through your GS1 member organisation. The URL syntax is a free, published standard, and you can use your own domain.

Can I use my own domain instead of id.gs1.org?

Yes. Any domain can be used as long as the path follows the syntax, for example https://example.com/01/09506000134352. Your domain then has to answer those URLs, directly or through a resolver.

How does a GTIN relate to a Digital Product Passport?

The GTIN identifies the product model. EU rules require a passport to be linked to a persistent unique identifier through a data carrier, and a GS1 Digital Link QR code combines both: the GTIN (plus batch or serial where required) is the identifier, and the URL opens the passport.

What is Sunrise 2027?

A GS1 US initiative to move retail from one-dimensional UPC barcodes to 2D barcodes such as GS1 Digital Link QR codes, with point-of-sale scanners able to read the GTIN from them.

Related pages

Generate passports and Digital Links from your product data

Keep GTINs, materials and passport data in one record, and publish a passport per product with its own GS1 Digital Link.