Technology 6 min read

QR Code Error Correction: L, M, Q and H Without the Maths

By Arvind Sharma Published 2026-11-29 Updated 2026-11-29
Arvind Sharma — Founder, QRPress QR Code GeneratorArvind built QRPress to give small businesses free, print-ready QR codes without scan caps, ads, or expiry. He writes guides focused on practical deployment — payments, printing, and shop-level security.

Every QR code contains extra data that lets a scanner reconstruct parts it cannot read. That is Reed-Solomon error correction, and ISO/IEC 18004 defines four levels: L, M, Q and H. Choosing between them is a trade between damage tolerance and code size. This guide explains what the levels mean in practice and which one to use for a printed code, a logo, or a surface that gets scuffed.

What Error Correction Actually Does

A QR code stores the payload plus redundant codewords. When a camera reads a damaged or obscured grid, the decoder uses the redundancy to reconstruct the missing parts instead of failing. That is why a scratched code can still scan.

The redundancy is a percentage of the codewords, not a guarantee that a fixed area can be covered. It helps with scuffs, creases, small print defects and a centre logo. It does not fix modules that are too small to resolve, a background with too little contrast, or a missing quiet zone.

Higher levels add more redundant codewords. For the same payload, that means a higher version with more modules, so the code is physically larger at the same module size.

The Four Levels

LevelNameApproximate recoveryTypical use
LLowAbout 7% of codewordsShort digital payloads, clean screens
MMediumAbout 15%Default for most print
QQuartileAbout 25%Outdoor signs, packaging, occasional damage
HHighAbout 30%Centre logos, harsh environments

The percentages are codeword recovery, not a promise that a given percentage of the printed area can be painted over. Damage concentrated in a finder pattern is much worse than the same damage spread across the data region.

Most generators default to M because it is a good compromise. For a printed code that will be handled, use Q. If you plan to put a logo in the middle, use H.

The Size Trade-off

Take the same 60-character URL. At level M it fits in a version 4 grid of 33 by 33 modules. At level Q it needs about version 5, 37 by 37. At level H it needs even more. The extra modules are the redundancy.

If the physical size stays the same, more modules mean smaller modules, and smaller modules are harder to print and scan. So raising the error correction level is only free if you can also make the code larger.

This is why shortening the URL matters. A 20-character short link at level H can be smaller than a 120-character URL at level M, even though H has more redundancy. Shorten the payload first, then spend the saved space on error correction.

Logos, Damage and Styling

A centre logo deliberately destroys part of the data region. Keep it under about 20% of the code width, use level H, and leave a light border around the mark so its pixels do not blend into the modules.

Stylised dots and custom finder eyes also consume tolerance. Keep the module geometry close to square and the finder rings intact. The custom styling guide covers the safe limits.

For garments, outdoor signs and vehicle wraps, use Q or H plus matte stock. The error correction handles abrasion; it cannot compensate for glare or a contrast ratio that is too low.

Choosing a Level in Practice

  1. Screen-only code, short payload, clean environment: M is fine.
  2. Business cards, menus, flyers: Q gives useful tolerance at little cost.
  3. Packaging, outdoor signs, vehicles, garments: Q or H, with a larger print size.
  4. Centre logo or heavy styling: H, and test the result on three devices.
  5. Very long payload: shorten the URL instead of dropping to L, because L leaves no margin for print defects.

Print a proof and scan it at final size. The level is a design input, not a substitute for a test.

Frequently Asked Questions

What do the QR error correction levels mean?

L, M, Q and H recover roughly 7%, 15%, 25% and 30% of codewords respectively. Higher levels tolerate more damage but need more modules for the same payload.

Which level should I use for a QR code with a logo?

Level H (30%). Keep the logo under about 20% of the code width and give it a light border.

Does higher error correction make a code scan farther?

No. It tolerates damage. For the same payload, a higher level adds modules, which can make each module smaller at a fixed size. Distance depends on module size, contrast and quiet zone.

Can error correction fix a low-contrast code?

No. If the camera cannot distinguish dark modules from the background, there is nothing to reconstruct. Fix the colours first.

Is level L ever a good choice?

For short payloads on clean digital screens, yes. For print, M is a safer minimum because ink spread, creases and handling all consume tolerance.

Create Your QR Code Instantly

Generate a print-ready QR code with the right error correction level. Use our secure, no-registration static systems or spin up a dynamic tracker campaign in seconds.

Create QR Code