Printed a code and need to change the link? QR Gen makes codes you can edit later.Edit codes after printing with QR Gen.See QR Gen

Open on your phone

QR code not scanning? 12 causes and fixes

A QR code not scanning is usually one of twelve faults. Find out whether the phone or the code is to blame, then fix it with measured examples.

When a QR code is not scanning, it’s almost always one of twelve faults: a phone setting or camera mode, distance and focus, a missing white margin, weak contrast, inverted colours, too much data, too small a print, glare, a curved or damaged surface, a logo eating the error correction, or a code that reads fine and points at a dead page. Work out which side is broken first. It takes a minute and saves reprinting a code that was never the problem.

Everything below is also a checklist for the person who made the code. If you’re only trying to read someone else’s, start with the phone-side items (1 and 2) and then go back to the main guide on how to scan a QR code.

Find out which side is broken

Two quick tests split the problem in half.

  1. Scan it with a second phone, preferably from another brand. If the second phone reads it at once, the fault is on the first phone, and you want items 1 and 2.
  2. Put it through a scanner that shows what’s inside. Photograph or screenshot the code and drop it into our free scanner. It prints the raw text and, for links, the domain. If the text is right but the page fails, jump to item 12. If the scanner can’t read it either, the code itself needs work and the items from 3 onwards apply.

Phone cameras and decoders differ, so treat a failure there as a warning, not a verdict. A code that only the best phone in the building can read is still a bad code.

The twelve causes

1. The phone isn’t set up to scan

Phones read codes through settings that can be off or modes that skip scanning. Google’s Pixel help says to check that Camera scan suggestions is on (Settings > More settings), and Google’s Camera page says you can’t scan a QR code in Portrait or Video mode. Samsung says to open Camera with PHOTO selected and, if it won’t scan, turn on the Scan QR codes switch in Camera settings. On an iPhone, stay in Photo mode, and add Scan Code to Control Center if the Camera app disappoints you.

2. Distance, focus and a dirty lens

Too close and the camera can’t focus; too far and the squares merge. Move the phone back slowly until the code sharpens, hold it still for a second, and wipe the lens with a clean cloth. A smudged lens blurs fine detail, and the small squares of a dense code are the first thing to go.

3. No white margin around the code

Denso Wave, which invented QR codes, says the format requires a four-module wide margin on all sides and describes it as a clear area where nothing is printed. The usual causes are a code cropped tight in a design file, a code placed up against a photo, or a border drawn around it.

We tested the effect with the decoder our scanner uses. We drew a clean code with a dark patterned surround and varied the gap between them. With a gap of 4, 2 or 1 modules it read; with no gap it failed. One clean synthetic image isn’t a phone in a shop, so don’t read a one-module margin as safe. Keep the full four.

4. Weak contrast and light colours

A code needs dark squares on a light ground, and the gap between them matters more than the hue. We took a black code and lightened it step by step to grey on white, again with our decoder. It read down to a contrast ratio of 2.3 and failed at 2.1. Pale yellow on white, at a ratio of 1.4, failed. A dark navy on light yellow, ratio 14.7, read without trouble. Our own generator flags a pair below a ratio of 3, because a phone camera in poor light is worse than a clean test image.

Denso Wave’s FAQ goes further for one colour: it says a red code on a white background can’t be read, and recommends black on white. Our decoder read pure red on white at a ratio of 4.0, so phones may cope, but the maker’s warning is reason enough to avoid it on something you’re about to print a thousand times. The full story is in QR code colours that still scan.

5. Inverted colours

A white code on a black background looks stylish and is a bad bet. In our test the same code failed when the decoder was told not to try inverting, and read when it was allowed to try both. Our scanner tries both. Some readers won’t. If the design needs a dark panel, put a white block behind the code and print the code black.

6. Too much data in one code

Every extra character adds modules, and denser codes mean smaller squares at the same print size. We measured with node scripts/qr-facts.mjs on a short link and on the same site with tracking tags added.

https://example.com/menu
https://www.example.com/restaurant/menu/dinner?utm_source=table-tent&utm_medium=qr&utm_campaign=diwali-2026&ref=table12&session=8f3a1c9e72b44d6aa1f0
Payload Bytes Level Version Modules (with margin) Module width in a 4 cm code with its margin
Short link 24 M 2 25 by 25 (33) 1.21 mm
Long tracking link 148 M 8 49 by 49 (57) 0.70 mm
Long tracking link 148 H 12 65 by 65 (73) 0.55 mm
Same plus token and redirect 235 H 16 81 by 81 (89) 0.45 mm

In the same 4 cm square, the squares in the last row are about a third the width of those in the first. That is the main reason a code that scanned fine on screen fails on a small sticker. Denso Wave says the module size has to be chosen with the printer and the reading device in mind, and a small, dense code stretches both. The fix is to put less in the code: link to a short address and let the website carry the long query. A shorter address, or a dynamic code that redirects, keeps the printed code at the size of the first row.

7. Too small for the distance

A code that reads at arm’s length on a menu won’t read from two metres on a shop window. A common rule of thumb is about one unit of code width for every ten units of distance, which isn’t a standard but is a fair starting point. What size should a QR code be when printed? turns it into a table by use.

8. Glare

Gloss, lamination and glass bounce light straight back into the lens and wipe out the squares. Tilt the phone a few degrees, step to the side, or shade the code with your hand. If you control the print, use a matte finish.

9. A curved or creased surface

Codes bend on bottles, bags and wrapped products. Denso Wave’s FAQ makes the point about a carrier bag: flatten it as much as possible so any distortion in the code is removed. On a bottle, place the code on the flattest panel and keep it small enough that it doesn’t wrap round the curve.

10. Damage, smudges and stickers on top

Error correction can rebuild lost squares, at 7, 15, 25 or 30 percent for levels L, M, Q and H. That budget is a safety margin for wear, and it doesn’t cover a missing corner: every code needs its three large corner squares intact. A scratched or sun-faded sign, a sticker slapped over a corner, or a code printed on a creased flyer can fail while looking nearly fine. Replace it.

11. A logo or style that eats the repair budget

A logo in the middle covers modules the decoder must reconstruct from the error correction, and so does a heavily styled dot pattern. Our generator forces level H when you add a logo for that reason. Level H also makes the code denser: for our short link, going from M to H moves the code from 25 by 25 to 29 by 29 modules. If a logo code is flaky, shrink the logo before anything else. How to add a logo to a QR code without breaking it has the routine.

12. The code reads, the page doesn’t

Sometimes the camera did its job and the thing it found is broken. The link has a typo, or the page was removed. A dynamic code from a service can also stop working when a subscription ends, which a static code never does; do QR codes expire? explains the difference. Our scanner will show the raw text, which settles it in seconds: if the address is right and the page loads in a browser, the code is fine and the fault lies with that phone or its connection. If the address is wrong, the code has to be remade.

What to do before you print

  1. Keep the payload short. Aim for a code no denser than version 3 or 4 for a sign.
  2. Use black, or a dark colour, on white. Leave all four modules of margin.
  3. Add a logo only if it matters, and then use level H and test it.
  4. Test the printed proof on two phones of different brands, at the distance people will stand.
  5. Open the link on mobile data, not your office Wi-Fi.

A code you will be changing later, such as a menu or a campaign link, is also a good case for a dynamic code, which keeps the printed pattern short and lets you fix the destination without reprinting.

Ready to try it? Free, no sign-up, made in your browser.

Open the scanner