QR Code Error Correction: L, M, Q and H
Error correction adds redundant information to a QR code so a reader can recover data if some parts are obscured or damaged. The four settings are L, M, Q and H. Choosing a higher level can help in a demanding environment, but it also uses space that could otherwise hold payload data. The best level depends on the code's purpose, physical size and design.
What the recovery percentages mean
The usual approximate recovery figures are L around 7%, M around 15%, Q around 25% and H around 30%. These are estimates of codewords that may be restored under suitable conditions, not a promise that the same percentage of the visible square can be covered. Damage location and pattern matter: a clean missing area can behave differently from a scratch that crosses critical alignment or finder features, and a code may fail before the nominal amount is reached.
Error correction does not make a low-quality print, poor contrast or extreme distortion safe. Keep the clear quiet zone, use a strong dark-on-light design and avoid crushing or stretching the square. Treat the percentages as a comparison among settings, not permission to obscure part of a customer's code.
Compare L, M, Q and H
| Level | Approximate recovery | Useful starting point | Trade-off |
|---|---|---|---|
| L | About 7% | Clean, controlled display with limited space | Lowest redundancy; less tolerance of damage |
| M | About 15% | General everyday use | Moderate capacity cost and resilience |
| Q | About 25% | Prints likely to encounter wear | More redundancy and a denser or larger symbol |
| H | About 30% | Logo placement or harsher conditions, with testing | Highest redundancy; least capacity for payload |
The levels are not a simple progression from bad to good. A clean menu printed in a protected position might work well at M. A small label with a long payload might become too dense at H. A poster outdoors that may be rubbed or marked could justify Q or H, but the code still needs a suitable size, contrast and print finish.
Why higher correction can make a code bigger
QR symbols have versions numbered 1 to 40. Version 1 uses a 21 by 21 module grid and the largest version, 40, uses 177 by 177 modules. More data or added redundancy can require a higher version with more modules. If the physical square stays the same width, the modules become smaller; that can make scanning at a distance harder. If you maintain the same module size, the printed code has to grow.
Capacity is also affected by the type of data: digits, letters and other characters use space differently. A compact web address can fit more easily than a long text passage. Higher error correction reduces the room available for the payload, so a dense symbol can become larger or harder to scan. For advice on judging range, read our QR code distance guide; for actual output dimensions, see print size recommendations.
When H is worth considering
Choose H when you have a specific reason to expect partial obstruction or damage. A centre logo is a common reason, because the mark covers modules. Error correction may help the code remain readable if the logo is modest, but it does not guarantee success. Keep the mark small, leave the finder patterns and outer edge clear, and scan the exported code at its intended print size on several phones before use. If it is unreliable, remove or shrink the logo rather than assuming H will fix it.
H can also be considered for a code placed outdoors or on an item exposed to handling, provided the overall design is still large and high-contrast enough. Think about likely damage rather than choosing the maximum automatically. A weatherproof sign in a protected case may face less wear than a small label on a frequently handled item. Where damage can cover the whole code or the quiet zone, no correction setting can help.
When a lower level is the better choice
Use a lower level when compactness is important and the code will be displayed cleanly, with no logo or likely damage. This is especially relevant for small prints and long payloads: adding redundancy may force a higher version, producing finer modules within a limited area. At small physical sizes, the module grid may become too fine for a camera or printer to reproduce reliably.
If a lower setting lets the code remain simpler and larger per module, that may make practical scanning easier. But do not reduce correction simply to squeeze a long web address into tiny artwork. Shorten or simplify the payload where appropriate, enlarge the printed symbol, or redesign the layout. Our print resolution guide explains how to preserve crisp edges when exporting.
A decision process for a real project
- Start with the use: Is the code on a protected menu, an outdoor poster, a product label or a design with a logo?
- Estimate the space: Set the expected physical size and scan distance before adding decorative features.
- Choose a sensible level: M is a reasonable everyday starting point; consider Q or H only when damage or obstruction is plausible.
- Inspect the resulting grid: More payload and correction can increase version and module count. If modules look crowded, enlarge the code or reduce the payload.
- Test a finished sample: Check the real export or print at actual size, under expected light, using more than one phone.
QRCodeBarn creates free static QR codes for URLs and other supported data. If the design includes a logo, use the logo QR guide alongside this one. Static codes do not expire, but changing encoded content requires generating and distributing a replacement; QRCodeBarn does not provide dynamic code editing or scan analytics.
Frequently asked questions
Which QR error-correction level should I use?
M is a practical everyday starting point. Consider Q or H if the code may be damaged or has a logo, then check that the resulting symbol remains large and reliably scannable.
Can H correction guarantee that a logo-covered code will scan?
No. H offers approximately 30% recovery in suitable conditions, but that is not a guaranteed coverable area. Keep logos modest and test the final design on multiple phones.
Does higher correction make the QR code larger?
It can. Extra redundant data may require more modules or a higher QR version. If the physical size does not grow, each module can be smaller and harder to scan.
Can error correction fix a blurry or low-contrast print?
No. Error correction helps recover some missing or damaged data; it cannot reliably compensate for blurred module edges, weak contrast, distortion or an obstructed quiet zone.