GS1 Digital Link explained

How a GS1 Digital Link puts a product's GTIN, batch and expiry into a web address that both phones and store checkouts can read.

A GS1 Digital Link is an ordinary web address with a product’s identifiers in standard places, such as https://id.gs1.org/01/09506000134352/10/ABC123?17=271231. Put it in a QR code, and a phone opens it as a web page, while a store’s scanner can read the same code for the GTIN, batch and expiry date.

The format is defined by GS1’s Digital Link URI Syntax standard (release 1.7.0 at the time of writing). Taking the example above apart:

Part Example Meaning
Domain https://id.gs1.org GS1’s resolver, or the brand’s own website
/01/ /01/09506000134352 GTIN, the product number, written with 14 digits
/22/ (not used here) Consumer product variant
/10/ /10/ABC123 Batch or lot number
/21/ (not used here) Serial number of this one item
?17= ?17=271231 Expiry date, YYMMDD

A few rules keep it machine-readable:

  • The GTIN goes in the path after /01/. Shorter GTINs (8, 12 or 13 digits) are padded with leading zeros to 14.
  • Qualifiers are optional, but those present follow a fixed order: /22/, then /10/, then /21/.
  • Batch, lot and serial values are 1 to 20 characters.
  • Other data, such as the expiry date, goes in the query string as key=value pairs, using the same numbers as GS1 Application Identifiers.

The domain can be anything. A brand can use https://example.com/01/… on its own site and still follow the standard.

Resolvers

When you open a Digital Link, the website at that domain answers. A resolver is a web service that reads the identifiers in the path and decides where to send you: a product page, instructions, ingredients or a recall notice for that batch. GS1 runs one at id.gs1.org, and brands can run their own.

Because the identifiers sit in fixed places, software can read them without opening the page: a checkout or warehouse scanner learns the GTIN and expiry date from the address alone.

How it relates to the GS1 element string

GS1 data has been printed in GS1-128 and GS1 DataMatrix barcodes for years, as an element string: Application Identifiers followed by values. The example link holds the same data as:

(01)09506000134352(17)271231(10)ABC123

The numbers are the same Application Identifiers in both forms: 01 for the GTIN, 10 for batch or lot, 21 for serial, 17 for expiry, as listed in the GS1 General Specifications. The Digital Link writes them as a web address, so a phone camera can do something useful with the code too. Software can convert between the two forms.

Why retail is moving to 2D codes

A linear EAN or UPC holds only the GTIN. A 2D code can also carry the batch and expiry date, which helps stores with recalls, stock rotation and checking for expired goods at the till, and gives shoppers a page to open.

GS1 has set an industry ambition for retail checkouts to read 2D barcodes by the end of 2027, called Sunrise 2027 in the US. GS1 describes it as a milestone for retail readiness: the first step is scanners that can read a 2D code and pick out the GTIN. The two 2D codes in GS1’s retail guidance are GS1 DataMatrix and a QR code carrying a GS1 Digital Link. Linear barcodes stay on many packs during the transition.

What scanners show

A phone camera usually treats a Digital Link as a link and offers to open it. A scanner that understands GS1 can show the fields instead.

QR App for Android reads a Digital Link into readable fields: the GTIN (with a check digit check), batch or lot, serial number and dates such as expiry. It also shows the element string with a copy button. Since any website can make a link in this format, it reminds you that the details come from the link itself, and it runs its usual link check on the address.

You need a GTIN your company licensed from GS1 for the product; nobody else can issue one for you.

  • QR App’s Create tab has a Product link type: enter the GTIN (it checks the check digit), an optional batch or lot, serial number and expiry date, and the website (id.gs1.org or your own, over https). The code is plain by default, and the app shows the smallest width to print it on packaging.
  • If you already have the full address, you can paste it into the generator on this site as a link.

For packaging, print it dark on light, without a logo or gradient, and test it at its final size. See QR code size for printing for the basics.

Questions and answers

Do I need to be a GS1 member to make a GS1 Digital Link?

To put one on a product you sell, you need a GTIN your company licensed from GS1 for that product. The web address itself can be on GS1's id.gs1.org or on your own domain.

Does a Digital Link QR code replace the EAN or UPC barcode?

Not yet in most places. GS1's guidance for the transition expects many products to carry both, so check with your retailers and your local GS1 office before dropping the linear barcode.

What does ?17= mean in a product link?

17 is the GS1 Application Identifier for the expiry date. The value is written as YYMMDD, so 17=271231 means 31 December 2027.

Can a store checkout read a Digital Link QR code today?

It depends on the scanner and its software. Camera-based scanners can be updated to read 2D codes; older laser scanners read only linear barcodes.

Sources