How to Generate QR Codes That Always Scan
Create QR codes for links, Wi-Fi, contacts and payments, choose static vs dynamic codes, and follow size, contrast and testing rules so every code scans.
QR codes connect printed material to the digital world: menus, posters, product packaging, business cards and event tickets. Creating one takes seconds, but a few design choices decide whether it scans reliably in a dim restaurant or from across a room.
What can a QR code contain?
A QR code stores text. Phones recognise certain formats and act on them:
- URL — opens a website.
- Wi-Fi — joins a network without typing the password (format
WIFI:T:WPA;S:Name;P:password;;). - Contact (vCard) — offers to save a name, number, email and company.
- Email, phone, SMS — opens a pre-filled message or dialler.
- Location — opens a map at given coordinates.
The QR Code Generator builds all of these formats for you.
Static vs dynamic QR codes
Static codes contain your data directly. They never expire, need no service to keep working and cannot track you — but cannot be changed after printing.
Dynamic codes contain a short link to a company’s server, which redirects to your destination. You can change the destination and see scan statistics, but the code stops working if the service shuts down or your subscription ends.
For most small businesses, a static code pointing to a page on your own website gives the best of both: it never expires, and you can change what that page shows. To measure scans, add UTM parameters with the UTM Link Builder and check visits in your analytics.
Rules for codes that always scan
1. Contrast
Use a dark code on a light background. Light-on-dark and low-contrast colour combinations fail on many phones. Brand colours are fine if they are dark enough.
2. Quiet zone
Leave a clear margin around the code — at least four modules (the small squares) wide. Text or graphics touching the code are a common cause of failure.
3. Size
A practical guide is that the code should be at least one-tenth of the scanning distance. For a table card read from 25 cm, 2.5 cm is enough; for a poster read from 2 metres, aim for 20 cm.
4. Keep the content short
The more data, the denser the code. Long URLs with tracking parameters create tiny modules that are hard to print. Shorten the URL path on your own site, or remove unnecessary parameters with the link cleaner.
5. Error correction
QR codes include redundancy so they still scan when partly damaged: Low (7%), Medium (15%), Quartile (25%) and High (30%). Medium suits most uses. Choose High for outdoor signs or if a logo will cover part of the code.
6. File format
Download SVG for print — it stays sharp at any size. PNG is fine for screens and documents. The QR Code Image Generator lets you set colours, size and margin precisely.
Always test before printing
Scan the code with at least two different phones (Android and iPhone camera apps both read QR codes), in the lighting where it will be used. Check that it opens the right page on mobile data, not just your office Wi-Fi.
Security tips
- Never put a QR code to a payment or login page that you do not control.
- For public places, check periodically that no one has stuck a fake code over yours — a known scam.
- Wi-Fi QR codes reveal the password to anyone who scans them; use a guest network.
Try the tools from this guide
Found an error or have a suggestion? Contact us — see our editorial policy for how we write and update guides.