Skip to content
UtiliaTools

What Is a QR Code? How They Work, Data Capacity, and Error Correction

QR codes are two-dimensional barcodes that can store various types of data and be scanned instantly by smartphones. They have become essential tools in marketing, payments, and information sharing.

What Is a QR Code?

A QR (Quick Response) code is a type of two-dimensional matrix barcode invented in 1994 by Masahiro Hara at Denso Wave, a Japanese automotive company. Originally designed to track vehicle parts in manufacturing, QR codes have evolved into one of the most widely used data encoding systems in the world.

How QR Codes Work

A QR code encodes data using a grid of black and white squares (called modules) arranged in a specific pattern. The encoding process involves several steps: data analysis, mode selection, character encoding, error correction coding, and finally, module placement in the matrix grid.

The three finder patterns — large squares in three corners of the code — help the scanner determine the code's orientation, size, and position. A timing pattern connects the finder patterns and helps determine the module grid coordinates. The format information encodes the error correction level and data mask pattern used.

Data Capacity

QR codes can store surprisingly large amounts of data depending on the version (size) and encoding mode:

  • Numeric only: up to 7,089 characters
  • Alphanumeric: up to 4,296 characters
  • Binary (bytes): up to 2,953 bytes
  • Kanji characters: up to 1,817 characters

The QR code standard supports 40 versions, ranging from 21×21 modules (Version 1) to 177×177 modules (Version 40). Higher versions can store more data but require higher resolution printing and scanning.

Error Correction Levels

One of the most powerful features of QR codes is their built-in error correction based on Reed-Solomon codes. Four correction levels are available:

  • Level L (Low): recovers ~7% of damaged data
  • Level M (Medium): recovers ~15% of damaged data
  • Level Q (Quartile): recovers ~25% of damaged data
  • Level H (High): recovers ~30% of damaged data

Higher error correction means more redundancy, which reduces the available data capacity but makes the code more resistant to damage, dirt, or partial obstruction.

Common Applications

QR codes are used in mobile payments, Wi-Fi sharing, product authentication, marketing campaigns, event tickets, contact information (vCards), and URL shortening. Their ability to be scanned without special equipment — just a smartphone camera — has made them universally accessible.

Frequently asked questions

How much data can a QR code hold?

Depending on the version and encoding mode, a QR code can hold up to 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes of binary data.

Can a damaged QR code still be scanned?

Yes, QR codes include Reed-Solomon error correction that can recover up to 30% of damaged data, depending on the error correction level chosen during generation.

Do QR codes expire?

Static QR codes never expire since the data is encoded directly in the pattern. Dynamic QR codes can be set to expire if they redirect through a server-based service.

Related guides

Try the tool

Use our free tool to get started instantly.

QR Code Generator →

Last updated on 2026-09-27