The familiar observation
A crumpled flyer, a sticker with a corner peeled off, a code with a logo printed in its middle — and your phone still opens the link. That isn’t luck, and the phone isn’t guessing. QR codes were designed to survive damage.
The QR Code was developed in 1994 by DENSO WAVE, originally to track automotive parts on production lines — a setting full of grease, scratches and dust. It later became an international standard, ISO/IEC 18004.
What’s really going on
A QR code’s small black and white squares are called modules. They encode the message in chunks called codewords. When a code is created, the generator adds extra codewords calculated with Reed–Solomon error correction, a method also used for data on CDs and in communications.
Those extra codewords don’t repeat the message. They hold mathematical relationships between all the data codewords. When some codewords can’t be read, the scanner uses those relationships to work out what they must have been — a bit like solving for a missing number when you know what the totals should be.

| Level | Approx. data that can be restored | Typical use |
|---|---|---|
| L (Low) | 7% | Clean environments; fits the most data |
| M (Medium) | 15% | A common general-purpose choice |
| Q (Quartile) | 25% | Codes likely to get dirty or worn |
| H (High) | 30% | Harsh environments, or codes with a logo on top |
There is a trade-off. More error-correction data means less room for the message, so for the same content a higher level needs a bigger, denser code.

Why some damage matters more than other damage
Not every part of a QR code is equal.
- The three large squares in the corners are finder patterns. They tell the scanner that this is a QR code, where it is, and which way up it is. If one is badly damaged, the scanner may not recognise the code at all, even though the data area is intact.
- Format information near the finder patterns tells the scanner which error-correction level and mask were used. It is stored twice for safety.
- The data area — everything else — is where error correction does its work.
A logo in the centre of a code works because it sits in the data area and uses up part of the error-correction budget on purpose. That leaves less spare capacity for real-world damage.

See it for yourself
Try this safely
Generate a QR code for a harmless address, such as your own website, using a generator that lets you choose the error-correction level. Make one at level L and one at level H. Print both and cover a growing area of each with a sticky note, away from the corner squares. The level H code should keep scanning with noticeably more of it covered. Results depend on your phone, the lighting and exactly what you cover.
Why it won’t always work
Error correction has limits:
- Too much damage. Beyond the level’s capacity, the data can’t be rebuilt.
- Damaged finder patterns or a missing quiet zone — the blank border around the code — can stop the scanner from locating the code at all.
- Poor image quality: blur, glare, low contrast, a curved surface or a code printed too small for the distance.
A security footnote
Because a damaged code can still scan, a sticker placed over a genuine code can send you somewhere else entirely. Before entering passwords or payment details, check the address your phone shows after scanning.
Related guides
- Why Do Computers Use Binary?: the ones and zeros inside.
- Why Is a Kilobyte Sometimes 1,000 Bytes and Sometimes 1,024?: how data is counted.
