What Is a QR Code? How They Work and How to Use Them

A QR code is a two-dimensional barcode that stores data — a link, a text, a contact card — in a square grid of black and white modules that any phone camera can read.

The short definition

QR stands for “quick response”. The code was invented in 1994 by the Japanese company Denso Wave to track car parts and was deliberately released for free use — which is why it is everywhere today. Unlike a supermarket barcode, which stores a few dozen digits in a single row, a QR code stores data in two dimensions. That makes it compact, damage-tolerant and able to hold everything from a web address to a full contact card.

What is inside the pattern

Look closely at the square: three large corner blocks (finder patterns) tell the scanner where the code is and how it is rotated. Smaller alignment patterns correct for perspective when the code is viewed at an angle. The remaining area is filled with data modules — tiny black or white cells that encode your content in binary.

The standards body defines 40 sizes, called versions, from 21 × 21 modules up to 177 × 177. A larger version holds more data. The scanner’s job is to detect the finder patterns, read the format information around them, and then decode the grid back into bytes.

Error correction: why a dirty code still scans

QR codes carry redundant data using Reed–Solomon error correction. At the Medium level, roughly 15% of the pattern can be damaged or covered and the code still decodes; High level tolerates about 30%. This is why a code survives a coffee stain, a fingerprint or a small logo stuck over the middle — and why higher correction levels are worth choosing for outdoor or rough-print placements. The trade-off is density: more redundancy means more modules in the same physical square.

Static and dynamic codes

A static code contains the final data directly. A link code holds the URL itself; the scanner goes straight to that address. It works forever, costs nothing after printing and does not depend on any company.

A dynamic code contains a short redirect URL controlled by a service. The service sends the scanner on to your real destination, which means the destination can be changed after printing and scans can be counted — but the code dies if the service shuts down or the subscription lapses. QRCG generates static codes, and you can still track performance by adding UTM parameters to the URL before encoding it.

What a QR code can hold

More data means a denser symbol. For printed material, keeping content under a few hundred bytes is the difference between a comfortable scan and a frustrating one.

Where you meet them every day

Restaurant tables (menus), parcel labels (tracking), shop windows (campaign pages), event badges (check-in), product boxes (manuals and authenticity checks), Wi-Fi signs (guest network logins) and business cards (contact cards). In China and across Asia, QR payment codes are ubiquitous; in Europe and North America adoption accelerated sharply after 2020 as contactless menus spread.

Are QR codes safe to scan?

The code itself cannot execute code or install anything — it only carries data. The risk is social: “quishing” attacks place malicious stickers over legitimate codes to send people to phishing pages. The defences are simple. Preview the destination when your scanner offers it, refuse codes pasted over the original print, and never enter passwords or payment details on a page opened by an unexpected sticker.

When you create codes, the same logic protects your audience: encode a destination you control, keep it free of redirects you do not own, and test the code on both iPhone and Android before printing.

Last updated: