Variable data printing: serial numbers, codes, and versioning
Some jobs need every label to be a little different — a serial number here, a lot code there, a unique QR code on each pack, or a dozen SKU versions in one order. Variable data printing is how a digital press makes each piece unique without stopping to change a thing.
THE SHORT ANSWER
Variable data printing (VDP) changes some or all of the content on every printed label — a serial number, a lot code, a unique QR code, or an entire design version — inside a single digital run, with no new plates and no press stops. The press reads a data file and pulls the right content for each label as the web moves. It shines exactly where traditional plate-based printing struggles:
- Serialization — a unique serial or lot number on every unit for traceability
- Unique codes — a one-time QR or coupon code per pack for promotions and anti-counterfeiting
- Personalization — names, regions, or messages that differ piece to piece
- Many versions — multiple SKUs, flavors, or languages printed together instead of as separate jobs
What variable data printing is
Variable data printing — usually shortened to VDP — is a way of printing in which the artwork is not fixed. Instead, one or more elements on the label are swapped out for every single piece as it prints. On a conventional press, the image is locked into a physical plate or cylinder, so every impression is identical by design; to change the content you stop, remake tooling, and start again. VDP breaks that constraint. Because the image is composed digitally, the press can lay down a different serial number, barcode, name, or even a whole new layout on each label without ever pausing.
That single capability — every piece can be unique — is what makes VDP its own category rather than just "printing on a digital machine." It is almost always done on a digital press, because digital is the technology that skips the plate. The name describes the workflow, not the hardware: a data source drives the content, and the press renders each record in turn.
How variable data printing works
Under the hood, a VDP job is really two files working together: a template and a data source. The template is the artwork with placeholders — a spot reserved for the serial number, a frame where the unique QR code will sit, or a set of design variants keyed to a version name. The data source is a structured list, most often a spreadsheet or database export, where each row holds the values for one label.
The press (or the prepress software that feeds it) merges the two, record by record:
- Read a record. The system takes the next row of the data file.
- Compose the label. It drops that row's values into the template's variable fields — text, numbers, and any barcodes or QR codes generated from that data.
- Render and print. The composed image is sent to the digital engine and printed, then the web advances and the process repeats for the next record.
Because there is no plate to change between records, the press does not slow down to switch content. This is the fundamental difference from plate-based methods like flexography or gravure, where the image is fixed in tooling. If you want to understand why digital is the natural home for VDP — no tooling, easy versioning, quick turns — our overview of digital printing for packaging covers the trade-offs in full.
What variable data printing is used for
VDP earns its keep whenever "every label the same" is not an option. A few of the most common jobs:
| Use case | What changes on each label | Why VDP fits |
|---|---|---|
| Serialization & traceability | A unique serial, lot, or batch number — often as human-readable text and a barcode together | Every unit must be individually identifiable for track-and-trace, recalls, or authentication; no two labels can match |
| Unique promo & security codes | A one-time QR code, coupon code, or scratch-off style value per pack | Redemption tracking and anti-counterfeiting only work if each code is genuinely unique |
| Personalization | A name, region, message, or targeted image | Short, tailored runs that a plate-based job could never justify economically |
| Multi-version SKUs | The whole design — flavor, variant, size call-out, or language | Many small versions print in one continuous order instead of a separate setup for each |
Serialization is the classic example. Regulated categories and premium brands increasingly want a unique identifier on each unit so an item can be verified or traced back through the supply chain. Promotions are the flashier one: a campaign that puts a distinct QR code on every pack — driving each buyer to a personal entry, prize, or authentication check — is only possible because the code changes label to label. And the quietly practical case is versioning: a brand with several flavors or a bilingual market can run them all together rather than tooling up for each, which is one of the reasons short-run label buyers gravitate to digital in the first place.
The data and design behind a VDP job
The output is only as good as the inputs, and VDP puts more weight on the data than a normal print job does. Two things decide whether a variable run goes smoothly: a clean data file and codes that actually scan.
The data file. Supply a structured file — typically a CSV or a database export — with one row per unique piece and a column for each variable field. A few habits prevent most problems:
- One row equals one label, in the order you want them printed.
- Column headers map cleanly to the template's variable fields, with no stray blanks or duplicates.
- Values are consistent — no mixed date formats, no accidental extra spaces, no truncated serials.
- The record count matches the quantity you are ordering, so nothing runs short or over.
Errors in the data print faithfully as errors on the label, so the file is worth proofing as carefully as the artwork. Ask to see a data-merge proof — a sample of real records dropped into the template — before the full run.
The codes. When the variable element is a barcode or QR code, it has to remain scannable at every value, not just the one you checked. A dynamic code still obeys the same rules as any other: correct symbology, an adequate quiet zone, real dark-on-light contrast, and enough physical size for the print process. Those fundamentals are worth reviewing in our guide to barcode basics for packaging, because a code that is generated too small or with too little margin is the single most common reason variable codes fail at the point of sale. If you are moving toward 2D codes — the QR-with-GS1-Digital-Link direction retail is heading — the same discipline applies; see our note on GS1 Sunrise 2027 and 2D barcodes. Substrate matters too: a highly reflective or textured face stock can defeat a scanner even when the code is built correctly, which is one more reason to align the code design with your label material up front.
When variable data printing is worth it
VDP is not automatically the right call — it is the right call for a specific shape of job. The honest way to think about it is a trade between tooling and per-unit economics. Digital VDP removes plate and make-ready costs, so it wins decisively when runs are short, versions are many, or the content simply has to change on every piece. Plate-based printing, by contrast, tends to pull ahead on very long, unchanging runs where the one-time tooling cost is spread thin and the fixed image is a feature, not a limitation.
| Situation | Lean toward VDP (digital) | Lean toward plate-based (flexo/gravure) |
|---|---|---|
| Run length | Short to medium runs | Very long, stable runs |
| Number of versions | Many versions, or every piece unique | One or a few fixed versions |
| Does the content change? | Serials, codes, or names change per label | The same artwork throughout the run |
| Turnaround | Fast, frequent, or last-minute changes | Planned, predictable scheduling |
Notice that none of this is about a fixed break-even you can memorize. The cost picture shifts with your run length, how much of the design is variable, the substrate, and your finishing — so treat "is VDP worth it?" as a question to answer per job, not once and for all. The cleanest way to settle it is to price the actual work: put your quantity, version count, and material into a quote and compare. VDP is also frequently combined with digital's other strengths — versioned artwork and no tooling — so it rarely stands alone as a decision.
How PackOS handles versioned and variable artwork
Variable and versioned work is where a lot of production time quietly disappears — reconciling a data file against artwork, checking that every version's dieline and bleed still line up, and confirming the codes will scan. PackOS is built to take that friction out. When you upload artwork, it detects the structure, rebuilds an editable dieline, and produces a photoreal proof and an instant quote, so a multi-version or serialized run can be specified and priced without a manual back-and-forth for each variant. Because the model is parametric, a change that ripples across versions reflows cleanly instead of being redrawn one at a time. You can see the detection and quality checks that make this possible on the technology page. Variable data printing is part of our complete guide to label printing — start there for the full picture of sizes, materials, finishes, and formats, or price a versioned run directly with Quick Quote.
Frequently asked questions
What is variable data printing?
Variable data printing, or VDP, is a digital printing method that changes some or all of the content on every printed label — a serial number, a lot code, a unique QR code, or an entire design version — without stopping the press or making new plates. Each label pulls its content from a row in a data file.
What is variable data printing used for?
Common uses are serialization and traceability with a unique serial or lot number on every unit, promotions that need a unique QR or coupon code per pack, personalization such as names or regional messages, and printing many SKU versions or languages in a single run instead of as separate print jobs.
Does variable data printing cost more per label?
It depends on the job, and the answer is qualitative rather than a fixed rule. VDP removes plate and make-ready costs, so it tends to win on short runs and many versions, while plate-based printing can have more favorable per-unit economics on very long, unchanging runs. Run length, version count, and how much of the design changes all move the answer, so it is best to price the actual quantity.
Will a variable barcode or QR code still scan?
Yes, if the file is built correctly. Each code must be generated from valid data with the right symbology, an adequate quiet zone, real dark-on-light contrast, and enough size for the print process, then verified. A code generated too small or with too little margin is the most common reason variable codes fail at the point of sale.
What do I need to supply for a variable data job?
You need a clean, structured data file — usually a CSV or database export — with one row per unique piece and columns that map to the variable fields, plus a template artwork file that marks where each variable element goes. Consistent, error-free data with the right record count is what makes the run go smoothly.