QR Code Best Practices: 8 Rules for Codes That Scan
The best practices for QR codes come down to a few reliable rules: make the code large enough for its scanning distance, keep strong contrast with a quiet zone of clear space around it, use an appropriate error correction level, point it at a secure HTTPS link, place it where people can comfortably scan it, and always test it on real devices before publishing. Follow these and your codes will scan the first time, every time.
Here is the full checklist, with the reasoning behind each rule so you can apply it to any project.
1. Size It for the Scanning Distance
A QR code must be physically large enough for a camera to resolve its pattern. The further away people scan from, the bigger it needs to be.
- A handy rule: the code’s width should be about one-tenth of the scanning distance.
- For a code scanned from arm’s length, aim for at least 2 x 2 cm.
- For posters and signage scanned across a room, scale up to 10 cm or more.
When in doubt, go larger. A code that is too big still scans, while one that is too small fails.
2. Keep High Contrast
Scanners detect codes by the difference between dark and light areas.
- Use a dark code on a light background, ideally black on white.
- Avoid light-on-dark (inverted) codes, which many scanners cannot read.
- If you use brand colors, keep the dark modules genuinely dark and the background genuinely light.
QR Toolkit offers eight custom brand colors as a premium feature, which lets you match a code to your branding. The key is to choose a color that stays dark enough against its background so contrast never drops too low.
3. Always Include a Quiet Zone
The quiet zone is the margin of empty space around the code. Scanners use it to locate the code’s boundaries.
- Leave clear space equal to at least four modules (the small squares) on every side.
- Never crowd the code with text, logos, or borders right up to its edge.
- Resist the urge to crop tightly when laying out a design.
A missing quiet zone is one of the most common reasons an otherwise perfect code fails to scan.
4. Choose the Right Error Correction Level
QR codes have built-in error correction that lets them survive some damage or dirt. There are four levels, from low (about 7 percent recovery) to high (about 30 percent).
- For clean digital or print contexts, a low or medium level keeps the pattern simpler and easier to scan.
- For codes exposed to wear, outdoor conditions, or surfaces likely to get scuffed, a higher level adds resilience.
- Higher correction makes the pattern denser, so combine it with a larger printed size.
5. Use HTTPS Links
Any URL behind your code should use https://, not http://.
- HTTPS encrypts the connection, protecting anyone who scans.
- Many browsers warn users away from non-secure pages, which kills trust.
- Include the full
https://prefix when you create the code so it opens reliably.
6. Keep the Data Lean
The more information you pack into a code, the denser and harder to scan it becomes.
- For links, point to a clean, short URL rather than a long string of tracking parameters.
- For a contact card, include the essential fields rather than every possible detail.
- A simpler code prints smaller and scans faster.
7. Place It Where People Can Actually Scan
Even a perfect code fails in a bad spot.
- Put codes at a comfortable height and angle, not on the floor or above eye level.
- Avoid curved surfaces like bottles where possible, since they distort the pattern.
- Make sure the area is well lit and free of glare.
- Add a short call to action (“Scan to connect to WiFi”) so people know what they are getting.
8. Always Test Before You Publish
This is the rule that catches everything else.
- Scan the final code with more than one phone, both iPhone and Android if you can.
- Test in the real conditions and from the real distance people will use.
- Confirm the destination loads correctly and is the page you intended.
Previewing the decoded content helps you verify a code points exactly where it should before you commit it to print. QR Toolkit shows the full decoded result the moment you scan, decoded on your own device, and keeps a searchable history of the codes you create so you can re-check or regenerate any of them later.
A Quick Best-Practices Checklist
- Large enough for the scanning distance.
- Dark code on a light, high-contrast background.
- A clear quiet zone on all four sides.
- Error correction level matched to the environment.
- HTTPS destination.
- Lean data and short URLs.
- Smart, well-lit placement with a call to action.
- Tested on real devices before going live.
Frequently Asked Questions
What is the best size for a QR code?
It depends on scanning distance. A good rule is that the code’s width should be about one-tenth of the distance people scan from. For close-range scanning, at least 2 x 2 cm works well; for posters and signage, 10 cm or more is safer.
What error correction level should I use?
For clean digital and indoor print uses, low or medium keeps the pattern simple and easy to scan. For codes that will be exposed to wear, weather, or smudging, choose a higher level for resilience, and print the code a bit larger to compensate for the denser pattern.
Why should QR code links use HTTPS?
HTTPS encrypts the connection between the visitor and the website, protecting their data, and modern browsers warn users away from non-secure pages. Using HTTPS keeps scans secure and avoids scary browser warnings that make people abandon the link.