You’ve probably seen a QR code on a café table, a train ticket or a parcel. Some are creased, faded or partly hidden by a logo — yet your phone reads them instantly. That ability isn’t luck. It is an engineered feature.
Those little squares carry more than the message
Unlike a traditional one-dimensional barcode, a QR code stores information across a grid of dark and light squares. The square patterns in three corners help a scanner recognise where the code is, how it is oriented and how to interpret the grid. That’s one reason you can scan a QR code even when your phone is at an angle.
But finding the code is only the first challenge. The scanner must also recover the information inside it, even if some of the grid has been obscured.
The clever part is called error correction
QR codes use a mathematical method known as Reed–Solomon error correction. In simple terms, the code includes extra information that allows a reader to reconstruct missing or damaged portions of the data. Imagine a message that carries enough additional clues for you to work out a few lost words.
There are four standard QR correction levels: L, M, Q and H. They offer approximate codeword restoration capacities of 7%, 15%, 25% and 30% respectively. The higher the level, the more space is used for those protective clues, leaving less capacity for new information.
Important: 30% does not mean you can safely remove any random third of the picture. It refers to the share of encoded codewords that can be recovered under suitable conditions. Covering a crucial detection pattern or introducing awkward distortion may still make a code unreadable.
Why are there three big squares at the corners?
Those are position-detection patterns. They give the scanning software a recognisable shape and help it determine orientation. Their placement makes fast reading possible from different angles. The surrounding light-coloured margin, often called the quiet zone, also matters because it separates the code from visual clutter.
What about QR codes with logos in the middle?
Designers sometimes place a small logo on a QR code and choose a stronger error-correction setting to tolerate the missing area. That can work, but it must be tested at realistic print sizes, distances and lighting conditions. A code that works perfectly on a bright monitor might fail on a crumpled label.
A software test you can inspect
On 2 November 2026, CurioHatch generated QR codes containing https://curiohatch.co.uk/ and decoded the resulting files with ZXing-C++ 3.1.1. The codes were generated with Python qrcode 8.2 at version 4 (a 33-by-33 module grid), fixed mask 0, ten pixels per module and an intact four-module quiet zone.

- Clean level L and clean level H: both returned the exact URL.
- Level H, central 7-by-7 square replaced with white: the decoder still returned the exact URL. The erased square starts at column 13, row 13, counting from zero within the code grid.
- Level H, all three 7-by-7 finder patterns replaced with white: no URL was decoded. The quiet zone remained intact.
The central square covers 49 of 1,089 grid modules, about 4.5%; the three finder squares cover 147, about 13.5%. These are areas of the grid, not percentages of lost codewords. The result demonstrates both recovery and the importance of locating a code; it does not measure a universal damage threshold or prove that every level-H code outperforms every level-L code.
This was a direct digital-file software test, not a phone-camera or printed-label test. Camera focus, scaling, lighting, print quality and a different decoder can change the result. Open the image at full size to inspect the intact examples. Do not reuse a deliberately damaged example for a payment, ticket or safety-critical label. Compare this with the barcode check-digit example, which detects some transcription errors without reconstructing a damaged message.
The next time you scan one…
For a printed version of the test above, count the margin as well as the 33 data-grid modules. Four blank modules on each edge bring the total width to 41. At a hypothetical print scale of 0.5 mm per module, the complete symbol takes up 20.5 mm, including a 2 mm clear margin on either side. Cropping the artwork to 16.5 mm keeps every module of the grid and loses the entire margin.
The takeaway: QR codes are designed not just to store data, but to survive some damage. Their reliability comes from clever maths, not magic.
Sources and further reading
DENSO WAVE: Error Correction Feature
DENSO WAVE: What Is a QR Code?
Cover graphic is a conceptual illustration and is not intended to scan.

Leave a Reply