Nov 3, 2026
QR Code Error Correction Levels (L, M, Q, H) Explained
QR code error correction levels explained: what L, M, Q and H mean, how much damage each survives, the trade-offs, and which level to use for logos and print.

Every QR code has a hidden safety net. Somewhere in that pattern of squares is extra, carefully arranged data that lets a phone read the code even when part of it is scratched, smudged, folded or covered by a logo. That safety net is called error correction, and most QR code generators let you choose how strong it is with four letters: L, M, Q and H.
If you have ever picked one of those letters at random, this guide is for you. We'll explain what QR code error correction levels do, how much damage each can survive, what you give up when you turn it up, and how to choose the right level for menus, packaging, signs and logo codes.
What is QR code error correction?
A QR code stores your content, such as a link, a Wi-Fi login or a contact card, as a grid of dark and light squares called modules. If a few of those modules get damaged and the code only held your data once, the phone would read the wrong thing or nothing at all.
To prevent that, the QR code standard (ISO/IEC 18004) adds redundant data using a method called Reed-Solomon error correction. The useful idea is simple: alongside your actual content, the code carries extra recovery information. When a scanner finds that some parts are unreadable, it uses that recovery information to rebuild what is missing.
Error correction doesn't make a QR code indestructible. It gives the code a repair budget, and the level you choose decides how big that budget is.
The four QR code error correction levels explained
The standard defines four levels. Each one sets aside a different share of the code for recovery data, which translates into roughly how much of the code can be damaged or hidden while it still scans. These figures are approximate; real-world recovery also depends on where the damage is and on the phone.
Level L (Low): can recover roughly 7% of the code. It uses the least space for redundancy, so it fits the most data into the smallest pattern.
Level M (Medium): can recover roughly 15% of the code. A balanced, common choice for everyday use.
Level Q (Quartile): can recover roughly 25% of the code. Noticeably tougher, with a denser pattern.
Level H (High): can recover roughly 30% of the code. The strongest level, and the densest pattern for the same content.
The level you pick is written into the code itself, in a small area called the format information, so the scanner knows how to decode it.
What "recover 30%" really means
"Level H recovers 30%" doesn't mean you can cover almost a third of the code with anything you like. The percentages refer to the data inside the code, and some parts aren't protected the same way:
The three large corner squares (finder patterns) tell the phone where the code is and which way up it sits. If one is covered or badly damaged, many scanners won't even recognise that a QR code is there.
The quiet zone, the blank margin around the code, helps the scanner find the edges. Error correction can't make up for a background that crowds the pattern.
So treat the percentages as an upper limit in good conditions, not a target to aim for. A code that is already using most of its repair budget on a logo has very little left for glare, a crease or a slightly blurry print.
The trade-off: more protection means a denser code
Error correction isn't free. The recovery data has to live somewhere, and it lives in the same grid as your content. When you raise the level, the code needs more modules to hold the same information, so the pattern becomes denser, or the generator moves to a larger grid size (called a version) to fit everything in.
At the same printed size, a denser code has smaller modules, and smaller modules are harder for phone cameras to read, especially from a distance or in low light:
Short content plus high error correction usually works well. A short link at Level H still produces a reasonably open pattern.
Long content plus high error correction can produce a crowded, fine-grained code that needs to be printed larger to scan reliably.
Long content plus low error correction keeps the pattern lighter but leaves little room for damage or design choices.
This is one reason dynamic QR codes are popular. A dynamic code encodes a short link rather than your full destination, so the pattern stays simple even at a high error correction level. If you're not sure which type you need, our guide to static vs dynamic QR codes explains the difference and when each one makes sense.
When to use each error correction level
The right choice depends on what you're encoding, where the code will live and whether you're adding a logo.
Level L: clean screens and lots of data
Level L makes sense when the code will be shown in a controlled environment and you need to fit a lot of content into a small space. Think of a code shown on a screen or a static code holding a long block of text. The catch is that L leaves very little margin for error. A smudge, a fold or a reflection on a glossy surface can be enough to stop it working.
Level M: the everyday default
Level M is a sensible middle ground for most plain QR codes without a logo: flyers, posters, brochures, receipts and indoor signs. It handles small marks and imperfect printing while keeping the pattern reasonably open.
Level Q: tougher surfaces and modest branding
Level Q is a good choice when the code faces more wear or when you want some room for design. Think of restaurant table tents, handled packaging, or codes with a small logo or a styled pattern. It gives you a solid repair budget without making the code as dense as Level H.
Level H: logos, outdoor use and harsh conditions
Level H is the go-to level when part of the code will be covered on purpose, most often by a logo in the centre, or when the code will live somewhere rough: outdoor signs, shop windows, warehouse labels or anything likely to get scratched. Pair it with a short link so the pattern doesn't get too crowded, and print it large enough for the extra detail to stay crisp.
Error correction and logos: how they work together
Putting a logo in the middle of a QR code works because of error correction. The logo hides some of the modules, and the scanner treats those hidden modules as damage it can repair. That's why a logo code should almost always use Level Q or H.
A few rules keep logo codes reliable:
Keep the logo modest. The logo uses up part of the repair budget before the code has faced a single scratch. Leave plenty of budget for real-world wear.
Keep the logo in the centre. Never cover the three corner squares, and don't let the logo spill towards the edges.
Give it a clean border. A light halo around the logo stops it blending into nearby modules and confusing the scanner.
Test with several phones. If a code with a logo hesitates even slightly, shrink the logo or raise the level.
Some tools handle much of this for you. In SazQR, for example, the Studio raises the error correction level automatically when you add a logo, masks the logo to a circle, rounded square or square, and adds a halo and shadow so it sits cleanly. You can still choose L, M, Q or H yourself if you'd rather decide. You can see how that works on the SazQR features page, and our step-by-step guide to a QR code with a logo in the middle covers logo sizing and preparation in more depth.
Common myths about QR code error correction
"Higher is always better." Not always. Higher levels make the code denser. If you're encoding a lot of data and printing small, Level H can make a code harder to scan, not easier.
"Error correction fixes bad contrast." It doesn't. Error correction rebuilds missing or damaged modules; it can't help a scanner that can't tell dark modules from light ones.
"Error correction makes up for a tiny print size." It can't. If the modules are too small for the camera to see, there's nothing to repair. Size and viewing distance matter more.
"I can change the level after printing." The level is part of the printed pattern. To change it, you need to regenerate and reprint the code. With a dynamic code you can change where the link goes after printing, but not how the printed pattern is built.
If a code is already giving you trouble, error correction is only one of several possible causes. Our guide to fixing a QR code that won't scan walks through contrast, size, quiet zones, broken links and phone settings too.
How to set the error correction level in a QR code generator
The steps are similar in most good QR tools, even if the wording changes. Look for a setting named error correction, redundancy, recovery level or simply a choice of L, M, Q and H.
Enter your content first. Add your link or data, and if you can, use a short link or a dynamic code so the pattern stays simple.
Choose your level based on use. M for plain everyday codes, Q for handled or lightly branded codes, H for logos and harsh environments.
Add design touches carefully. If you add a logo, frame or custom dot style, consider raising the level one step to protect scannability.
Check the preview. If the pattern looks very dense, shorten the content, lower the level slightly or plan to print larger.
Export in a print-friendly format. SVG stays sharp at any size, which helps dense patterns print cleanly.
Test before you print in bulk. Scan the final file, and ideally a printed sample, with a few different phones, in the lighting where the code will actually be used.
Error correction checklist before you print
The error correction level matches the job: M for plain codes, Q or H for logos, packaging and outdoor use.
The logo, if any, sits in the centre and stays well clear of the corner squares.
There is strong contrast between the modules and the background, with dark modules on a light background.
The quiet zone around the code is clear of text, borders and busy graphics.
The printed size suits the scanning distance, and the pattern still looks crisp rather than crowded.
The code scans quickly on more than one phone, in realistic lighting, from a printed proof.
Which error correction level should you choose?
Choose Level L only for codes shown on screens or printed in clean, controlled conditions where you need to fit a lot of data into a small space.
Choose Level M for most plain codes without a logo, such as flyers, posters, brochures and indoor signs.
Choose Level Q for codes that get handled or face moderate wear, and for codes with a small logo or noticeable styling.
Choose Level H for codes with a centre logo, outdoor signage, packaging and labels that may get scratched, or anywhere damage is likely.
When in doubt between two levels, pick the higher one as long as your content is short and the code is printed at a comfortable size. If the pattern starts to look crowded, shorten the link before you lower the level. Either way, test a printed proof first.
If your codes need to stay on brand as well as scannable, a ready-made palette helps keep contrast safe. The SazQR industry themes give you colours and patterns tuned for restaurants, clinics, hotels and more, and you can still adjust the error correction level in the Studio.
Frequently asked questions
What is the best error correction level for a QR code?
There isn't one best level for every case. Level M suits most plain, everyday codes. Level Q or H is better for codes with a logo, codes on packaging or codes used outdoors.
What does error correction level H mean in a QR code?
Level H is the highest of the four levels. It sets aside the most space for recovery data, so the code can still be read with roughly 30% of its data damaged or hidden. It's the usual choice for logo codes and rough conditions.
What is the difference between error correction level M and Q?
Level M can recover roughly 15% of the code, while Level Q can recover roughly 25%. Q is tougher and better for handled surfaces or small logos, but it makes the pattern denser for the same content. M keeps the pattern more open and works well for clean, plain codes.
Does a higher error correction level make a QR code harder to scan?
It can, indirectly. A higher level adds more modules, so at the same printed size each module is smaller. With short content this rarely matters. With long content printed small, a high level can make the code harder for some phones to read. Shortening the content or printing larger usually solves it.
Can I change the error correction level of a QR code after printing?
No. The level is built into the printed pattern, so changing it means generating a new code and reprinting. If you use a dynamic QR code, you can still change the destination after printing without touching the pattern. Our article on whether QR codes expire explains how dynamic codes keep working over time.
Which error correction level should I use for a QR code with a logo?
Use Level Q for a small logo and Level H for a larger one, and keep the logo in the centre, away from the three corner squares. Then test the code with several phones. If it hesitates, make the logo smaller rather than relying on error correction alone.
Create a QR code with the right level of protection
Choosing the right error correction level takes a few seconds and can save a reprint. If you'd like to try it with a code that looks like your brand, you can create a free SazQR account, set the level yourself or let the Studio raise it when you add a logo, and scan your design on your own phone before you print anything.