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):
| Payload | Bytes | L | M | Q | H |
|---|---|---|---|---|---|
| Short SSID + 8-character password | 35 | 29×29 | 29×29 | 33×33 | 37×37 |
| Typical guest network, 14-character password | 43 | 29×29 | 33×33 | 33×33 | 37×37 |
| Long password + branch-suffixed SSID | 55 | 33×33 | 33×33 | 37×37 | 41×41 |
| CJK store name + escaped characters + hidden network | 58 | 33×33 | 33×33 | 37×37 | 41×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
- Indoor table cards and counter stands, unobstructed, viewed up close.
- Where space is tight and module size matters more than damage tolerance.
- Layouts already crowded with a store name, icons and copy.
- On-screen display — a screen has no physical wear, so M is plenty.
4. Four cases worth upgrading
- 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.
- Outdoors or semi-outdoors. Sun, rain, grease and wiping all wear the print surface; Q or H is worth the extra size.
- Surfaces that get touched. Table centres, counter edges, the inside of a menu folder — fingers and glass bottoms are slowly sanding it.
- 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