QR Codes That Keep Working: Static, Dynamic and Print
Why some free QR codes stop working, what a static code can hold, and how error correction, print size, quiet zone and colour decide whether a code scans.
A QR code is text drawn as a grid of squares. A phone camera reads the squares back into text and then decides what to do with it: open a link, offer to join a Wi-Fi network, save a contact. Almost everything that goes wrong with QR codes comes from one of two places: what the text points to, and how the squares were printed. This guide covers both.
Static and dynamic codes, and why “free” codes stop working
A static code contains your content itself. If you encode https://example.com/menu, that address is in the pattern, and a phone goes straight there. Nothing sits in between, so nothing can expire.
A dynamic code contains a short link on the QR company’s own domain. When someone scans it, the phone visits the company’s server, which forwards them to your page. That detour is what lets the company count scans and lets you change the destination later. It is also the catch: the code only works while the company keeps that short link alive. If a “free” code is really a dynamic one tied to a trial or a paid plan, then when the trial ends or the plan is not renewed, the short link can stop forwarding or show something else instead, and if the company closes, it disappears. The printed menus, flyers and business cards still carry the code, and there is no way to fix them except reprinting.
You can tell which kind you have: scan the code and look at the address your phone previews before opening it. If it is your own website, the code is static. If it is the QR company’s domain or a short link you do not control, the code is dynamic, and it depends on that company.
When do you actually need to change the destination after printing? Less often than it seems. If you do, encode a static code with an address on your own website, such as yoursite.com/menu, and change what that page shows or where it redirects. You keep the flexibility without depending on anyone. Every code Hanji’s QR code generator makes is static.
What a static code can hold
The generator writes the content in the formats QR readers widely recognise (the open-source ZXing scanner project documents them):
| Type | What is stored | What the phone does |
|---|---|---|
| Link | The address; https:// is added if you leave it out |
Opens it in the browser |
| Text | The text exactly as typed | Shows the text |
| Wi-Fi | WIFI:T:WPA;S:name;P:password;; |
Offers to join the network |
| Contact | A vCard 3.0 with name, phone, email, company, website | Offers to save the contact |
A mailto: link with optional subject and message |
Opens a new email | |
| Phone | A tel: number |
Offers to call |
| SMS | SMSTO:number:message |
Opens a text message |
The https:// matters more than it looks. Without it, “example.com” is just text, and a scanner may not recognise it as a link.
Static does not mean the content can never go stale. A link in a static code still breaks if the page it points to is moved or deleted, and a contact card holds the phone number you typed. What static removes is the third party.
How content and error correction set the size of the grid
The more text a code holds, the more squares (called modules) it needs. QR codes come in fixed sizes called versions, from 21 × 21 modules up to 177 × 177. We encoded four typical payloads with the same QR library the generator uses:
| Content | Length | L (7%) | M (15%) | Q (25%) | H (30%) |
|---|---|---|---|---|---|
Short link https://hanji.page |
18 characters | 25 × 25 | 25 × 25 | 25 × 25 | 29 × 29 |
| Wi-Fi network with a 21-character password | 51 | 29 × 29 | 33 × 33 | 37 × 37 | 41 × 41 |
| Link with three tracking parameters | 94 | 37 × 37 | 41 × 41 | 49 × 49 | 53 × 53 |
| Contact card with five fields | 158 | 45 × 45 | 49 × 49 | 61 × 61 | 65 × 65 |
The percentages are the error correction levels: roughly how much of the code’s data can be dirty, scratched or covered and still be recovered (these are the approximate figures given by Denso Wave, the company that developed the QR code). Higher correction adds redundant data, so the same content needs a bigger grid. Two practical lessons:
- Shorten what you encode. The long tracking link needs more than twice as many modules as the short one (41 × 41 against 25 × 25 at level M). Removing parameters you do not need, or linking to a short path on your own site, gives a coarser code that scans faster and from further away.
- Pick the level for the place. M is the level Denso Wave says is most often used, and a good default for paper and screens. Use Q or H for codes on outdoor signs, stickers that get handled, or anything that may get scuffed. When you add a logo, the generator switches to H automatically and leaves a hole about a fifth of the code’s width in the middle, small enough for H to rebuild.
Print size and the quiet zone
What a phone needs is not a minimum width in centimetres but modules large enough to resolve. On a code printed 2 cm wide with the standard margin, each module of the short link (25 modules plus margin) is about 0.6 mm; each module of the contact card at level M (49 modules plus margin) is about 0.35 mm. The second one needs to be printed larger to scan as easily. So when the content is long, print the code larger; for posters and signs, size the code for the distance people will scan from.
The quiet zone is the empty border around the code. The QR standard asks for four modules on every side, which is the generator’s “Standard” margin. It keeps the code apart from whatever surrounds it. If a designer places a code tight against text, a photo or the edge of a card, it may fail even though the code itself is perfect. Choose “Small” or “None” only when the layout around the code is already plain and light.
For the file itself:
- SVG is a vector file; it stays sharp at any size and is the better choice for print.
- PNG comes at about 512, 1024 or 2048 pixels (rounded so each module is a whole number of pixels). At 300 pixels per inch, a 1024 px PNG prints sharply up to about 8.7 cm and a 2048 px one up to about 17 cm. Enlarging a PNG beyond that blurs the edges of the modules; use the SVG.
Colours, contrast and logos
A QR code is designed as dark modules on a light background. Colour is fine as long as the contrast is strong; weak contrast and reversed colours cause failures.
- Keep the code clearly darker than the background. Navy, dark green or dark red on white or cream works; yellow, light grey or pastel codes often do not.
- Avoid light codes on dark backgrounds. Some readers handle them, but reading inverted codes is optional even in the widely used ZXing library, so not every scanner will. The generator warns you if the contrast is low or the code is lighter than its background.
- A transparent background is useful for placing the code on a coloured design, but the code then takes on whatever is behind it. Put it on a plain light area, never on a photo or a pattern.
- Logos cost readability. Keep them simple and centred, and test the result; the hole is sized for level H, but a busy logo with dark edges can still confuse a scanner.
Test before you print
A code that fails costs a whole print run, so test it the way people will use it.
- Check the content. Open the link on a phone and read the address. A typo, an
http://that no longer works, or a page that needs a login are more common than unreadable codes. - Print a proof at the real size on an ordinary printer, rather than scanning the code on your screen.
- Scan with two or three different phones, including an older one, from the distance people will stand at, in the light where the code will hang.
- Scan the final proof from the printer, because colours and paper can change contrast.
Wi-Fi codes and security
A Wi-Fi code contains your network name and password as plain text. Anyone who can photograph it can read the password, not only join the network; a QR reader app that shows the raw content displays it. That is fine for a café’s guest network but not for the network your work computers or home devices use.
- Put a guest network on the code, separate from the one your own devices use.
- Do not post a code for a private network where strangers can see it, including in photos shared online.
- If you change the password, the old code stops working; reprint it.
- Choose the WPA/WPA2/WPA3 option. WEP has been publicly broken for years, and the generator offers it only for very old equipment.
The generator draws the code in your browser, so the password you type is not uploaded anywhere; see what happens to your files. If you are putting the code on a printed form or a PDF, the guide to making PDFs smaller may help with the file you send.
Guides
- Photo too large to upload? How file size limits work
- HEIC photos from iPhone: why forms reject them and fixes
- JPG, PNG, WebP, AVIF and HEIC compared
- Pixels, cm and DPI: how to convert, with tables
- How to Make a PDF Smaller (and What You Give Up)
- Scan Documents to PDF with Your Phone
- ID and passport photo sizes in mm and pixels
- How to Take a Passport Photo at Home That Gets Accepted
- Photo file rules for online applications: pixels, KB and age
- Do Online File Converters Keep Your Files?
- Print Passport Photos on 4×6: CVS, Walgreens, Walmart
- Character and Word Counts: Why Counters Disagree
- Email Attachment Size Limits: Gmail, Outlook, Yahoo, iCloud
- Why Text Extraction From Photos Goes Wrong, and How to Fix It
- Shrinking Images to a File Size: What We Measured