Productivity Tools
How to Create a QR Code That Works Every Time
How to create a QR code that scans reliably — what to encode, sizing and contrast rules, the quiet zone, testing tips, and a free QR code generator.
- #qr code
- #qr code generator
- #marketing
- #productivity
QR codes are everywhere — on menus, packaging, posters and business cards — and most of them work fine. But the ones that fail fail badly: a customer points their phone, nothing happens, and you have lost them. Creating a QR code that scans every time is mostly about a few simple rules. Here they are.
What a QR code actually does
A QR code is just a visual container for data. Most often that data is a URL, but it can also hold plain text, contact details, Wi-Fi credentials or a payment link. The camera reads the pattern, decodes the data, and acts on it. Nothing about the code itself is "smart" — it is a printed link.
That has one important consequence: a static QR code is permanent. Whatever URL you encode is locked in. If the page moves, the code is dead.
Static vs dynamic codes
This is the first real decision.
A static QR code encodes the destination directly. It never changes and never expires, but you cannot edit it. Good for things that will not change — a Wi-Fi password, a fixed contact card.
A dynamic QR code encodes a short redirect URL that you control. You can change where it points later, and you can track scans. Good for marketing, where the campaign destination might change.
For anything printed at scale, dynamic is usually safer — a typo or a moved page does not mean reprinting everything.
Size it for the scanning distance
A QR code that is too small simply will not scan. The rule of thumb: the code's width should be roughly one-tenth of the scanning distance.
- A code on a business card, scanned at arm's length, can be small — about 2 × 2 cm.
- A code on a poster, scanned from a metre away, needs to be around 10 × 10 cm.
- A code on a billboard needs to be very large indeed.
When in doubt, make it bigger. There is no penalty for a generous QR code; there is a real penalty for one nobody can scan.
Respect the quiet zone
Every QR code needs a margin of empty space around it — the quiet zone. Without it, the scanner cannot tell where the code ends and the background begins.
The quiet zone should be at least four "modules" (the small squares that make up the code) wide on all sides. In practice: never crowd a QR code against text, images or the edge of the page. Give it room to breathe.
Get the contrast right
Scanners read QR codes by contrast between dark and light areas. Two rules:
- Keep it dark-on-light. A dark code on a light background is what scanners expect.
- Avoid inverting it. A light code on a dark background scans poorly or not at all on many devices.
If you must brand the code with colour, keep the data pattern dark and the background light, and keep the contrast strong. Pale grey on white will fail.
Test before you print
This is the step people skip — and regret. Before a QR code goes to print:
- Scan it with multiple phones — at least one iPhone and one Android.
- Scan it at the actual distance and size it will be used.
- Scan it in realistic lighting, not just a bright desk.
- If it is dynamic, confirm the destination URL is correct and live.
A QR code is cheap to test and expensive to reprint. Always test first.
Common reasons QR codes fail
- Printed too small for the viewing distance.
- No quiet zone — crammed against other elements.
- Low contrast, or inverted colours.
- A logo placed over the code covering too much of the data.
- A static code pointing to a URL that has since moved.
- Blurry printing or a code stretched out of its square shape.
Frequently asked questions
How big should a QR code be? About one-tenth of the scanning distance. Roughly 2 cm for a business card, 10 cm for a poster viewed from a metre away. When unsure, go larger.
Can I change where a QR code points after printing? Only a dynamic QR code, which encodes a redirect URL you control. A static code encodes the destination directly and cannot be changed.
Why won't my QR code scan? Usually it is too small, lacks a quiet-zone margin, has low contrast, or is inverted. Test on multiple phones at the real size before printing.
Can I put a logo in the middle of a QR code? Yes, in moderation. QR codes have error correction that tolerates a small central logo, but covering too much of the pattern breaks scanning. Keep it small and test.
Do QR codes expire? Static codes never expire — they hold the data permanently. Dynamic codes work as long as the redirect service stays active and the destination URL is live.
Create your QR code now
Generate a clean, reliable QR code with the free QR Code Generator — encode a URL, text or contact details, download it print-ready, and test it before it ever goes to press.
DEV-IN-ARTICLE · fluidWritten by
UtilityApps Team
We build free utility tools and write about the math, science, and trade-offs behind them. Got feedback or a tool request? Get in touch.
Related articles
More from the blogGet weekly tool recommendations
One short email each Friday: the tools that saved us time this week, plus a short tip you can use the next morning.
By subscribing you agree to our Privacy Policy. We never share your email and you can unsubscribe in one click. GDPR compliant.
DEV-BOTTOM · horizontal