Guide · 4 min read
QR code error correction levels explained (L, M, Q, H)
Short answer
Error correction lets a QR code be read even when part of it is dirty, damaged or covered; level L restores about 7% of the data, M about 15%, Q about 25% and H about 30%, and higher levels make the code denser, so M is the usual default.
Key takeaways
- QR codes use Reed-Solomon error correction, which adds extra data so a scanner can rebuild missing parts.
- The four levels recover roughly 7% (L), 15% (M), 25% (Q) and 30% (H) of the code's data.
- Higher levels add modules, so the same link makes a denser code that needs more print size.
- M is the common default; use Q or H for rough surfaces, outdoor signs or a logo in the middle.
- Error correction is a safety margin, not a license to cover the code.
Most QR generators have a setting with four letters: L, M, Q and H. Many people leave it on the default without knowing what it does. It matters, though. It decides how much damage a code can survive and how dense the printed pattern becomes. Here is what the levels mean and how to choose.
What is QR code error correction?
Error correction is extra data stored inside a QR code that lets a scanner rebuild the message when part of the pattern can't be read.
QR codes use Reed-Solomon error correction, a method also used in CDs, DVDs and data transmission. When the code is made, the generator adds recovery codewords alongside your content. If a scanner reads a code with a smudge, a tear or a sticker on it, it uses those recovery codewords to work out what is missing.
This is why a slightly scratched code on a delivery box still scans. It's also why you can find codes with small images in the middle that work fine.
How much can each level recover?
Level L recovers about 7% of the data, M about 15%, Q about 25% and H about 30%.
| Level | Approximate recovery | Code density for the same content | Typical use |
|---|---|---|---|
| L (Low) | about 7% | Lowest | Clean screens, small labels with lots of data |
| M (Medium) | about 15% | Moderate | Most print: flyers, menus, cards |
| Q (Quartile) | about 25% | Higher | Outdoor, handled or curved surfaces |
| H (High) | about 30% | Highest | Rough environments, codes with a logo overlay |
DENSO WAVE, the company that invented the QR code, notes that M is the level most often selected, and that Q or H suit environments where codes get dirty, such as factories.
The percentages are about codewords, the chunks of data in the code. Damage concentrated over a critical area, such as the three large corner squares, can stop a scan even at level H. Those squares help the scanner find and align the code.
Why does a higher level make the code bigger?
More recovery data means more modules, so the same link needs a larger grid at a higher level.
A QR code has a fixed grid size for each version, from 21 by 21 modules up to 177 by 177. When you add recovery data, the content may no longer fit in the current version, so the generator moves to a bigger one. More modules in the same printed width means each module is smaller, and small modules are harder for phones to read from a distance.
In practice, a short link at level H may still produce a compact code. A long link or a vCard at level H can become noticeably denser. The QR code generator shows the code as you change the level, so you can see the effect directly.
The fix for a dense code is usually shorter content, not a lower level. A short, clean URL often lets you use a higher level and keep the code readable.
Which level should you choose?
Start with M, move up to Q or H for harsh conditions or logos, and use L only when the code must be as small as possible in clean conditions.
- Indoor print that stays clean (menus, business cards, posters behind glass): M.
- Things that get handled, folded or rained on (flyers, packaging, outdoor signs, stickers on equipment): Q.
- A logo or graphic placed over the middle of the code: H, and test it carefully.
- Codes shown only on screens, or tiny labels with a lot of data: L or M.
If you're unsure, generate the code at M and at Q, print both at your planned size, and scan each with two phones. Pick the one that scans reliably at the distance people will actually use.
Do codes on screens need the same level as printed codes?
Codes shown on screens can usually use a lower level, because a screen doesn't get scratched, folded or stained the way paper does.
A code in a slide deck, on a website or on a phone at a ticket gate is displayed fresh every time. The main risks there are glare, a cracked screen or a low-brightness setting, not physical wear. Level L or M is normally enough, and the lower density helps when the code has to stay small next to other content.
Print is different. The code you approve on day one is the one people scan months later, after sun, rain, fingerprints and folding. That's the main argument for choosing a level with more margin on anything that will be handled or posted outdoors. When in doubt, think about what the code will look like at the end of its life, not on the day it's printed.
Does error correction let you cover part of the code?
Only a little, and only away from the corner squares; treat error correction as a safety margin for wear, not as free space for design.
A logo in the center uses up some of the recovery capacity before the code has been scratched or smudged at all. That leaves less margin for real-world damage. If you place a logo, keep it small, use level H, and never cover the three finder patterns in the corners.
Our guide on logos and colors in QR codes goes through what still scans and what doesn't. For size and the quiet zone, see QR codes for print.
Sources
Questions
Which QR error correction level should I use?
For most printed codes, M is a good default. Choose Q or H if the code will get scratched, dirty or wet, or if you place a logo over part of it. Choose L only for clean conditions where you need the smallest possible code.
Does a higher error correction level make scanning faster?
Not in clean conditions. It helps when part of the code is unreadable. Because it makes the code denser, a high level printed too small can actually be harder to scan.
Can I change the error correction level after printing?
No. The level is built into the pattern. To change it, generate a new code and reprint.
How do I know which level a code uses?
The level is stored in the format information next to the large corner squares, and scanning apps that show technical details can display it. When you make a code with our generator, you choose the level yourself.
More guides
- QR codes for print: size, contrast and the quiet zone
- QR codes for events: tickets, schedules, Wi-Fi and feedback
- QR code menus: what works for restaurants, cafés and bars
- QR codes for musicians, bands and artists
- Dynamic vs static QR codes: what's the difference?
- How to track QR code scans with UTM parameters
- QR code security: how quishing works and how to stay safe
- Mobile landing pages for QR codes: what to put on them
- QR codes on business cards: vCard or link?
- Can you put a logo on a QR code? Colors and logos that scan