Web & marketing
How to Create a QR Code That Keeps Working
Make a QR code for a link, Wi-Fi or a contact, and make sure it scans. Static vs. dynamic codes, print sizes, logos and contrast, and mistakes to avoid.
Updated · 5 min read
A QR code looks like the easy part of a print job. Then 5,000 flyers come back from the printer, and the code doesn't scan, or it points to a page that was moved last month. Most of these problems are avoidable with a few checks.
How to make one
- Open the QR code generator.
- Choose the type of content: link, text, Wi-Fi, email, phone number, SMS, contact or location.
- Fill in the details, and style the code if you want.
- Download it as a PNG or SVG.
Everything happens in your browser, and the code contains just what you typed.
Static vs. dynamic QR codes
This difference causes the most confusion, and it matters before you print anything.
A static code stores your content directly in the pattern. It needs no service to work, doesn't expire and has no tracking of its own. But it can't be changed either. If you need a new destination, you make a new code.
A dynamic code stores a short link to a provider's server, which then forwards visitors. You can change the destination later and see scan statistics. The catch is that it depends on that provider. If the subscription ends or the company closes down, the code can stop working.
| Static | Dynamic | |
|---|---|---|
| Cost | Free | Often a subscription |
| Can change destination | No | Yes |
| Expires | No | Depends on the provider |
| Scan statistics | Only through your own website | Yes |
Getting the flexibility without the risk
You can have the best of both with a static code that points to a URL on your own domain, such as yourcompany.com/menu. If the destination moves, you add a redirect on your website, and printed codes keep working. You own the link, so no one can turn it off.
For statistics, add campaign parameters to the link using the UTM builder. Your analytics will then show visits from each poster or flyer. Keep the link short, though, since long URLs produce denser, harder-to-scan codes.
Useful types beyond links
Wi-Fi. Guests scan the code and join the network, without typing a long password. Just remember that anyone who can see the code can join, so use a guest network.
Contact card (vCard). A code on a business card can save your name, phone number and email straight to a contact list.
Location. It opens a map at a precise spot, which is useful for hard-to-find entrances and event sites.
Size and scanning distance
A code must be big enough for the distance it's scanned from. As a rule of thumb, allow a distance-to-size ratio of about 10:1. A code scanned from 1 meter away should be at least 10 cm wide, and one on a poster seen from 3 meters needs around 30 cm.
For close-up use, such as on a business card, around 2 × 2 cm is a sensible minimum. If your code holds a lot of data, it has more small squares, and needs more space.
Contrast and colors
Scanners look for dark modules on a light background. Colored codes can work, but stay on the safe side:
- Use a dark color on a light background.
- Don't invert the colors. Some scanners can't read light codes on a dark background.
- Avoid pale tones such as yellow on white.
- Be careful with gradients in the corner squares.
The generator warns you if the contrast gets too low.
The quiet zone
A QR code needs a clear margin around it, known as the quiet zone. The standard calls for four modules' width on each side. Text, photos or borders that run up to the code are a common reason for scan failures. Keep this space when you place the code in a layout.
Adding a logo
QR codes have built-in error correction, which lets them recover from damage. That's what makes a logo in the center possible. There are four levels, from L to H:
| Level | Damage it can recover from |
|---|---|
| L | about 7% |
| M | about 15% |
| Q | about 25% |
| H | about 30% |
With a logo, use a high level, and keep the logo small. A higher level makes the code denser, so don't use it unless you need it. Test the finished result, as the logo is deliberately covering part of the data.
File format for print
For printing, download an SVG. It's a vector format, so it stays sharp at any size. If you must use PNG, export it much larger than you need, then scale it down in your layout. Don't enlarge a small PNG, or the edges will blur. And don't save it as a low-quality JPG, which softens the edges too.
Test before you print
This step costs a minute, and it can save a whole print run:
- Print one sample at the final size, on the final material.
- Scan it with an iPhone and an Android phone, and an older phone if possible.
- Try it from the real distance, and in the real light.
- Follow the link all the way, and check that the page works on a phone.
You can also check any image file with the QR code scanner. It's especially useful for seeing what's inside a code before you open the link.
Glossy surfaces, curved bottles, and low light can all break a code that works on your desk. Lamination can also cause glare.
Don't forget the landing page
Someone who scans a code is on a phone, often in a hurry. If the page loads slowly or doesn't fit on the screen, your code has done its job for nothing. Link to a page that's made for mobile, and add a few words next to the code to say what people will get, such as "Scan for today's menu."
Be careful with unknown codes
Scammers put fake stickers on parking meters and restaurant tables. When scanning a code in public, check the address before you enter any payment details. A code printed on a sticker that's been placed over another one is a warning sign.