How it works

QR Code Error Correction Levels Explained: L, M, Q or H?

Error correction is why a scuffed code still scans — and why a code with a logo can scan at all. Here's what each level buys you, what it costs, and when to pick it.

Green freestanding stands with printed QR code check-in signs at the entrance of a supermarket
Codes on freestanding signs get knocked, scratched and rained on. That's the situation error correction was designed for. Photo: Nick-D, CC BY-SA 4.0, via Wikimedia Commons

The short version

  • Every QR code carries Reed–Solomon error correction; the four levels restore roughly 7%, 15%, 25% or 30% of the codewords.[1]
  • Higher levels cost space: the same content needs more modules, so each module is smaller at a given print size.[2]
  • Error correction protects the data area only. Damage to a corner finder pattern can stop a scan even when total damage is small.[1]
  • M is the most commonly chosen level; pick H when you add a logo, which our generator does automatically.[2]

Spill coffee on a barcode and it's finished. Spill coffee on a QR code and there's a fair chance it still scans. That resilience is built in: every QR code carries extra data that lets a reader rebuild what's missing. How much extra is your choice, and it's the setting labeled error correction in our generator.

What error correction actually is

When a code is made, the generator adds Reed–Solomon error-correction codewords to your data — the same family of math used on CDs and in deep-space communication.[2] When a phone reads the code, it uses those extra codewords to detect and fix bytes that came through wrong because of a smudge, a scratch or a fold. Reed–Solomon works on whole bytes, which makes it especially good at fixing damage that's bunched together in one place, like a tear or a sticker edge.[2]

You never see any of this. You just see that a worn code still works.

The four levels

The QR format offers four levels, named by letter.[2] Each restores roughly this share of the code's codewords:[1]

Level Restores about Good for
L (low) 7% Codes on screens; very long content in a tight space
M (medium) 15% Most printed codes: flyers, menus, packaging, business cards
Q (quartile) 25% Outdoor signs and labels that get handled or weathered
H (high) 30% Harsh environments, and codes with a logo covering the center

DENSO WAVE, which invented the format, says M is the most commonly selected level, and suggests Q or H where codes are likely to get dirty — its original example was a factory floor.[2]

What it costs

Error correction isn't free. Those recovery codewords take up room, so the same content at a higher level needs a bigger symbol — more modules across.[2] How much data fits in a given size depends on both the content type and the level you choose.[3]

That matters because, at a fixed print size, more modules means smaller modules, and small modules are the main reason codes fail at a distance. So a higher level is a trade: more tolerance for damage, a little less tolerance for distance and poor focus. If your code will sit behind glass on a clean wall, M or even L gives you bigger, easier modules. If it will ride on a delivery box, Q earns its keep.

A metro platform in Barcelona with a wall-sized QR code poster beside waiting passengers
Large wall codes are easy to read, but get scuffed by bags and shoulders — the case for a higher level. Photo: Kippelboy, CC BY-SA 4.0, via Wikimedia Commons

What error correction can't fix

Here's the part most explanations skip. Reed–Solomon protects the data region of the code — not the structural patterns a reader uses to find and orient it.[1] The most important of those are the three big squares in the corners, the finder patterns. Their black-white-black proportions, 1:1:3:1:1, were chosen by DENSO WAVE's engineers because that ratio almost never appears in ordinary printed material, so a reader can spot them instantly at any angle.[4]

If one of those corner squares is wiped out, many readers can't orient the code at all — even if the total damage is tiny and well within the error-correction budget.[1] The same goes for the code's format information, though the format protects that by storing it twice.[1]

Practical consequences:

  • Never put a logo, sticker or design element over a corner square. Our generator keeps logos in the center for that reason.
  • Leave the quiet zone blank. Text or borders butting up against the code confuse the finder search.
  • Scattered damage is easier than one big blot of the same total size in the wrong place.

How our generator uses it

  • Default is M, the everyday choice.
  • Add a logo and we switch to H and lock it there, because a logo deliberately hides modules and H gives the decoder the most room to rebuild them.[1]
  • The preview shows the result — version, module count and level — so you can see what each level costs. Switch from M to H on a long link and watch the module count jump.
  • The scan check decodes your actual design, so you're not relying on the percentages alone.

Choosing in ten seconds

Short content, clean surface, no logo: M. Lots of data, screen only: L. Outdoor or rough handling: Q. Logo, or the harshest conditions: H. Then print a proof and scan it where it'll live.

Frequently asked questions

Which error correction level should I use?

M for most printed codes. L if the code lives on a screen or holds a lot of data in a tight space. Q for signs that will get weathered or handled. H when a logo covers part of the code. DENSO WAVE notes that M is the level selected most often.[2]

Does a higher level make a code scan faster or from farther away?

No — usually the opposite. Higher levels add modules, so each one is smaller at the same printed size, which makes the code a little harder to read at a distance.[2]

Can I tell a code's level by looking at it?

Not by eye. The level is stored in the code's format information, which sits next to the corner patterns and is written twice for safety.[1] Our generator shows the level under the preview.

Why is H locked when I add a logo?

A logo hides modules on purpose. H gives the decoder the most room to rebuild them, and it's the level the format's own documentation associates with logos covering the center.[1]

Can error correction fix a code with the wrong link in it?

No. It repairs damage to the printed pattern, so the decoder recovers exactly what was encoded. A typo stays a typo.

Sources

  1. Wikipedia. QR code.
  2. DENSO WAVE (QRcode.com). Error correction feature.
  3. DENSO WAVE (QRcode.com). Information capacity and versions of QR Code.
  4. DENSO WAVE (QRcode.com). History of QR Code.