โ† Back to Blog

What Is a QR Code? How It Works

2026-04-02 ยท 5 min read

Definition of a QR Code

QR stands for "Quick Response." A QR code is a two-dimensional matrix barcode made of black and white squares arranged in a square grid. It can store far more information than a traditional one-dimensional barcode. It was invented in 1994 by Masahiro Hara and his team at Denso Wave in Japan, originally for tracking automotive parts.

A Brief History of QR Codes

In the early 1990s, Denso Wave โ€” a Toyota supplier โ€” faced the limits of traditional barcodes that held only about 20 characters each, insufficient for parts management. Masahiro Hara's team spent roughly two years developing the QR code standard, released in 1994. It was standardized by AIM in 1997 and became ISO/IEC 18004 in 2000.

Smartphone adoption triggered explosive QR growth in the 2010s, and the COVID-19 pandemic's demand for contactless interaction accelerated global adoption. QR codes are now mainstream for payments, menus, marketing, and identity verification.

The Internal Structure of a QR Code

A standard QR code consists of several functional areas:

How Data Is Encoded

QR codes support four encoding modes: numeric (digits 0โ€“9, most compact), alphanumeric (uppercase letters and certain symbols), byte (UTF-8 text, most versatile), and Kanji (Japanese and Chinese characters). Encoding converts data to binary, adds redundancy via Reed-Solomon error correction, then applies a mask pattern to optimize the visual pattern for reliable scanning.

How Scanners Decode QR Codes

A scanner โ€” typically a smartphone camera โ€” first locates the code boundary via finder patterns and corrects perspective distortion. It then reads the format information to determine the error correction level, reads data modules in order, applies error correction to recover damaged bits, and finally decodes the binary sequence back into the original text or URL. The entire process completes in milliseconds.

Versions and Data Capacity

QR codes have 40 versions. Version 1 is a 21ร—21 module grid storing up to 41 numeric characters. Version 40 is a 177ร—177 grid storing up to 7,089 numeric or 4,296 alphanumeric characters. For typical URLs, versions 3 through 7 are sufficient and produce simpler, more easily scanned patterns.

Why QR Codes Are So Reliable

QR codes are highly reliable because of two core design choices: they are orientation-independent (scannable at any rotation angle) and they have strong error correction (at level H, up to 30% of the code can be damaged or obscured and it will still decode correctly). This makes them practical for outdoor advertising, packaging, and other high-wear scenarios.

Common Application Areas

QR codes are now used widely in mobile payments (WeChat Pay, Alipay, Apple Pay), digital restaurant menus, product traceability, event ticket validation, marketing campaigns, social media follow prompts, and government digital identity documents. Their low cost and universal support make them the primary bridge between the physical and digital worlds.

Try the free tool now

Use Free Tool โ†’