QR code best practices: make codes that scan, and stay safe scanning them
A QR code that doesn’t scan is worse than no code at all. A few simple rules fix almost every problem.
By the ToolSnappy Team · Updated · 3 min read
QR codes are everywhere in the US now: restaurant menus, parking meters, event tickets, product packaging and real estate signs. They’re easy to make, but small mistakes such as low contrast, a cramped border or a code that’s too small for the distance can make them frustrating to scan. Here’s what works.
Static vs. dynamic QR codes
A static QR code stores your link or text directly in the pattern. It works forever, needs no account and doesn’t track anyone, but you can’t change the destination after printing.
A dynamic QR code stores a short link to a service that redirects visitors to your real page. You can change the destination and count scans, but the code depends on that service. If the subscription ends or the company closes, every printed code can stop working.
For a menu, Wi-Fi details, a business card or anything you print once, a static code is usually the safer choice. Point it at a page on your own website that you control, and you can update the page instead of the code.
Design rules that keep codes scannable
- Strong contrast. Dark modules on a light background. Light-on-dark codes and pale colors fail on some phones.
- Keep the quiet zone. The QR standard calls for a clear margin of four modules (the small squares) around the code. Don’t let text or images crowd it.
- Shorter links make simpler codes. More data means more, smaller modules. A short URL produces a cleaner code that scans from farther away.
- Use error correction wisely. Higher error correction lets a code survive scratches, smudges or a small logo in the middle, at the cost of a denser pattern.
- Print as vector when you can. SVG stays crisp at any size; a small PNG stretched for a poster can blur.
How big should a QR code be?
It depends on scanning distance. A widely used rule of thumb is that the code’s width should be about one-tenth of the distance it’s scanned from: roughly 1 inch for a business card read at arm’s length, and several inches or more for a poster read across a room. Denser codes need to be larger. Whatever the size, test it in the real setting before printing hundreds.
Always test before you print
- Scan the code with at least two different phones, ideally one iPhone and one Android.
- Test in the lighting where it will be used, and from the expected distance.
- Make sure the link opens the right page and that the page works well on a phone.
- For Wi-Fi codes, confirm the phone actually joins the network.
Staying safe when you scan
Because people scan without thinking, QR codes have become a tool for scammers. The Federal Trade Commission has warned about fake codes stuck over real ones on parking meters, and about codes sent in unexpected texts or emails that claim there’s a problem with a delivery or account. The goal is to send you to a look-alike site that steals logins or payment details.
- Check the link preview your camera shows before opening it. Look for misspellings or odd domains.
- Be wary of stickers placed over another code, especially on parking meters and payment signs.
- Don’t scan codes in unexpected messages. Go to the company’s app or type its web address yourself instead.
- Never enter a password or card number on a page you reached by scanning unless you’re certain it’s genuine.
- Keep your phone updated and use multi-factor authentication on important accounts.
If you print QR codes for customers
Help people trust your code. Print your website address next to it so they can check where it goes, use your own domain rather than a generic short link, and inspect public codes regularly for tampering.
Frequently asked questions
Do QR codes expire?
Static QR codes don’t expire; the data is in the pattern itself. Dynamic codes can stop working if the redirect service is cancelled.
Can I put a logo in a QR code?
Yes, if it’s small and you use higher error correction, but always test the result. Codes with logos fail more often.
Can a QR code contain a virus?
The code itself is just data, usually a web link. The danger is the website it leads to, which may be fake or try to download harmful files.
Sources
This guide is for general information and isn’t financial, tax, legal or medical advice. Figures were checked against the sources above on the date shown.