QR code error correction levels, explained

By the QR Sticker team at Omelas · 2 min read

Every QR code carries extra data that lets a scanner rebuild the message when part of the code is dirty, torn or covered. How much extra data depends on the error-correction level chosen when the code is made.

The four levels

QR codes use Reed–Solomon error correction, the same family of techniques used on CDs and in deep-space communication. The standard defines four levels. Each is described by the approximate share of the code's data that can be lost and still recovered:

These percentages refer to codewords, the bytes the data is packed into, rather than to a neat area of the printed square. A small scratch in an awkward place can hurt more than a larger mark elsewhere. The figures are best read as relative robustness.

The trade-off: robustness versus density

Error correction is not free. Recovery data takes up space in the grid, so a higher level needs more modules to carry the same link. For a short link the difference is small. For a long one, moving from L to H can make the code noticeably denser.

Denser codes need to be printed larger to stay readable. That is why the right level depends on the situation. A code shown on a clean screen can use a low level. A code on a sticker that will be handled, rained on or partly covered by a design needs a high one.

Why designed codes use level H

Stylised QR codes change how modules look. They round them, turn them into dots, tint them with colour from an image, or place a caption nearby. Each change slightly reduces how cleanly a camera can read individual modules. Extra error correction gives that styling room to breathe.

QR Sticker always generates codes at level H. It also keeps the three large corner squares (the finder patterns) and the quiet zone clear, because no amount of error correction can rescue a code whose finder patterns cannot be located.

What error correction cannot fix

Practical advice

If you are using a generator that lets you choose, pick H for anything printed or decorated, and keep the link short so the code stays compact. If a styled code fails a scan test, reduce the decoration before you reduce the error-correction level: switch to square modules, darken the ink or remove the image, then test again.