QR codes have four error correction levels: L recovers about 7% of the codewords, M about 15%, Q about 25% and H about 30% (ISO/IEC 18004). The percentage counts codewords, the bytes the code is made of, not printed area. On one real 44-character link, the largest white square in the middle that the code still read through was 4.3% of its area at L, 8.8% at M, 12.8% at Q and 23.1% at H, and a scratch a fifth of a module thick stopped two of the three decoders at L and M. A higher level makes the code denser, so a short link that redirects to the long address keeps the code small enough for level H.
How UTM parameters work, and what they can’t tell you:
The written guide, with every source and the test method:
Chapters
0:00 How QR code error correction works
0:18 Modules and codewords
0:42 Reed-Solomon, in plain words
1:08 The four levels: L, M, Q and H
1:52 Blocks and interleaving
2:26 What error correction can’t fix
3:03 We damaged real codes: the results
4:11 Why a short link lets you use level H
4:54 Which level to print
5:28 Setting the level in a QR code designer
5:53 Recap
What you’ll learn
– Modules, codewords, and the error correction codewords Reed-Solomon adds
– Why one wrong codeword costs two correction codewords
– The four levels, QR code versions, and why a higher level makes a denser code
– Blocks and interleaving: one block over its limit fails the whole code
– What no level protects: finder squares, timing lines, alignment square, format information, quiet zone
– Real damage tests at L, M, Q and H, read by three open-source decoders (zxing-cpp, ZBar, OpenCV)
– Why a thin scratch can do more harm than a big blot
– Why a short link lets you print level H at the same size
– Which level to print, and where the setting is in a QR code designer
Sources: ISO/IEC 18004:2015, QR Code bar code symbology specification (clause 5, 6.3, 7.5 to 7.9, Annex K); DENSO WAVE, qrcode.com (error correction, versions, standards). Measured on 10 November 2026: the same link encoded at each level with segno 1.6.6, rendered black on white with a 4-module quiet zone, damaged step by step, and read by zxing-cpp 3.1.1, ZBar 0.23.95 and OpenCV. Phone camera apps use other decoders, so test your printed code with a phone. The tested codes hold real, working links (a Linkbreakers short link to a cold brew guide, and a long store address with UTM tags), so the codes on screen scan; the designer screenshots show a demo workspace.
#QRCode #ErrorCorrection #ReedSolomon
source
