GS1 Digital Link QR Code and Data Matrix in Java
Encode one web address that carries the GTIN and other identifiers in a QR Code or Data Matrix from Java.
How it works
A single QR Code or Data Matrix can carry GS1 identifiers such as the GTIN together with a web address. It is part of the GS1 Sunrise 2027 initiative and, unlike other GS1 symbols, it does not use the hidden FNC1 character; it is encoded as a plain URL.
- Example web address: https://www.idautomation.com/01/00790045019623/21/12345678, with a GTIN and a serial number in the path
- The link can also carry other data such as expiration dates and best-before dates
- All IDAutomation QR Code and Data Matrix products support GS1 Digital Link
- The brand owner retains control over the information the link returns
In Java
Because it is a standard URL, a Digital Link needs no special FNC1 handling.
QRCode qr = new QRCode();
qr.setDataToEncode("https://example.com/01/00790045019623/21/12345678");
// a plain URL: no FNC1 and no tilde codes are neededFrequently asked questions
What is a GS1 Digital Link?
A web address that carries product identifiers such as a GTIN and serial number, which can be encoded in a QR Code or Data Matrix.
Does it replace the UPC?
BarcodeFAQ says it can replace the separate UPC barcode and QR Code commonly printed on packaging.
Where can I validate links?
BarcodeFAQ links to a third-party tool for creating and validating GS1 Digital Links.
Related GS1 pages
Learn more at BarcodeFAQ.com
The Internet Barcode FAQ explains GS1 Digital Link in depth.