A QR code that will not scan is worse than no code at all: you paid to print it and people walk away annoyed. Most failures come down to three things: size, contrast and the white border. This guide covers all three.
The simple rule: 10 to 1
A good rule of thumb is that a QR code should be about one tenth as wide as the distance it is scanned from.
- Business card or product label, scanned from 15 to 20 cm: at least 2 cm wide.
- Flyer, menu or table card, scanned from 25 to 30 cm: at least 3 cm.
- A4 poster on a wall, scanned from about 1 m: at least 10 cm.
- Shop window, scanned from about 2 m: at least 20 cm.
- Banner or billboard, scanned from 5 m: at least 50 cm.
When in doubt, go bigger. Nobody has ever complained that a QR code was too easy to scan.
Less in the code means a smaller code works
Every QR code is a grid of small squares. The more text you put in it, the more squares it needs, and the smaller each square gets at the same printed size. Small squares are harder for phone cameras to read.
So:
- Link to a short, clean address, not a long link with tracking codes.
- Keep Wi-Fi names, messages and contact cards short.
- If a code looks very dense, shorten what is in it before you make it bigger.
Contrast: dark on light
Phones read QR codes by telling dark squares from light ones. Keep it simple:
- Dark squares on a light background. Black on white is the safest. Dark green, navy or brown on white or cream also work well.
- Avoid light-on-dark (inverted) codes. Some phones read them; many do not.
- Avoid pale colours such as yellow, light grey or pastel pink for the squares.
Our free QR code generator checks the contrast as you choose colours and blocks downloads that phones would struggle to read.
Do not crop the white border
The empty margin around a QR code (called the quiet zone) is part of the code. It tells the camera where the code starts. Designers often crop it to save space, and then the code fails. Leave at least a border of four squares on every side, and do not put text or patterns right up against it.
Logos: small and central
A logo in the middle looks good and still scans, because QR codes have built-in error correction that can rebuild a damaged part. But that only works if the logo is small. Keep it under about a fifth of the code's width, and use the highest error correction setting. The generator on this site does both for you when you add a logo.
Which file to print from
- PDF or SVG for printing. They are vector files, so the code stays sharp at any size.
- PNG for screens, social media and documents. Use the 2048 px size if you must print from a PNG.
- Never print a screenshot of a QR code. It is usually blurry when enlarged.
Test before you print hundreds
Print one copy at the real size. Scan it with two or three different phones, including an older one, from the distance people will actually stand. Check that it opens the right thing. Then print the rest.



