Repository navigation
GS1 Digital Link URIs
GS1 Digital Link QR Code and GS1 Digital Link Data Matrix take a GS1 Digital Link URI as their data: the identifiers of the GS1 Application Identifier standard format, written as a web address that a phone can open.
A GS1 Digital Link URI is made up of:
- A scheme of
http://orhttps://, in lower or upper case. - A domain, optionally followed by path elements of its own.
id.gs1.orgis GS1's resolver. - A primary key: a key's Application Identifier and value as path elements, such as
/01/09521234543213for a GTIN. - Any key qualifiers of that primary key as further path elements, in the order that the standard gives for that key, such as
/10/ABC123for a batch. - Any data attributes as a query string, such as
?17=261231for an expiration date.
Characters that a URI cannot carry are percent-encoded, such as %2d for a hyphen.
The structure is defined in the GS1 Digital Link Standard: URI Syntax.
GTIN 09521234543213:
https://id.gs1.org/01/09521234543213
GTIN 09521234543213; Batch ABC123; Serial 12345:
https://id.gs1.org/01/09521234543213/10/ABC123/21/12345
GTIN 09521234543213; Batch ABC123; Expiration Date 31 December 2026:
https://id.gs1.org/01/09521234543213/10/ABC123?17=261231
SSCC 106141411234567897:
https://id.gs1.org/00/106141411234567897
GTIN 09521234543213 under a domain and path of the brand's own:
https://example.com/products/01/09521234543213
GTIN 09521234543213; Consumer Product Variant ABC-123; Internal XYZ/987, with percent-encoding:
https://id.gs1.org/01/09521234543213/22/ABC%2d123?99=XYZ%2f987
The structure of the URI is always checked. Input is refused if:
- The scheme is not
http://,https://,HTTP://orHTTPS://. - There is no domain or path.
- The path does not contain a valid primary key.
- The Application Identifiers in the path are not a valid key and qualifier sequence for the key, such as a serial before a batch.
- A percent-encoded character is not valid.
- A key qualifier appears in the query string rather than the path.
Unless the dontlint option is given, the following are also checked:
- Each Application Identifier in the query string must be a valid GS1 Digital Link data attribute.
- Each value must meet the structural rules for its Application Identifier, as given in the GS1 Barcode Syntax Dictionary, such as a correct check digit or a valid date. The Application Identifier definitions are provided in the GS1 General Specifications.
- Application Identifiers that are mutually exclusive are refused, such as (01) and (37).
Home | Download | Documentation (PDF) | Source | Support | Issues | Online Barcode Generator
Point of Sale
GS1 DataBar
- GS1 DataBar Omnidirectional
- GS1 DataBar Stacked Omnidirectional
- GS1 DataBar Expanded
- GS1 DataBar Expanded Stacked
- GS1 DataBar Truncated
- GS1 DataBar Stacked
- GS1 DataBar Limited
- GS1 North American Coupon Code
Supply Chain
- EAN-14
- ITF-14
- SSCC-18
- GS1-128
- GS1 DataMatrix
- GS1 DataMatrix Rectangular
- GS1 QR Code
- GS1 Digital Link Data Matrix
- GS1 Digital Link QR Code
- GS1 DotCode
Two-dimensional Symbols
- Aztec Code
- Compact Aztec Code
- Aztec Runes
- Data Matrix
- Data Matrix Rectangular
- Data Matrix Rectangular Extension
- DotCode
- Han Xin Code
- PDF417
- Compact PDF417
- MicroPDF417
- QR Code
- Micro QR Code
- Rectangular Micro QR Code
- Swiss QR Code
- EPC QR Code
One-dimensional Symbols
Postal Symbols
- Australia Post
- Canada Post PostBar
- CEPNet
- DPD Parcel Label
- Deutsche Post Identcode
- Deutsche Post Leitcode
- Japan Post
- Korea Post
- MaxiCode
- UPS MaxiCode
- Royal Mail
- Royal Mail Mailmark
- Royal Mail Mailmark 4-state
- Royal TNT Post
- UPU S10
- USPS Intelligent Mail
- USPS POSTNET
- USPS PLANET
- USPS FIM symbols
Pharmaceutical Symbols
- Italian Pharmacode
- Pharmacode
- Two-track Pharmacode
- PZN
- PPN-Code
- HIBC Code 39
- HIBC Code 128
- HIBC PDF417
- HIBC MicroPDF417
- HIBC QR Code
- HIBC Data Matrix
- HIBC Data Matrix Rectangular
- HIBC Codablock F
- HIBC Aztec Code
Less-used Symbols
- BC412
- Channel Code
- Codabar
- Codablock F
- Codablock A
- Code 11
- Code 16K
- Code 25
- Ultracode
- IATA 2 of 5
- Marks & Spencer
- Matrix 2 of 5
- Datalogic 2 of 5
- COOP 2 of 5
- Code 49
- Code One
- Grid Matrix
- Datastrip 2D
- MSI Plessey
- Plessey
- Anker Code
- PosiCode
- Telepen
- Telepen Numeric
- Kodak Patch Codes
- VIN
- LOGMARS
- DX Film Edge
- Aztec Mesas
GS1 Composite Symbols
- EAN-13 Composite
- EAN-8 Composite
- UPC-A Composite
- UPC-E Composite
- GS1 DataBar Omnidirectional Composite
- GS1 DataBar Stacked Omnidirectional Composite
- GS1 DataBar Expanded Composite
- GS1 DataBar Expanded Stacked Composite
- GS1 DataBar Truncated Composite
- GS1 DataBar Stacked Composite
- GS1 DataBar Limited Composite
- GS1-128 Composite
Raw Symbols
Partial Symbols