Home › Guides › QR Code Best Practices: Size, Contrast and Testing
QR Code Best Practices: Size, Contrast and Testing
How to make QR codes that scan reliably: minimum size, quiet zone, contrast, error correction, logos and the testing routine to follow before printing.
A QR code that fails to scan is worse than no QR code at all. Most failures come from a handful of avoidable mistakes, so a few simple rules will make your codes reliable on posters, menus, packaging and business cards.
What a QR code actually contains
A standard (static) QR code stores the data directly in its pattern, whether that is a web address, a block of text, WiFi details or a contact card. Because nothing is stored on a server, a static code never expires. The trade-off is that you cannot change the destination after printing, and longer content makes a denser code that is harder to scan.
Keep the content short
The more characters you encode, the more squares the code needs. A short web address produces a simple, easy-to-scan code. If your link is long, use a shorter address on a domain you control instead of a long tracking URL.
Respect the quiet zone
Every QR code needs a blank margin around it, called the quiet zone. The standard asks for at least four modules (four of the small squares) on every side. Do not place text, borders or images touching the code.
Use strong contrast
Scanners look for dark squares on a light background.
- Use a dark colour on a light background. Black on white is the safest choice.
- Avoid light-on-dark ("inverted") codes, because many scanners cannot read them.
- Avoid low-contrast pairs such as yellow on white or pale grey on cream.
- Gradients are fine only if every part of the code stays clearly darker than the background.
Make it large enough
As a rule of thumb, print a code at least 2 × 2 cm for close-range scanning, and make it larger for anything viewed from further away. A common guide is a distance-to-size ratio of about 10:1, so a code scanned from one metre away should be roughly 10 cm wide.
Understand error correction
QR codes include redundancy so that they still work when partly damaged or covered. There are four levels:
| Level | Damage it can tolerate |
|---|---|
| L | About 7% |
| M | About 15% |
| Q | About 25% |
| H | About 30% |
Higher levels make the code denser, but they allow you to place a small logo in the middle. If you add a logo, choose level H, keep the logo small, and test thoroughly.
Useful formats
- WiFi: a code can carry the network name, password and security type so guests join with one scan.
- WhatsApp: a link with a phone number and a pre-written message opens a chat directly.
- Contact card (vCard): saves a name, phone number and email in one scan.
Test before you print
- Scan with at least two different phones, one older and one newer.
- Test in dim light and at the real viewing distance.
- Print one sample at actual size and scan the paper version.
- Check that the code opens the correct page and that the page loads quickly on mobile data.
Our QR code generator lets you set colours, shapes and a logo, and warns you when contrast is too low. It creates the code in your browser, so your links and contact details are not uploaded anywhere.