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.
| Level | What changes | Good for |
|---|---|---|
| Per SKU | Nothing within a run | Product pages, instructions, per-product scan counts |
| Per batch or lot | Between production runs | Recalls, freshness, batch traceability |
| Per unit (serialised) | On every pack | Authentication, 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.
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.
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.