Static vs dynamic QR codes for printed labels: bulk codes with no tracking that you can still change
Six plant labels measured both ways on 1 December 2026: tagged links needed version 8, short links on the shop's own site version 3, redirected with a file tested locally.
We make Bulk QR Generator, the app this guide uses. The free methods come first; every step shown in Bulk QR Generator was checked in the app itself, and the screenshots come from the real app with invented sample data.
Short answer
A static QR code holds your address itself, so it works as long as your page does. A dynamic code holds a provider's short link that redirects to your page and counts scans, so it works only while that provider keeps the redirect running. For a batch of printed labels you can have both: make static codes that hold short addresses on your own website, such as /go/ followed by the product code, and redirect each one to its page with a file on your site. The short address also keeps the code small: in our test, six plant labels at 15 mm wide had modules of 0.38 mm instead of 0.25 mm with the full tagged address.
What a QR code holds
A QR code is text drawn as squares. When the text is a web address, a phone reads it and opens that address. Nothing else is involved: if the code holds https://linden-garden.example/plants/care-guides/hosta-june, the scan goes to that page, and the code keeps working for as long as that page exists. That is a static code.
What providers call a dynamic code is the same kind of symbol holding a different address: a short link on the provider's server. The server usually counts the scan, then redirects the phone to the page you set in your account, and you can change that page later without reprinting. The code itself never changes; what you are buying is the redirect.
You can tell which one you have by reading what the code holds. Decode it before printing, with a reader that shows the text instead of opening it, or look at the preview in your generator. If it holds your own address, it is static. If it holds a short address on another domain, the scans go through that domain first.
What the redirect depends on
A printed dynamic code works only while the provider keeps its redirect for you, on its terms. One provider's help center, for example, says that dynamic codes made during its 14-day trial period are deactivated when the trial ends, that a scan then goes to a service page instead of your page, that static codes keep working, and that one kind cannot be converted into the other. Other providers have other terms: read yours before printing a few thousand labels.
The address in the code also matters to the people scanning it. The US Federal Trade Commission warns about fake codes stuck over real ones, on parking meters for example, and advises inspecting the address before opening a code found in an unexpected place. A code that shows your own domain is easier to recognise than a provider's short link.
Long links make small codes
The more text a code holds, the more squares (modules) it needs. QR codes come in versions 1 to 40, from 21 by 21 modules to 177 by 177, four more per side with each version, and more data means more modules and a larger symbol, says Denso Wave, the company that created the QR code. On a label of fixed width, more modules means smaller ones.
We measured it on six invented plant labels for a garden centre. Each care page address carried campaign tags (utm_source, utm_medium and utm_campaign), as marketing links often do, and was 124 to 145 characters long. At error correction M, those addresses needed version 8: 49 by 49 modules. At 15 mm wide and 600 dpi, each module came out 0.25 mm wide. The same six pages as short addresses on the shop's own domain, https://linden-garden.example/go/ followed by the plant's code (40 characters), needed version 3: 29 by 29 modules, 0.38 mm each, in a code of the same width.
The generator we used flags modules under 0.3 mm, which it says many printers and phone cameras handle poorly, and suggested printing the long-link codes at least 18 mm wide. That suggestion falls just short: at 600 dpi each module is a whole number of dots, so a version 8 code with its quiet zone at 18 mm gets 7-dot modules of 0.296 mm, still under the flag, and 20 mm gives 8-dot modules of 0.34 mm. The threshold is the program's rule, not a standard; your printer can tell you what its labels hold. We decoded every code on a PC; we did not print them or scan them with phones.
Method 1 (free): short links on your own site, with a redirects file
The idea: each code holds a short, static address on your own domain, and your website redirects it to the page it stands for. To change where a code goes, you change one line on your site; the printed codes stay as they are, and no third party sits between the label and your page. The campaign tags go in the redirect's destination, so your site still receives them with each visit.
This Python script reads a list with a SKU column and a Care page column, makes one PNG code per row holding your-site/go/SKU, with a quiet zone of 4 modules, no wider than the width you give, at 600 dpi, reads each code back before you print it, and writes a _redirects file with one line per code. It needs Python with OpenCV and Pillow (py -m pip install opencv-python Pillow). Keep the SKUs to letters, digits and hyphens: a space or a slash would break both the short address and its line in the file.
"""One static QR code per row of a list, holding a short address on your own site, plus a _redirects file that
sends each short address to the page it stands for. Change a line of _redirects later; the printed codes stay.
Usage: py qr_labels.py <list.csv> <empty output folder> <your site, e.g. https://shop.example> [code width in mm]
The list needs a SKU column and a Care page column (the page each code should open)."""
import csv
import sys
from pathlib import Path
import cv2
from PIL import Image
source, out, site = Path(sys.argv[1]), Path(sys.argv[2]), sys.argv[3].rstrip("/")
width_mm = float(sys.argv[4]) if len(sys.argv) > 4 else 15.0
DPI = 600
params = cv2.QRCodeEncoder_Params()
params.correction_level = cv2.QRCodeEncoder_CORRECT_LEVEL_M # M: about 15% can be damaged
encoder, decoder = cv2.QRCodeEncoder.create(params), cv2.QRCodeDetector()
def make(text):
"""The code as a picture for width_mm at DPI, with the standard 4-module quiet zone."""
code = encoder.encode(text) # 1 pixel per module, 2-module margin
code = cv2.copyMakeBorder(code, 2, 2, 2, 2, cv2.BORDER_CONSTANT, value=255)
modules = code.shape[0]
scale = max(1, int(width_mm / 25.4 * DPI // modules))
picture = cv2.resize(code, None, fx=scale, fy=scale, interpolation=cv2.INTER_NEAREST)
return picture, modules - 8, modules * scale / DPI * 25.4 / modules # picture, symbol modules, mm per module
out.mkdir(parents=True, exist_ok=True)
redirects = []
with source.open(encoding="utf-8-sig", newline="") as f:
for row in csv.DictReader(f):
short = f"{site}/go/{row['SKU']}"
picture, modules, module_mm = make(short)
Image.fromarray(picture).save(out / f"{row['SKU']}.png", dpi=(DPI, DPI))
read, _, _ = decoder.detectAndDecode(picture) # read it back before printing
_, long_modules, long_mm = make(row["Care page"]) # the same page as a direct link
print(f"{row['SKU']}: {short} -> version {(modules - 17) // 4}, {module_mm:.2f} mm modules, "
f"reads back {'the same' if read == short else 'DIFFERENT: ' + repr(read)}; the direct link would be "
f"version {(long_modules - 17) // 4}, {long_mm:.2f} mm modules")
redirects.append(f"/go/{row['SKU']} {row['Care page']} 302")
(out / "_redirects").write_text("\n".join(redirects) + "\n", encoding="utf-8")
print(f"_redirects: {len(redirects)} lines")
We ran it on 1 December 2026 (Python 3.11.9, OpenCV 5.0.0, Pillow 12.2.0, Windows 11) on the garden centre's list, in the folder that holds the script and the list. The -I runs Python in isolated mode, which also skips packages installed with pip --user; if Python says No module named 'cv2', run the command without it:
py -3 -I qr_labels.py "plant labels.csv" labels https://linden-garden.example 15
LG-0412: https://linden-garden.example/go/LG-0412 -> version 3, 0.38 mm modules, reads back the same; the direct link would be version 8, 0.25 mm modules
LG-0418: https://linden-garden.example/go/LG-0418 -> version 3, 0.38 mm modules, reads back the same; the direct link would be version 8, 0.25 mm modules
LG-0431: https://linden-garden.example/go/LG-0431 -> version 3, 0.38 mm modules, reads back the same; the direct link would be version 8, 0.25 mm modules
LG-0457: https://linden-garden.example/go/LG-0457 -> version 3, 0.38 mm modules, reads back the same; the direct link would be version 8, 0.25 mm modules
LG-0463: https://linden-garden.example/go/LG-0463 -> version 3, 0.38 mm modules, reads back the same; the direct link would be version 8, 0.25 mm modules
LG-0479: https://linden-garden.example/go/LG-0479 -> version 3, 0.38 mm modules, reads back the same; the direct link would be version 8, 0.25 mm modules
_redirects: 6 lines
The _redirects file it wrote:
/go/LG-0412 https://linden-garden.example/plants/care-guides/lavandula-angustifolia-hidcote?utm_source=plant-label&utm_medium=print&utm_campaign=spring-2027 302
/go/LG-0418 https://linden-garden.example/plants/care-guides/salvia-rosmarinus?utm_source=plant-label&utm_medium=print&utm_campaign=spring-2027 302
/go/LG-0431 https://linden-garden.example/plants/care-guides/acer-palmatum-bloodgood?utm_source=plant-label&utm_medium=print&utm_campaign=spring-2027 302
/go/LG-0457 https://linden-garden.example/plants/care-guides/hydrangea-arborescens-annabelle?utm_source=plant-label&utm_medium=print&utm_campaign=spring-2027 302
/go/LG-0463 https://linden-garden.example/plants/care-guides/clematis-nelly-moser?utm_source=plant-label&utm_medium=print&utm_campaign=spring-2027 302
/go/LG-0479 https://linden-garden.example/plants/care-guides/hosta-june?utm_source=plant-label&utm_medium=print&utm_campaign=spring-2027 302
This is the format of Cloudflare Pages redirects: a plain text file named _redirects in the folder you publish, one rule per line as source, destination and an optional status code (302 when omitted), with query strings allowed in the destination, up to 2,000 static redirects and 1,000 characters per line. Other hosts and web servers have their own way to declare redirects; we tested only this one.
We tested the file locally with Cloudflare's wrangler 4.153.0 (pages dev) and curl, on a folder holding the file and a home page; we did not publish it. Wrangler reported 6 valid redirect rules. A request for /go/LG-0457 got a 302 response pointing to the hydrangea's care page with its three tags, and /go/LG-0412 to the lavender's. A request for /go/LG-9999, a code with no line in the file, got the home page with status 200, not an error. That is how Cloudflare Pages serves a site that has no 404.html file: when it finds neither the file nor a custom 404 page, it falls back to the home page. A 404.html page in the folder you publish turns such requests into a visible not-found page. Either way, add a line for every code before you print it, and check a few after each change.
We used 302, a temporary redirect, because the destinations may change. Per MDN, 301 and 308 are permanent, meant to last forever, and search engines update the original address; with 302, 303 and 307 they do not memorize the new one. We read the six PNG files back: each is 333 by 333 pixels at 600 dpi (14.1 mm), 9 pixels per module, version 3, and decodes to its /go/ address. Two runs wrote the same seven files, byte for byte.
Method 2: static codes from the list with Bulk QR Generator
Bulk QR Generator is our Windows app for making one code per row of a spreadsheet: links, Wi-Fi logins, contact cards or text, as PNG or SVG files named from your data. Its codes are static and never route through a tracking service. It runs offline. The screenshots below come from version 1.0.0 (evaluation build), with the same invented list.
- Open the list and choose a link code. We set the link to the Care page column, the file names to the SKU column, PNG for print at 15 mm and 600 dpi, and one version for all codes.
- Read the preview. For the selected row it shows what the code holds and its version; the line under the list gives the printed module size for all codes. With the tagged addresses, the hydrangea's code held the whole address, version 8, with modules of 0.25 mm and a warning to print it at least 18 mm wide or shorten the content.
- Use the short address. We typed https://linden-garden.example/go/{SKU} as the link instead: the preview showed version 3 and modules of 0.38 mm, with no warning, and all six rows passed the checks.
- Create. The run wrote six PNG files and codes.csv, which lists each row's file, content, version and whether it was made.



We read the files back with OpenCV: each PNG is 333 by 333 pixels at 600 dpi, version 3 with a quiet zone of 4 modules, and decodes to exactly the content codes.csv lists for it, the same geometry as the script's codes. The app makes the codes; it does not host redirects or count scans, so the _redirects file (or your host's equivalent) is still yours to publish. For more on making codes from a list, including Word mail merge, see QR codes from an Excel list, offline.
Limitations
- We decoded the codes on a PC with OpenCV; we did not print them or scan them with phones. Print a test sheet on your real labels and scan it with a few phones before a full run.
- The redirects were tested locally with wrangler, not on a published site. Each host has its own rules and limits; read your host's documentation and test after publishing.
- Without a provider in the middle you get no scan counts from the code itself. The tags in each destination reach your site with every visit, so your own site statistics can count them, if you have them.
- The trial terms quoted above are one provider's, read on 1 December 2026. Providers change their terms, and others differ.
- The 0.3 mm warning is Bulk QR Generator's own threshold, not a standard. The script needs Python, OpenCV and Pillow and shows no preview. Bulk QR Generator's planned requirements: Windows 10 (22H2) or 11, 64-bit.
References
- Denso Wave: Information capacity and versions of QR Code
- QR Code Generator Support: I received a message saying that my QR Codes will be deactivated. What does that mean?
- Federal Trade Commission, Consumer Advice: Scammers hide harmful links in QR codes to steal your information
- Cloudflare Pages docs: Redirects
- Cloudflare Pages docs: Serving Pages
- MDN Web Docs: Redirections in HTTP