When a QR code won't scan, the cause is almost always something you can see: colours that are too similar, a light code on a dark background, a white border that's been cropped, a code too small for the distance, glare, damage or a logo that covers too much. Less often the camera reads the code fine but the page it opens is broken. Work through the checks below in order and you'll usually find the problem in a few minutes.

How do you find out why a QR code won't scan?

Point two different phones at it, using the built-in camera app, and watch what happens. If neither reacts, the camera can't read the pattern, so it's a print or design fault. If a link appears but the page fails, the code is fine and the destination is the problem.

What happens Most likely cause Where to look
No phone reacts at all Contrast, inverted colours, border, size or damage The sections below
One phone scans, another doesn't A borderline code: slightly small, pale or cramped Size, contrast and border
It scans close up but not from where people stand Too small for the distance Size
It scans indoors but not in the window or under lights Glare or reflections Glare and damage
A link appears, then an error or someone else's page Dead link or a switched-off dynamic code Scans but won't open

Scanning the code on your computer screen is a useful test. If the on-screen version works and the print doesn't, the fault came in at printing.

Is the contrast too low?

Phones read a QR code by the difference in brightness between its dark and light squares. Pale grey on white, navy on black, or a code printed over a photo often fails. Black on white is the safest choice, and DENSO WAVE, which invented the QR code, advises printing black on a white background.

Brand colours can work if the code is clearly darker than its background. KeepQR's free generator measures this using the same contrast ratio that web accessibility guidelines use, and warns when it falls below 4:1:

The two colours are too similar … Use a darker code or a lighter background so phones can read it. Aim for at least 4:1.

Printing can lower contrast further. Colours often come out duller on paper than on screen, especially on uncoated stock, so test a printed proof, not just the file.

Why won't a light-on-dark QR code scan?

A white code on a black background, often called inverted, is read by some scanners and not by others. You can't control which phone your customers use, so the reliable fix is to swap the colours.

KeepQR's generator flags this whenever the code is lighter than its background: "Many phone scanners can't read light-on-dark codes. Swap the colours to be safe."

Watch for accidental inversion too. A code knocked out of a dark poster panel, or printed in white ink or pale foil on dark card, ends up inverted without anyone choosing it.

Has the white border been cropped?

A QR code needs a clear margin around it, called the quiet zone, so the scanner can tell where the code starts. DENSO WAVE specifies a margin four modules wide on every side. A module is one of the small squares in the pattern, so the border should be at least four of those squares wide.

The border is the part designers most often trim, or crowd with text, a frame or the edge of a sticker. KeepQR's generator includes a four-module border by default and shows a note if you reduce it. Most phones cope with a little less, but leave the full border when you print, and don't let anything else sit inside it.

Is the code too small for the distance?

Probably, if it scans close up but not from where people stand. A common rule of thumb, not part of the QR standard, is that a code should be at least a tenth as wide as the scanning distance: about 20 cm for a poster read from 2 metres.

Codes on things people hold should be at least 2 to 3 cm wide.

Long links make the pattern denser, with smaller squares at the same printed size, so they need more room. If a code looks very busy, shorten the link or print it larger.

Can damage, glare or a curved surface stop a code scanning?

Yes. QR codes have built-in error correction, which lets a phone rebuild missing data, but only up to a point. Damage to the three large corner squares, which phones use to find the code, is especially likely to stop it scanning, even when the rest is clean.

There are four error correction levels. Higher levels cope with more damage but make the pattern denser:

Level Data it can restore (approx.) Name in KeepQR's generator
L 7% Low: smallest code
M 15% Medium: recommended
Q 25% High: copes with wear
H 30% Highest: needed with a logo

Glare is the other common culprit. Gloss lamination, shiny vinyl, glass and plastic reflect overhead lights straight across the code. Use matt finishes, and keep codes off curved surfaces such as bottles and pipes where possible. DENSO WAVE notes that codes on shiny transparent material are hard to read, because the light areas don't reflect enough light. Print them on a solid white patch instead.

Does a logo stop a QR code scanning?

A centre logo hides part of the pattern, so the code relies on error correction to fill the gap. A small logo with error correction set to level H usually scans. A large logo, or a logo with a lower level, often doesn't.

KeepQR's generator limits a centre logo to 30% of the code's width and switches error correction to Highest when you add one. If you then lower it, the generator warns: "A logo hides part of the code. Set error correction to Highest so it still scans." On small prints such as business cards, leave the logo out altogether.

What if the code scans but the page won't open?

Then the code is readable, and the problem is where it points. Either the web page has moved or been deleted, or the code is a dynamic one whose generator has stopped forwarding scans after a trial, a scan limit or a lapsed subscription.

Read the link the camera shows before you tap. If it's your own address, fix the page or add a redirect on your website. If it's a short link on another company's domain, our guide to QR codes that stopped working explains your options.

Could it be the phone, not the code?

Sometimes. If one phone fails where others succeed, check the phone before reprinting. Clean the camera lens, hold the phone steady, keep the whole code on screen, and make sure there's enough light without glare. Google's Pixel help suggests the same checks.

Scanning can also be switched off in settings. On a Google Pixel, the Camera app's "Camera scan suggestions" setting needs to be on. On an iPhone, open the Camera app and point it at the code, or add Apple's Scan Code control to Control Centre. Other Android phones vary by maker, and Google Lens is an alternative on most of them.

Once you've found the cause, the fix is usually a quick remake: dark on light, the full white border and the right size. If the code is static, you can make it again free in a minute with the same link, and print it properly this time.