QR Code Error Correction

Understand how error correction makes QR codes resilient. Learn which level to use for logos, outdoor use, or maximum data capacity.

5 min read

Updated: December 2024

Error Correction
Technical
Reliability
Table of Contents
  • What is Error Correction?

  • Error Correction Levels

  • How It Works

  • Choosing a Level

  • Error Correction & Logos

  • FAQ

What is Error Correction?

Error correction is one of the most powerful features of QR codes. It allows QR codes to be successfully scanned even when part of the code is damaged, dirty, or obscured (like by a logo).

QR codes use Reed-Solomon error correction, the same technology used in CDs, DVDs, and satellite communications. It adds redundant data to the QR code that allows scanners to reconstruct missing or corrupted information.

Error Correction Levels

QR codes have four error correction levels. Each offers a different balance between damage recovery and code size/capacity.

L

Low
~7%

Clean environments, maximum data

M

Medium
~15%

General use, balanced

Q

Quartile
~25%

Outdoor use, some damage expected

H

High
~30%

Logo overlay, harsh conditions

LevelRecoverySize OverheadBest For

L - Low

~7%LowestClean environments, maximum data

M - Medium

~15%ModerateGeneral use, balanced

Q - Quartile

~25%HigherOutdoor use, some damage expected

H - High

~30%HighestLogo overlay, harsh conditions

How Error Correction Works

Here's a simplified explanation of how Reed-Solomon error correction works in QR codes:

  • 1. Data is divided into codewords

    Your data is split into small chunks called codewords (8 bits each).

  • 2. Error correction codewords are calculated

    Mathematical calculations generate additional 'check' codewords based on your data.

  • 3. Both are encoded in the QR code

    Data and error correction codewords are interleaved and encoded as the black/white pattern.

  • 4. Scanner reads and verifies

    When scanned, the scanner uses the check codewords to verify the data.

  • 5. Errors are corrected

    If codewords are damaged, the scanner can mathematically reconstruct them from the redundant data.

The Trade-off

Higher error correction = More redundant data = Larger QR code (or less capacity for your data)

Lower error correction = Less redundant data = Smaller QR code (or more capacity for your data)

Choosing the Right Level

Use this guide to select the appropriate error correction level for your use case:

LevelRecommended UseWhy

L (Low)

Digital displays, websites

No damage risk, maximum data capacity

M (Medium)

General print materials

Default choice - good balance of capacity and recovery

Q (Quartile)

Outdoor signage, packaging

Can handle weathering and moderate damage

H (High)

QR codes with logos

Logo covers ~10-20% of code, needs maximum recovery

Error Correction & Logos

Adding a logo to a QR code essentially "damages" it by covering some modules. Error correction allows the code to still work despite this intentional damage.

Do
  • Use High (H) error correction
  • Keep logo under 10-15% of code area
  • Place logo in the center
  • Test thoroughly after adding logo
Don't
  • Cover finder patterns (corner squares)
  • Use Low error correction with logos
  • Cover more than 20% of the code
  • Skip testing with multiple devices
Create a QR Code with Logo

Our generator supports High error correction for logo overlays.

Create QR Code with Logo

Frequently Asked Questions

Error correction allows QR codes to remain scannable even when partially damaged, dirty, or obscured. It adds redundant data that lets scanners reconstruct missing information.

Medium (M) is the default for most uses. Use High (H) if adding a logo. Use Low (L) only for digital displays where damage is impossible.

Yes, higher error correction adds more redundant data, which increases the QR code version (size/complexity). The same data with H level will create a larger code than with L level.

Yes, but use High (H) error correction to ensure scannability. The logo should cover no more than 10-15% of the code area and be placed in the center.

Ready to Create Your QR Code?

Use our free QR code generator to create custom QR codes in seconds.

Create Your QR Code