Why is my QR code not scanning? 10 fixes
A QR code that will not scan is almost never a software problem. In order of likelihood it is too small, too low in contrast, missing its white margin, behind glass, or being scanned from the wrong distance. These ten fixes are ordered so that the most common causes are eliminated first.
The thirty-second diagnosis
Before fixing anything, answer three questions. Does the code scan on another phone? Does another code scan on this phone? And does it scan on screen but not on paper?
- Another phone works: the print is marginal — size, contrast, glare. Go to the printed-code fixes.
- Another code works on this phone: the problem is your code, not the camera.
- Screen works, paper does not: the print is the problem. Screens are always sharper and always lit from behind, which is why they flatter a bad print.
Fixes for the printed code
1. It is too small for the distance
A code must be at least one tenth of the distance it is read from. A 2.5 cm code on a business card is fine at 25 cm and hopeless on a poster read from two metres. Measure the printed width and compare it with the distance, not with how it looks on your desk.
2. There is no white margin
The four-module quiet zone is part of the code. Cropping it, printing the code tight against a dark background, or letting a border touch the squares all remove the reference the camera needs to find the edges. Add white space around the code in the layout.
3. The contrast is too low
Pale grey on white, yellow on white, or red on green can look perfectly legible to you and invisible to a camera sensor. Printed on grey kraft card, even black ink loses contrast. The figure below is a real code printed in a light grey: it scans on a bright screen and fails on paper.
4. It is damaged or dirty
A crease through the pattern, a coffee ring, a scuffed sticker or a scratched laminate all break modules. If the print is on a table that gets wiped, reprint rather than hope.
5. It is glossy or curved
Gloss reflects ceiling lights straight into the lens, and a curved surface distorts the geometry. Matte laminate, flat mounting, and a stand that holds the card upright solve this. If a code is behind glass, tilt the phone until the reflection moves off it.
6. The pattern is too dense
Long content means more modules in the same width, which makes each one smaller. A long tracking URL, a full menu or a vCard with a photo all produce dense codes. Shorten the content or print bigger: there is no third option. The small, dense PNG below fails for the same reason.
Fixes for the phone and the scan
7. You are too close, or too far
Phones have a minimum focus distance, often around 10 cm. Holding the camera against the code gives a blur; holding it across a room gives a smudge. Start at 20 cm and move slowly out.
8. The lens or the app is the problem
Wipe the camera on a clean cloth — a thumbprint is enough to break autofocus. Close other apps if the camera is stuck. Use the built-in camera rather than a scanner app that asks for unusual permissions. If the phone is old, photograph the code and decode it in the reader.
9. The screen is fighting you
Scanning a code from a screen has its own failures: brightness at 30%, a blue-light filter, an anti-glare film at the wrong angle. Turn the brightness up, hold the phone slightly off-axis, and use a second device rather than scanning your own screen.
10. The data inside is wrong
If a phone reads the code but shows nonsense, the content is malformed: a missing https://, an unescaped semicolon, a vCard with commas in the wrong place, a typo. Decode it with the reader; the mistake is usually visible in the first few characters.
It scans, but nothing opens
That is a different problem, and the code is fine: the destination is missing, private or slow. Check the link in a private browser window on mobile data. If the page needs a login, some phones show a blank screen and the guest assumes the code is broken.
Stop it happening again
- Print one proof at the final size, on the final material, before the run.
- Scan it from the real distance, in the real light, on two phones.
- Keep four modules of white margin in the layout file, and tell the printer not to trim into it.
- Shorten the content: fewer characters, bigger modules, easier scans.
- Prefer matte finishes anywhere a code will be wiped, handled or lit from above.
Frequently asked questions
Why is my QR code not scanning even though it looks fine?
The usual causes are size, contrast, a missing white margin or a glossy surface. Reprint it at 3 cm or more, in black on white with a clear border, then scan from 20-30 cm in good light.
Why does the code scan on my phone but not on a customer's?
Your phone has a better camera and you know the right distance. Most failures are marginal prints that work only under ideal conditions, so test on an older phone in ordinary light.
Can a QR code stop working over time?
The pattern does not change, but the ink fades, the laminate scratches and the destination can move. Test printed codes periodically, especially the ones that take payment.
Does a bigger logo make a code unscannable?
Above about a fifth of the width, yes, unless the code uses high error correction. The generator switches automatically when you add a logo; a design program does not.
Read next: QR code for a website link (test it first) — Make a code that opens a page, then test it the way a stranger will.