An overview of QR code technology, from its 1994 invention to modern scanning, error correction, and security best practices.

Overview

QR codes are two‑dimensional barcodes that encode information in a matrix of black and white modules readable both horizontally and vertically [1][2][3][4][6]. The name “Quick Response” reflects the design goal of fast data sharing and storage [1][3][5][6]. Invented in 1994 by Denso Wave, a Toyota Group subsidiary, the format became a Japanese standard in the early 2000s and spread to the United States and Europe around 2010 [5]. Modern smartphones have native QR scanning built into the camera app since 2017, making the codes ubiquitous for linking to URLs, sharing contacts, configuring Wi‑Fi, and enabling mobile payments [1][2][3][4][6].

Structure and Encoding

A QR symbol consists of a square grid ranging from 21×21 modules (Version 1) to 177×177 modules (Version 40); higher versions hold more data [4][6]. The pattern is divided into functional areas: three large position markers in the corners for orientation, smaller alignment markers for distortion correction, timing patterns of alternating modules that define the grid, version information bits, format information bits that specify error‑correction level and mask pattern, the data modules themselves, and a quiet zone — a blank border at least four modules wide — that isolates the code from surrounding graphics [3][4][6].

Key Components

  • Position markers – three large squares for detector alignment [3][4][6]
  • Alignment markers – smaller squares used when the image is skewed [3][4][6]
  • Timing patterns – alternating dark/light modules that set module pitch [3][4][6]
  • Version information – encodes the symbol size (21–177 modules) [4][6]
  • Format information – stores error‑correction level and mask pattern [4][6]
  • Data modules – carry the encoded payload [3][4][6]
  • Quiet zone – blank margin required for reliable detection [3][4][6]

Error Correction and Versions

QR codes employ Reed–Solomon error correction at four selectable levels, allowing recovery of damaged modules: Level L (~7 % recovery), Level M (~15 %), Level Q (~25 %), and Level H (~30 %) [4][6]. The chosen level trades data capacity for robustness; higher correction reduces the maximum payload. The standard defines 40 versions, each increasing the module count by 4 per side, so Version 1 is 21×21 and Version 40 is 177×177 modules [4][6]. At the lowest error correction a Version 40 symbol can store up to 7,089 numeric digits or 4,296 alphanumeric characters across numeric, alphanumeric, byte, and kanji modes [6].

LevelApprox. Recovery
L7%
M15%
Q25%
H30%

Static vs Dynamic QR Codes

A static QR code embeds the target data directly in its module pattern; once generated the content cannot be altered [6]. Dynamic QR codes instead encode a short redirect URL that points to a server‑managed destination. This indirection lets the owner change the final link, update content, and collect scan analytics without reprinting the code [6]. The trade‑off is a dependency on the hosting service and a slightly larger pattern to accommodate the redirect URL.

Security Considerations

Because QR codes can encode arbitrary URLs, they are a vector for malicious redirects, credential harvesting, and malware installation [1][2][6]. Physical tampering — such as placing a sticker over a legitimate code — can redirect users to phishing sites, a tactic known as quishing. The FBI issued guidance on QR‑code risks in 2022, and quishing attacks rose 587 % in 2024 [1][2][6]. To mitigate risk, users should verify the source before scanning, inspect the link or action prompt displayed by the device, keep the operating system updated, rely on the built‑in camera scanner rather than third‑party apps, and avoid entering sensitive data on sites reached via public codes [1][2].

Best‑Practice Checklist

  • Confirm the code originates from a trusted entity [1][2]
  • Review the URL or action preview before proceeding [1][2]
  • Install OS and app updates promptly [1][2]
  • Use the native camera app for scanning [1][2]
  • Do not submit passwords or payment details on pages opened from public QR codes [1][2]

Applications and Market Outlook

QR codes power a wide range of touch‑free interactions: website links, vCard contact exchange, Wi‑Fi credential provisioning, mobile payment initiation, event ticketing, restaurant menus, equipment manuals, museum audio guides, and marketing campaigns [1][2][3][4][5][6]. The global QR‑code market was valued at $13.04 billion in 2025 and is projected to reach $33.14 billion by 2030, with an estimated 102.6 million U.S. smartphone users scanning a QR code in 2026 [6]. When a code becomes too dense for reliable printing, URL shorteners can reduce module count, and analytics platforms can track click‑through data for dynamic codes [2].

Common Use Cases

Frequently asked questions

What is the maximum amount of data a QR code can hold?

A Version 40 QR code at the lowest error‑correction level can store up to 7,089 numeric digits or 4,296 alphanumeric characters across its four encoding modes [6].

How does error correction work in QR codes?

QR codes use Reed–Solomon algorithms at four levels (L, M, Q, H) that can recover roughly 7 % to 30 % of damaged modules, allowing the code to remain readable even when partially obscured [4][6].

What is the difference between static and dynamic QR codes?

Static QR codes embed the final data directly and cannot be changed after creation, while dynamic QR codes encode a short redirect URL that can be updated and tracked without reprinting the code [6].

How can I scan a QR code safely?

Verify the source, preview the link or action on your device, keep your OS updated, use the built‑in camera scanner, and avoid entering sensitive information on pages reached from public codes [1][2].

Why are QR codes a security risk?

They can encode malicious URLs, enable credential harvesting, deliver malware, and be physically tampered with (sticker replacement), leading to quishing attacks that surged 587 % in 2024 [1][2][6].

References

  1. elm.umaryland.edu How Do QR Codes Work? - The Elm
  2. digital.gov Introduction to QR codes | Digital.gov
  3. qr-codes.com How do QR Codes work? A detailed breakdown
  4. sproutqr.com How Do QR Codes Work? QR Code Technical Basics
  5. fortinet.com What is a QR Code? How does it Work? Types and Benefits | Fortinet
  6. gr.qr-code-generator.com Do QR Codes Work? The Technology Explained (2026)