Black Friday
--Days
--Hrs
--Min
Claim
Packaging guide

Variable data and serialised QR codes for packaging

One QR code across a whole product range is easy to print. A different code per batch or per unit takes more planning: a data file, a print process that can change the code on every pack, and checks to make sure each code matches its row. This guide covers that workflow from spreadsheet to press.

Last updated

1 row

in the data file per code

01 · 10 · 21

GS1 keys for GTIN, batch, serial

SVG/PDF

vector files for print

3

check-scan points per run

What is a variable data QR code?

A variable data QR code is a code that changes from one pack to the next, so each batch or each unit carries its own. The codes are generated from a data file, usually a spreadsheet with one row per code, and printed by a press or label printer that can change the image on every print.

In short

  • Choose the level first: one per SKU, per batch or per unit.
  • One row in the data file equals one code.
  • GS1 Digital Link puts GTIN, batch and serial in the link.
  • Check-scan the start, middle and end of every run.
4 steps

From spreadsheet to press in four steps

app.qrbold.com

Setup

Decide the level
Build the data file
Generate the codes
Proof and check-scan

Variable data at a glance

The decisions to make before you talk to a printer.

Per SKUOne code per product. Static print, no variable data needed
Per batch or lotOne code per production run. Changes between runs
Per unit (serialised)One code per item. Changes on every print
Data fileCSV or spreadsheet, one row per code
GS1 link formatDomain, then /01/GTIN, /10/batch, /21/serial
Print methodsDigital press, inkjet coder or thermal label printer
Quality checkCheck-scans per run; ISO/IEC 15415 grading where required

Static, batch or serialised

A code per SKU is printed like any other artwork, because every pack of that product is the same. Variable data starts when the code has to change within a print run.

LevelWhat changesGood for
Per SKUNothing within a runProduct pages, instructions, per-product scan counts
Per batch or lotBetween production runsRecalls, freshness, batch traceability
Per unit (serialised)On every packAuthentication, warranty registration, anti-counterfeiting

Pick the lowest level that does the job. Serialising every unit gives the most detail, but it also means the most data, the most codes to manage and a print process that can handle it.

Build the data file

The data file drives everything. Each row becomes one code, so mistakes in the file become mistakes on the pack.

  • One row per code. For a batch run that may be a handful of rows. For serialised units it is one row for every item you will print.
  • Unique identifiers. Serial numbers must never repeat for the same product. Generate them in sequence or at random, but check for duplicates before export.
  • A column for each part. Keep GTIN, batch, serial and expiry in their own columns rather than one combined field. It makes checking much easier.
  • Plain text, no formatting. Spreadsheets drop leading zeros from GTINs and turn long numbers into scientific notation. Format those columns as text.

GS1 Digital Link serials

For retail products, GS1 Digital Link is the standard way to put product data in a QR code. The code holds a web address with the identifiers built into the path, so a phone opens a page and a retail scanner can read the GTIN at checkout.

Each part has a short number called an Application Identifier. 01 is the GTIN, 10 is the batch or lot and 21 is the serial number. A serialised link looks like this: your domain, then /01/ and the GTIN, then /10/ and the batch, then /21/ and the serial. Expiry date (17) is added after a question mark.

The GS1 QR code generator builds these links from your GTIN. Its label studio takes a spreadsheet of products and lays out print-ready labels with the size set in millimetres. If you are moving from barcodes, see migrating from barcode to QR code.

Working with your printer

There are two ways to get variable codes onto packs. Ask your printer which they support before you generate anything.

Smaller runs

You send the codes

Generate every code yourself and send the image files with the data file. Simple to check, but large runs mean a lot of files.

Larger runs

You send the data

Send only the data file. The printer’s software builds each code at print time. Best for large serialised runs, but you must agree the exact link format.

Either way, agree the code size, the white border, the error correction level and where the code sits on the pack. Ask for a proof of the first few rows with the decoded value printed beside each code, so you can check they match. For sizing, see the QR code minimum size guide.

Check-scan QA

A variable data run can fail in ways a single code never does. A shifted column, a skipped row or a print head running low can put the wrong code on thousands of packs.

On every run

  • Scan the first packs and match each code to its row
  • Scan samples from the middle and the end of the run
  • Check for duplicate codes in the scanned sample
  • Test on real packaging, not just the proof sheet
  • Keep the data file and scan log with the batch record

For regulated products, or where retailers require it, grade print quality with a verifier against ISO/IEC 15415. A phone scan tells you the code reads. A verifier tells you how much margin it has.

Static or dynamic codes

A static code prints the final address directly. A dynamic code prints a short link that redirects, so you can change the destination later and see scans for each code. Dynamic codes are shorter, which keeps the grid simple at small sizes.

For serialised runs, check how many dynamic codes your plan includes before you start. Per-unit codes add up quickly. See pricing for plan limits.

Variable data QR codes questions, answered

The questions that come up in real evaluations, answered directly.

Get started

Generate a code for every row

Upload a spreadsheet and get a separate, trackable QR code for each SKU, batch or unit, ready for print.

Start free

No credit card required