DengWoLai DengWoLai

Why Your QR Code Won't Scan

Nine reasons a QR code fails to scan, ordered by how often they're the actual cause — quiet zone, physical size, contrast, logo coverage and error correction. Includes how to test it before printing 500 of them.

A QR code that won’t scan is almost never “corrupted data”. The encoded content is either there or it isn’t. What fails is the scanning: the reader can’t resolve the modules because of geometry, contrast, or damage.

Here are the causes in the order they actually turn up.

1. No quiet zone

The single most common cause, and the easiest to fix.

A QR code needs a blank margin around it, at least 4 modules wide on all four sides. That margin tells the scanner where the code ends. Put a code flush against a border, a photo, or another graphic and many readers fail outright.

If you’ve cropped the image tight to the pattern, that’s your bug.

2. Physically too small

Roughly: the scanning distance should be about 10× the code’s width. A 2 cm code is comfortable at 20 cm; at 1 m it isn’t.

Practical minimums:

Use case Suggested print size
Phone scan at arm’s length 2 × 2 cm
Poster read from 1 m 4 × 4 cm
Sign read from 3 m 12 × 12 cm

Note this depends on module size, not total size. A long URL forces a higher QR version with more modules, so the same physical size means smaller modules. A 500-character URL at 2 cm is far harder to scan than a short one at 2 cm.

3. Low contrast, or inverted colours

Scanners expect dark modules on a light background. The reverse (light on dark) is not universally supported — some readers handle it, many don’t.

Also watch the actual contrast ratio, not whether it “looks fine” on your monitor. Mid-grey on light grey fails in print even when it looks distinct on screen.

4. Logo covering too much

Logos work because of error correction. QR error correction recovers a percentage of damaged area:

Level Recoverable
L ~7%
M ~15%
Q ~25%
H ~30%

A logo occupying more than the recoverable area makes the code unreadable — and it fails intermittently, which is worse than failing outright. If you must use a logo, put error correction at H and keep the logo under 25% of the area.

Note the logo also consumes the quiet zone if placed near an edge.

5. Scaled with smoothing

Any resampling that interpolates — bilinear, bicubic, “smooth scaling” in an image editor — blurs module edges into gradients. Scanners threshold on edge sharpness, so a soft code is a code that fails.

Resize with nearest-neighbour, or better: generate the QR at the final pixel size in the first place. Our generator takes an explicit size, which avoids the problem entirely.

6. Heavily compressed as JPEG

JPEG’s block artifacts land exactly on module boundaries. A QR saved as a low-quality JPEG can have all the right data and still be unreadable.

Use PNG for anything containing a QR code. There’s no reason to JPEG it — the image has few colours and compresses well losslessly.

7. Printed on glossy stock, or behind glass

Reflections break scanning in ways a screenshot never shows. Matte paper, no lamination, and check under the actual lighting the code will be used in.

Same for codes behind glass or in a plastic sleeve: test it in place, not on the desk.

8. Screen brightness and angle

On-screen codes fail more often than printed ones for one reason: screens are dimmer than paper and reflect. Turn brightness up, tilt slightly to avoid glare, and never screenshot-then-photograph — that compounds two losses.

9. You’re testing with one reader

Different scanners differ in error correction tolerance and image preprocessing. One phone scanning successfully is not proof. Test with at least two different apps and, critically, on the oldest phone you expect to serve.

How to test before you print 500

  1. Print at final size on the intended paper, not on A4 draft
  2. Test at the intended distance and angle
  3. Test on two different phones, one of them old
  4. Test a heavily-lit and a dim environment
  5. If it’s going on a sign, tape it up and test from where people will stand

Most “it worked on my screen” failures die at step 1.

If the code encodes something that expires

Separate issue worth knowing: if the QR points at a short link with an expiry, the code keeps scanning perfectly and the page it opens is dead. The pattern is the same as a PDF watermark that vanishes: the file is intact, the thing it points at isn’t.


To generate one with an explicit size and error-correction level: QR code generator — generated locally in your browser, nothing uploaded.

Related: compress an image to an exact file size, why your PDF watermark disappears after saving