· Yosef Worku
QR Code Error Correction Levels: L, M, Q and H Explained
What error correction does, how much each level can recover, what it costs in code density, and which level to pick for logos, print and screens.
QR codes have four error correction levels — L, M, Q and H — that let a scanner rebuild the data when part of the code is dirty, damaged or covered. L can recover about 7% of the data, M about 15%, Q about 25% and H about 30%. Higher levels are more robust but need more modules, so the code gets denser.
How error correction works
A QR code stores your content plus extra recovery data computed with Reed–Solomon error correction — the same family of codes used on CDs and in deep-space communication. When some modules can't be read, the scanner uses the recovery data to reconstruct what's missing. As long as the damage stays within the level's budget, the code decodes exactly as if it were perfect.
| Level | Recovers about | Typical use |
|---|---|---|
| L | 7% | Large, clean codes that must hold a lot of data |
| M | 15% | The everyday default for print and screens |
| Q | 25% | Codes exposed to wear: floors, outdoor signs, packaging |
| H | 30% | Codes with a logo in the middle, or harsh environments |
The percentages are of the data codewords, per the QR code's designer, DENSO WAVE. Level M is the most commonly used.
What higher levels cost
Recovery data takes space. For the same content, moving from L to H adds modules: the code may jump to a larger version (QR versions run from 21×21 modules at version 1 to 177×177 at version 40). At a fixed printed size, more modules means each module is smaller — and module size is what a camera actually has to resolve. The print sizing guide covers how that plays out on paper.
So error correction is a trade: more robustness for more density. Two easy ways to keep both in check:
- Encode less. A short URL needs far fewer modules than a long one. A dynamic code always encodes a short link, however long the destination is.
- Print a little bigger when you choose Q or H.
Logos spend the error correction budget
A logo placed over the middle of a code covers modules, and to the scanner that's damage. That's why logo codes use level H — and why the logo should stay well inside the budget, around 10–12% of the code's area, leaving margin for glare, scratches and older cameras. The full rules are in the logo scannability guide.
One part of the code gets no help from error correction: the three large corner squares (finder patterns). They're how a phone finds the code at all, so never cover them.
Which level should you choose?
- No logo, normal print: M or Q. MotifQR's automatic setting uses Q, for a little extra margin on paper.
- A logo in the middle: H — MotifQR switches to it automatically when you add one. You can also pick any level yourself.
- Rough conditions (outdoor signs, floor stickers, packaging that gets handled): Q or H.
- Huge content in a big code on a clean surface: L can work, but a dynamic code with a short link is usually the better fix.
The studio's scan check flags risky combinations — a large logo, low contrast, a dense grid — while you design, so you can fix them before anything is printed. Adding a logo? Start with the QR code with logo generator.
Questions
What are the four QR code error correction levels?
L, M, Q and H. They can restore roughly 7%, 15%, 25% and 30% of a code's data respectively if part of it is damaged or covered.
Which error correction level should I use?
M is a good default for most printed codes. Use H when a logo covers part of the code or the code will face wear, and L only for clean, large codes that need to hold a lot of data.
Does higher error correction make a QR code harder to scan?
Not directly, but it adds modules. For the same content an H code has a denser grid than an L code, so at the same printed size each module is smaller. Print H codes a little larger.