QR error correction L/M/Q/H: how to choose

The error correction level decides how much of the pattern can be damaged before the code stops reading. Many guides say "always use H" — that buys insurance you pay for in module size: the same payload needs more modules, each module gets smaller, and it degrades at distance sooner. Below are real measurements and where the line actually sits.

1. What the four levels mean

The QR standard defines four levels — L, M, Q and H — tolerating roughly 7%, 15%, 25% and 30% damage to the pattern. That tolerance is about physical damage to the printed code, not a wrong password: the payload itself must still be correct.

2. The same payload, measured at all four levels

Measured with the same encoding engine the studio uses, on four typical WiFi payloads (byte counts in UTF-8):

PayloadBytesLMQH
Short SSID + 8-character password3529×2929×2933×3337×37
Typical guest network, 14-character password4329×2933×3333×3337×37
Long password + branch-suffixed SSID5533×3333×3337×3741×41
CJK store name + escaped characters + hidden network5833×3333×3337×3741×41

The pattern is clear: going from M to H usually adds two versions, eight modules per side. At an unchanged printed size the module shrinks accordingly — a 40mm code goes from 33 modules (about 1.21mm each) to 41 (about 0.98mm), crossing below the comfortable reading range.

Module size maths

Module size = printed side ÷ module count. Rule of thumb: at least about 1mm per module on printed material, and about 1.5mm on signage read from a distance. So fix the printed size first, then see whether the module still has room — not the other way round.

3. When to stay at M

4. Four cases worth upgrading

  1. A logo in the middle. The larger the covered area, the more redundancy you need: Q at roughly 10% coverage, and H once it reaches 15–20%. This is the premise behind logos inside the code.
  2. Outdoors or semi-outdoors. Sun, rain, grease and wiping all wear the print surface; Q or H is worth the extra size.
  3. Surfaces that get touched. Table centres, counter edges, the inside of a menu folder — fingers and glass bottoms are slowly sanding it.
  4. Small hard materials. Acrylic stands, metal plaques and stickers cannot be patched locally once scratched; you replace the whole card.

5. The one thing you must do after upgrading

Changing the level means a different pattern and often a different size. Never place the new code beside or over the old one. Two different but both valid-looking codes in one spot make the scan a coin flip, and the old one may still encode the previous password. Remove the old sticker and put the new code in the same position, then re-run the pre-launch checklist.

If upgrading forces the code smaller, shrink the surrounding copy instead — do not let modules drop below about 1mm. When unsure, derive a floor from distance with the size calculator.

Size first, level second

The studio shows the module count change as you switch levels — use it to judge whether the code still reads at your printed size.

Open the WiFi QR code studio

Related reading

Frequently asked questions

Which error correction level should a WiFi QR code use?
M by default. It tolerates the print wear, glare and smudging of a normal indoor card without inflating the module count. Upgrade to Q or H only when a logo sits in the middle, on small hard materials, outdoors, or where the surface gets touched and rubbed repeatedly.
Why does level H sometimes scan worse?
Higher correction packs the same payload into more modules: one 55-byte sample measured 33x33 at M and 41x41 at H. At an unchanged printed size each module shrinks from about 1.21mm to 0.98mm, below the comfortable range for reliable reading, so it blurs sooner at distance.
Is level L usable?
Only for on-screen display or a freshly printed clean card. On a table or counter that gets touched, splashed and wiped, L leaves almost no redundancy to lose, and one worn patch kills it.
Does changing the level change the payload?
No — the SSID and password are identical, only the pattern and the size change. That is why a new level means a reprint, and why old and new codes must never sit in the same spot together.