Basics November 5, 2026 6 min read By BarcodeForge Team

QR Code Error Correction Explained: L, M, Q and H

QR codes can lose up to 30% of their modules and still scan. Learn how Reed–Solomon error correction works and which level (L/M/Q/H) to pick for your design.

A QR code with a logo punched through its middle still scans. Coffee-ring stains, torn corners, scratched print — QR codes shrug off damage that would kill a 1D barcode. The magic is Reed–Solomon error correction, and understanding it lets you design bolder, more reliable codes.

The four levels

Every QR code is generated at one of four error correction levels. The level determines how much of the symbol can be damaged or obscured while remaining readable:

LevelRecovery capacityData overheadBest for
L (Low)≈ 7%Smallest symbolsClean screens, controlled environments
M (Medium)≈ 15%Balanced (default)General print and marketing
Q (Quartile)≈ 25%Larger symbolsIndustrial, outdoor, curved surfaces
H (High)≈ 30%Largest symbolsLogo overlays, harsh environments

How Reed–Solomon works (without the math degree)

Your data is split into blocks of codewords. For each block, the encoder computes extra 'parity' codewords using polynomial arithmetic over a finite field. The parity is interleaved with the data across the symbol. A reader that encounters missing or wrong modules can reconstruct the originals as long as the number of errors stays within the parity budget — roughly two corrupted codewords repaired per parity codeword.

This is the same family of codes that protects CDs, DVDs and deep-space transmissions. It corrects errors without needing to know where they are — ideal for physical damage, which is unpredictable.

The trade-off: resilience vs size

Higher correction means more parity codewords, which means a denser symbol (higher version) for the same data. A URL that fits a 25×25 grid at level L might need 29×29 at level H. Denser modules are harder to print and photograph, so maxing out correction is not automatically 'better'.

Putting a logo in your QR code — safely

  1. 1 Generate at level H (30% recovery).
  2. 2 Keep the logo under roughly 20–25% of the symbol area to leave margin for real-world damage.
  3. 3 Never cover the three finder squares (corners), the timing patterns, or the format information near them.
  4. 4 Center the logo, keep it compact, and give it a light backing plate so modules underneath read cleanly.
  5. 5 Test on multiple phones, at print size, before publishing.

BarcodeForge's QR designer supports logo upload with automatic level-H switching and size guards, plus styled modules and eyes that stay within decode-safe limits.

Why 1D barcodes cannot do this

A 1D symbol has only a check digit — it detects errors but cannot repair them, and a scratch across the bars destroys data with no redundancy to recover it. (Vertical redundancy from bar height helps a scanner find a clean scan line, but that is geometry, not error correction.) This is the fundamental reason 2D codes win on damaged, small or stylised labels.

Practical checklist

  • Default to M unless you have a reason not to.
  • Choose H + small centered logo for branded codes; verify on real devices.
  • Keep the 4-module quiet zone even at level H.
  • For long URLs, shorten the link first — a smaller symbol at H beats a huge one at L.
  • Print a test at final size; dense modules blur on low-dpi printers.

Error correction is why QR codes conquered the physical world: they tolerate rain, scratches, logos and bad phone cameras. Pick the level deliberately, protect the finder patterns, and your codes will scan almost anywhere.

Tags: qr codeerror correctionreed-solomonlogo

Try it yourself — free, no signup

Generate any barcode or QR code mentioned in this guide, with correct check digits and print-ready export.

Related guides