GS1 Digital Link generator: GTIN check, URL and QR code
Enter your product's barcode number and get a GS1 Digital Link address and QR code for your packaging, built to the GS1 URI syntax. The check digit is verified before anything is made.
Updated
GTIN-8, 12, 13 or 14.
Use your own domain if it resolves Digital Links.
How to use it
- Enter the GTIN
Type the number printed under your barcode: GTIN-8, GTIN-12 (UPC), GTIN-13 (EAN) or GTIN-14, digits only.
- Fix the check digit if needed
If the last digit is wrong, the tool shows the correct one. A wrong check digit usually means a typo somewhere in the number.
- Add batch or serial (optional)
Add a batch/lot number for recalls and freshness information, or a serial number for item-level tracking.
- Choose the domain
Keep id.gs1.org, or enter your own domain so you control where scans go.
- Download the QR code
Download the code, print a proof at the real size on your packaging material and scan it with two phones.
What is a GS1 Digital Link?
GS1 Digital Link is the GS1 standard for writing product identifiers such as the GTIN, with batch numbers, serial numbers and expiry dates, as an ordinary web address. Put that address in a QR code and one symbol does two jobs: a phone camera opens it as a link to product information, and GS1-aware scanning software can read the GTIN and other data from it.
GS1 presents this as part of retail's move to 2D barcodes, with a single code on the pack serving both the checkout and consumers looking for instructions, certifications, promotions or traceability information. GS1 also notes that in healthcare the Digital Link URI is not encoded in the 2D barcode; GS1 DataMatrix is used instead.
How a GS1 Digital Link URL is built
The path uses GS1 Application Identifiers as labels: 01 for the GTIN, 10 for the batch or lot, and 21 for the serial number. The order is fixed: GTIN first, then batch, then serial. Since version 1.4.0 of the URI syntax standard, the GTIN is always written with 14 digits, so shorter GTINs get leading zeros.
- The check digit is the last digit of every GTIN. GS1's method: from the right, multiply the digits alternately by 3 and 1 (starting with 3 next to the check digit), add them up, and subtract the total from the next multiple of ten. For 629104150021 the sum is 57, so the check digit is 3.
- id.gs1.org or your own domain. The standard defines the canonical form on id.gs1.org, and also allows any domain, so brands stay in control of where scans lead. Both are valid GS1 Digital Link URIs.
| You enter | Becomes | Example result |
|---|---|---|
| GTIN-13 9520123456788 | 01/09520123456788 (one leading zero) | https://id.gs1.org/01/09520123456788 |
| GTIN-12 (UPC) 036000291452 | 01/00036000291452 (two leading zeros) | https://id.gs1.org/01/00036000291452 |
| GTIN-8 96385074 | 01/00000096385074 (six leading zeros) | https://id.gs1.org/01/00000096385074 |
| Batch/lot ABC123 | /10/ABC123 after the GTIN | https://id.gs1.org/01/09520123456788/10/ABC123 |
| Serial 12345 | /21/12345 after the batch | https://id.gs1.org/01/09520123456788/10/ABC123/21/12345 |
Static GS1 QR code or a managed one?
The QR code made here is static: the address is fixed, and what a scan shows depends on whatever answers at that domain. If you use your own domain, you need something there that recognizes /01/<GTIN> addresses and sends each one to the right page.
BN Shortener can do that job. Give a short link a GTIN (check digit verified, stored as GTIN-14) and it answers at the standard form https://yourdomain/01/<GTIN-14> on your custom domain, accepting batch, serial and expiry qualifiers. You can change the destination at any time without touching the printed pack, and each scan counts as a click in your analytics. On Pro you can add smart rules and A/B tests to the same link. The Free plan includes one custom domain. BN Shortener does not check GTINs against the GS1 registry, so use numbers your company holds. More in our GS1 Digital Link QR code guide.
Sources
- GS1 Digital Link Standard: URI Syntax, release 1.7.0, checked 2026-10-23
- GS1 Digital Link, GS1, checked 2026-10-23
- How to calculate a check digit manually, GS1, checked 2026-10-23
More free tools
Questions
What is the difference between GTIN-12, GTIN-13 and GTIN-14?
They are different lengths of the same identifier: GTIN-12 is the number in a UPC barcode, GTIN-13 the number in an EAN-13 barcode, GTIN-8 a short form for small packs, and GTIN-14 identifies cases and other trade units. In a GS1 Digital Link all of them are written as 14 digits.
Why do I need leading zeros?
The GS1 Digital Link URI syntax standard expects the GTIN in 14 digits, so GTIN-8, GTIN-12 and GTIN-13 are padded with leading zeros. The number itself does not change.
My check digit is wrong. What now?
Check the number against the barcode on the pack. A wrong check digit almost always means a mistyped or swapped digit. The tool shows which check digit the other digits produce.
Can a checkout scanner read a GS1 Digital Link QR code?
Only if the point-of-sale software supports GS1 Digital Link. Ask your retail partners whether their checkouts read it before you remove the linear barcode; until then, print the QR code alongside it.
Do I need my own domain?
No, id.gs1.org is valid. Your own domain lets you decide where each scan goes and change it later, and keeps your brand in the address people see.
Does this tool check that I own the GTIN?
No. It checks the format and the check digit only, in your browser. GTINs are allocated to companies through GS1, so use numbers your company holds.
Try it on your next link
The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.