How to turn a GTIN into a QR code

2026-05-20 · Updated 2026-08-05 · Onpack

Turning a GTIN into a QR code correctly takes five minutes, and the difference between doing it correctly and pasting digits into a generic generator is the difference between a code that works at checkouts, in browsers and with regulators, and a code that shows shoppers a meaningless number.

Step 1: verify the GTIN itself

The digits under your linear barcode are the GTIN: 8, 12, 13 or 14 of them. The final digit is a check digit computed from the rest, so any transcription error surfaces as a validation failure. The Onpack generator validates as you type and tells you the correct last digit when one is wrong; upstream, your numbers come from your GS1 licence, which stays untouched by any of this.

Step 2: wrap it as a Digital Link, not a bare number

The correct payload is a GS1 Digital Link URI: the GTIN as a path segment of a URL, like onpack.link/01/09506000134352. That form is simultaneously a working web address for phones and a standards-parseable identity for checkout systems chasing Sunrise 2027. Add batch (/10/), serial (/21/) or expiry (/17/) segments only when your operations will use them; the syntax guide covers the grammar.

Step 3: generate print-ready artwork

A packaging QR is a measured object, not a screenshot. It needs its four-module quiet zone, a module size within the retail range, and vector output for the printer. The generator returns an SVG with the quiet zone baked in, the exact printed width in millimetres, the GS1 element string for the human-readable line, and, given your label width, a verdict on whether the QR and your linear barcode fit within the 50 mm dual marking distance.

Step 4: make the URL answer

A printed URL that returns nothing is worse than no URL. Register the product on a resolver so scans resolve: to your product page if you have one, or to a hosted page if you do not, with machines getting structured data automatically. On Onpack this is one form or one API call, free.

Step 5: proof it like it is packaging

Print at final size, scan with a phone from arm's length, and run the returned artwork through the pre-press checklist. Then repeat per SKU, or bulk-generate the catalogue via the API in one pass.

Common questions

Can I just paste my GTIN into any QR generator?

You can, but a QR containing a bare number is nearly useless: phones show digits, not a page. The standards-correct move is encoding the GTIN inside a Digital Link URL, which works for phones, checkouts and machines.

Does the check digit matter when generating?

Yes. The last digit of a GTIN is computed from the others; a typo makes the whole code invalid to retail systems. The Onpack generator validates it and tells you the correct final digit.

What format should I download for print?

Vector, SVG ideally, with the quiet zone included. Scale it up freely; never scale below the minimum module size, and never let design elements into the quiet zone.

One QR per SKU or per batch?

Per SKU is the baseline: one code per GTIN. Add batch or serial segments when you need per-lot recalls or per-item authenticity, which changes the printed code per batch or per unit.

Print a code that stays alive

Generate a conformant GS1 Digital Link for any GTIN, check it fits your label, and host the page behind it. Free at any volume.

Create a code