Skip to content

Error correction: which level for a printed QR code?

L, M, Q or H? What each QR code error correction level protects against, what it costs in density, and which one to pick for a code that goes to print.

What error correction does

A QR code does not store your web address just once. Alongside the data, it carries recovery information, calculated so that a phone can rebuild the missing parts when some of the small squares, the modules, are hidden or damaged. This is called error correction, and it is the reason a code with a coffee stain on it can still open the right page.

The QR code standard, ISO/IEC 18004, defines four levels of error correction. Whoever generates the code picks one, and the choice is built into the printed pattern: you can’t raise it once the code is on paper. That is why it is worth understanding before you print.

The four levels: L, M, Q and H

Each level states how much of the code’s data can be rebuilt if it is lost. These are the values given by the standard.

  • L (low): about 7% of the data can be recovered.
  • M (medium): about 15%.
  • Q (quartile): about 25%.
  • H (high): about 30%.

What happens to a code once it is printed

On a screen, a code stays perfect. On paper, card, glass or metal, it has a harder life. Error correction keeps it working through the usual accidents, within limits: the percentages above count data, not surface. A phone reads the code in small blocks, and one damaged module spoils the whole block it belongs to, so a few thin scratches spread across the code can use up more of the margin than one neat stain of the same size.

  • Stains and splashes on menus, table tents and kitchen labels.
  • Scratches and scuffs on packaging that travels in boxes, bags and pockets.
  • Folds and creases on flyers and leaflets, or on posters that are rolled and pinned.
  • Fading from sunlight on shop windows and outdoor signs.
  • Small printing defects: ink spreading on absorbent paper, a slightly misaligned print, a dirty roller.

Logos use up the margin

Many brands place a logo in the middle of their code. This only works thanks to error correction: the logo hides modules, and the recovery data rebuilds them. A logo therefore spends part of the margin that was meant for stains and scratches. A code whose logo already uses most of that margin has little left for real life.

If you add one, keep it small and centred, well below the limit of the level, and never let it touch the three large squares in the corners. Those squares, and the empty margin around the code called the quiet zone, are what a phone uses to find the code in the first place. Error correction does not protect them: if they are covered or cropped, no level will save the scan.

What a higher level costs

Recovery data takes room. For the same content, a higher level needs more modules. In byte mode, the one used for web addresses, the smallest QR code (version 1, 21 × 21 modules) holds 17 characters at level L, but only 7 at level H. To hold those same 17 characters at level H, the code has to grow to version 3, which is 29 × 29 modules.

At the same printed size, more modules means smaller modules, and smaller modules are harder to read from a distance or with a modest phone camera. That is the real trade-off: robustness against density. Our guide on the size of a printed QR code explains how module size and scanning distance relate.

Which level to choose for print

For a code that will be printed, handled and exposed to the weather, choose the highest level you can afford in density. Lower levels make sense mostly on screens, or when the content is so long that a high level would make the code too dense for the space you have. In that case, the better fix is to shorten the content rather than lower the protection.

  • Menus, labels, packaging, outdoor signs: level H.
  • Clean, protected prints such as framed posters or business cards: Q or H.
  • Codes with a logo: H, with a small logo.
  • Codes shown only on a screen: M is usually enough.

How Lumberjack handles it

Lumberjack sets error correction to the maximum by default: a code can take up to 30% damage from stains, scratches or folds and still scan. You don’t have to pick a level, and you can’t pick a weak one by mistake.

The cost in density is offset by the short link. Each code holds an l-k.io address instead of your full web address, so it needs fewer modules. At the same printed size, it can be read from 1.3 times further away than a code that holds a long address. And before you can download it, each code is read by a real QR reader.

Frequently asked questions

Can I change the error correction level of a code that is already printed?

No. The level is part of the printed pattern. To change it, you have to generate a new code and print it again.

Does a higher level make a code slower to scan?

Not by itself. What slows a scan is modules that are too small. If a higher level makes the code too dense for its printed size, print it bigger or shorten its content.