Skip to content
Urlzee

Why Is My QR Code Not Scanning? 10 Fixes

By Urlzee Team · Published · 6 min read

A QR code usually fails to scan for one of three reasons: the camera can't see it clearly, the pattern itself is hard to read because of contrast, size, margin or density, or the code scans but the link inside it is broken. Work through the ten checks below in order; the first few take seconds.

Find out which before changing anything. It saves a lot of guessing.

  1. Scan a different QR code that you know works. If that fails too, the issue is the phone or the lighting.
  2. Scan the problem code with a second phone. If one phone reads it and another doesn't, the code is marginal: readable, but with no tolerance left.
  3. Watch what happens. If no link appears at all, the pattern can't be read. If a link appears and then leads to an error or a blank page, the pattern is fine and the destination is at fault.
What you seeLikely causeGo to fix
No code scans on this phoneCamera, lens, light or settings1, 2
Camera never recognises this codeContrast, margin, blur or size3–7
Works close up, not from a distanceToo small or too dense6, 7
Recognised, but shows text instead of a linkContent is not a valid URL9
Link opens an error pageBroken or expired destination10

Fix 1: Clean the lens and steady the phone

A smeared lens softens the edges of the pattern. Wipe it, hold the phone still, and let the camera focus. If the phone is very close, pull back: most cameras cannot focus within a few centimetres, and the whole code plus its margin has to fit in the frame.

Also check that QR scanning is switched on. On an iPhone, look for "Scan QR Codes" in the Camera section of Settings. On Android, the setting varies by manufacturer; if the camera app ignores codes, try the scanner in the quick settings panel or Google Lens.

Fix 2: Deal with light, glare and angle

Cameras need even light. A code in deep shadow is noisy, and a code under a spotlight or behind glass reflects a white patch that wipes out part of the pattern.

Tilt the phone slightly to move the reflection off the code, or shade it with your hand. If the code is on a screen, raise the screen brightness and turn off any dark-mode or colour-inverting extension that may be changing it. For printed codes you control, choose matte finishes over gloss.

Fix 3: Increase the contrast

Scanners judge each square as dark or light by brightness. A pale grey, yellow or pastel code on white doesn't give them enough to work with, and neither does a dark code on a dark or patterned background.

Regenerate the code in a dark colour on a white or very pale background. Viewing the design in greyscale is a quick test: if the code doesn't stand out sharply, change the colours.

Fix 4: Don't invert the colours

A light code on a dark background looks smart on a dark design and is read by many current phones, but not by every scanner app or older device. If some people report failures and others don't, inversion is a prime suspect. Put a dark code on a light panel instead.

Fix 5: Restore the quiet zone

The quiet zone is the empty margin around the pattern, and the standard asks for four modules of it on every side. Without it, the scanner can't tell where the code stops.

Look for anything touching the pattern: a border, text, the edge of a sticker, a photograph, a tight crop. Give the code clear space in its own background colour all the way round.

Fix 6: Make it bigger for the distance

A code that reads at 20 cm may be unreadable at 2 m. As a rule of thumb, the code's width should be about a tenth of the scanning distance, and around 2 cm is a practical minimum for close-up use.

If people can't physically get closer, as with a poster behind a counter or a slide in a large room, the only fix is a larger code. The QR code size guide has a distance table.

Fix 7: Put less data in the code

The more characters a code holds, the more squares it needs and the smaller each one becomes. A long URL with tracking parameters, or a full contact card, can produce a pattern too fine for a small print size.

Shorten the link with the URL shortener and generate the code again from the short link in the QR code generator. The grid shrinks, each square gets larger, and the code reads from further away. A very high error correction level also adds density, so drop from High to Medium if the code is on a clean surface and doesn't need the extra protection.

Fix 8: Replace a blurry, stretched or damaged image

Check how the image was produced.

  • Blurry edges: a small PNG has been enlarged, or the code was saved as a JPEG or screenshotted. Download a fresh file at a larger size, or use SVG for print.
  • Not square: the image was resized by dragging one side. A QR code must keep equal width and height.
  • Physical damage: scratches, creases, stains or a sticker over part of the code. Error correction can cover limited damage, but not to the three large corner squares.
  • Curved or wrinkled surface: the grid is distorted. Move the code to a flat area or make it smaller relative to the curve.

For codes that will take wear, regenerate at Quartile or High; error correction levels explains the trade-off.

Fix 9: Check what the code actually contains

If the phone recognises the code but shows plain text or a web search rather than a link, the content isn't a proper URL.

Scan it and read the text carefully. Typical faults are a missing https://, a space or line break in the middle, a typo in the domain, or a URL that was cut off when it was copied. A code can't be edited, so correct the content and generate a new one.

If scanning works and the page doesn't, the QR code has done its job and the link has not.

Paste the URL into the link checker to see the status code and every redirect on the way. A 404 means the page has gone, a 5xx means the server is failing, and a redirect to a login page means the content isn't public. Other causes include:

  • a short link that was deleted, paused or given an expiry date
  • a QR service that deactivates codes when a trial or subscription ends
  • a shared-document link whose permissions were changed
  • a page that works on desktop but blocks or breaks on mobile

If the code points to a short link whose destination you can edit, repoint it and every printed copy is fixed. If it points directly at a dead address, the code has to be replaced. This is the main difference between static and dynamic QR codes.

How do you stop it happening again?

Test before anything is printed in quantity. Print one copy at final size on the final material, scan it with two phones from the real distance in the real lighting, and open the page on mobile data. Five minutes of testing costs far less than a reprint.

Frequently asked questions

Why won't my phone scan a QR code?
The most common causes are a dirty lens, poor light, holding the phone too close, or a code that is too small, low in contrast or missing its blank margin. If other codes scan fine, the problem is the code rather than the phone.
Why does my QR code scan but not open anything?
The pattern is fine but the content is the problem. The link may be broken, expired or missing https://, or the page may need a login.
Can a damaged QR code still be scanned?
Often, yes. QR codes include error correction that can rebuild between about 7% and 30% of the data depending on the level chosen, but damage to the three large corner squares usually stops a scan.
Do QR codes stop working after a certain number of scans?
The pattern has no scan limit. If a code stops working after a period or a number of scans, the service behind the link in the code has disabled it.