The Complete Guide to QR Codes: Error Correction and Data Capacity

QR codes encode data in a 2D grid of black and white modules. Error correction allows QR codes to be read even when up to 30% of the pattern is damaged — enabling logos to be placed inside them.

QR code with error correction levels and scan reliability diagram

How QR Codes Work: Modules, Alignment, and Finder Patterns

QR (Quick Response) codes are two-dimensional barcodes developed by Denso Wave in 1994 for the automotive industry in Japan. Unlike traditional 1D barcodes, QR codes encode data in both horizontal and vertical dimensions, dramatically increasing data capacity.

Key structural elements:

  • Finder patterns: The three distinctive square patterns in three corners of the QR code. Scanners use these to identify the code's orientation and boundaries regardless of rotation.
  • Alignment patterns: Additional square patterns in larger QR codes that help scanners correct for distortion in curved or tilted surfaces.
  • Data modules: The black and white squares that encode the actual data using Reed-Solomon error correction.
  • Quiet zone: The white border around the QR code that prevents background interference.

Structural blueprint of a QR code showing position finder boxes, timing strips, and alignment modules


Error Correction Levels: L, M, Q, and H

QR codes use Reed-Solomon error correction — the same algorithm used in CDs, DVDs, and QR codes — to allow partial damage recovery.

LevelDesignationDamage RecoveryBest Use
LLow~7%Clean environments, small codes
MMedium~15%General purpose
QQuartile~25%Industrial, slightly dirty environments
HHigh~30%Logos overlaid, printed on rough materials

The logo trick: When you see a company logo embedded in the center of a QR code, the logo is placed over Level H error correction redundancy data. The scanner reconstructs the covered modules from the remaining code.

Error correction benchmark comparing Reed-Solomon recovery capabilities across Level L, M, Q, and H

Demonstration of a 30 percent damaged QR code successfully decoded using Level H polynomial reconstruction


QR Code Data Capacity and Version Numbers

QR codes come in 40 versions, each with increasing data capacity (more modules in the grid):

VersionGrid SizeAlphanumeric Capacity
121×2125 characters
537×37154 characters
1057×57395 characters
2097×97947 characters
40177×1774,296 characters

For URLs: A typical URL (e.g., https://tooldolfen.com/image-compressor) is around 40–60 characters — a Version 3–4 QR code handles this easily with any error correction level.

URL shortening: For long URLs (150+ characters), consider using a URL shortener before encoding. Shorter data = simpler QR code = faster and more reliable scanning.

Data capacity benchmark comparing alphanumeric, numeric, binary, and Kanji character limits across QR versions


Generate a QR Code on ToolDolfen

  1. Open the ToolDolfen QR Code Generator.
  2. Enter the data to encode: URL, contact card, Wi-Fi credentials, plain text.
  3. Select error correction level (H recommended for branded codes with logos).
  4. Download as PNG for digital use or SVG for print (SVG scales to any size without pixelation).

Four-step QR code generation workflow diagram for web and print assets

Recommended Companion Guides

Explore complementary tutorials and utilities from this topic cluster to enhance your digital workflow:

Format, Validate, and Debug JSON Syntax in Your BrowserPractical step-by-step tutorial with verified standards and in-browser workflows.Base64 Encoding Explained: Converting Binary Data to TextPractical step-by-step tutorial with verified standards and in-browser workflows.URL Percent-Encoding: Why URLs Replace Spaces with %20 (RFC 3986 Guide)Practical step-by-step tutorial with verified standards and in-browser workflows.How to Convert Multiple JPG Images into One PDF DocumentComplementary cross-format workflow connecting related data and media tools.
Recommended Utility: QR Code GeneratorExecute this workflow live in your browser with zero server uploads and 100% client-side privacy.
Generate QR Code →
Launch Tool →

Frequently Asked Questions

Find quick, verified answers to common questions regarding this workflow.

What error correction level should I use for a QR code with a logo?

Use Level H (30% error correction). This allows you to overlay a logo in the center of the QR code and still have the code scan successfully, because the logo covers data modules that are reconstructed from the error correction data.

How much data can a QR code store?

A maximum-capacity QR code (Version 40) can store up to 7,089 numeric characters, 4,296 alphanumeric characters, 2,953 bytes of binary data, or 1,817 Kanji characters. Practical QR codes for URLs store 50–250 characters.

Can a QR code be scanned when damaged or partially covered?

Yes — this is the purpose of error correction. At Level L, up to 7% damage is recoverable. At Level H (highest), up to 30% of the QR code data can be damaged or covered and the code still scans successfully.

Bilal Ahmad