What is QR code error correction?
How error correction works
A QR code stores your data plus extra codewords calculated from it with Reed-Solomon coding, the same family of maths used on CDs. If part of the code is dirty, torn or covered, the scanner uses the extra codewords to rebuild what is missing. DENSO WAVE, which invented the QR code, lists four levels and the share of codewords each can restore:
- L: about 7%.
- M: about 15%.
- Q: about 25%.
- H: about 30%.
The trade-off: more correction, bigger code
Error correction is not free. DENSO notes that raising the level increases the amount of data, so the code needs more modules (the small squares). For the same printed size, each module gets smaller and harder to read from a distance or at an angle. A URL that fits in a 25 × 25 module code at L can need a larger version at H.
That is one reason short URLs help. A short link such as b1.lc/AbC9 has far fewer characters than a tracked landing page URL, so you can afford Q or H and still keep the modules large. The free QR code size calculator shows how scan distance, data and module size fit together.
Which level to use
DENSO's own guidance: Q or H suits factory settings where codes get dirty, L suits clean settings with a lot of data, and M is the most frequently selected. For marketing codes:
- M for plain codes on posters, flyers, screens and packaging.
- Q for codes with a small logo, or on surfaces that rub, fold or get wet, such as table tents and labels.
- H for a larger logo, outdoor signs, stickers on equipment or anything that will be scratched.
- L only when space is tight, the surface stays clean and the code holds a lot of data.
Logos and error correction in BN Shortener
A logo in the middle of a code covers modules on purpose and relies on error correction to fill the gap. The bigger the logo, the more of the correction budget it uses, leaving less for real-world damage. In BN Shortener's QR builder, logos can take 10-40% of the code; raise error correction to Q or H when you add one. Launch Check warns when a logo is larger than 20% with L or M correction, fails contrast below 3:1 and warns below 4.5:1, on inverted colors or a transparent background. It also advises a test scan from about 30 cm with two phones.
For print, download SVG, PDF or EPS so the code stays sharp at any size. Our guide to branding a QR code with your logo covers logo placement and color in more depth.
Related: Quiet zone, /blog/brand-a-qr-code-with-your-logo/, /blog/qr-code-size-for-print/
Sources
- QRcode.com (DENSO WAVE): Error correction feature, checked 2026-10-24
- QRcode.com (DENSO WAVE): Points for printing a QR code, checked 2026-10-24
Questions
What error correction level should I use for a QR code?
M for most plain marketing codes. Q or H when you add a logo or expect dirt, wear or folding. L only for clean surfaces with a lot of data.
Does higher error correction make a QR code scan better?
It helps when the code is damaged or covered, but it also makes the code denser. At a small printed size, a denser code can be harder to scan.
Can I add a logo without changing error correction?
A very small logo may scan at M, but it uses part of the correction budget. Raise to Q or H, and test with several phones before printing.
Can I change the error correction of a printed code?
No. It is part of the printed pattern. With a dynamic code you can change where it points, but not how it was printed.
What does H mean on a QR code generator?
The highest of the four levels, which can restore about 30% of the code's codewords.
Try it on your next link
The Free plan includes a custom domain, 5 dynamic QR codes, a bio page and click analytics. No credit card.