What Is a QR Code and How Does It Work?

Quick answer: A QR (Quick Response) code is a two-dimensional barcode made of black and white squares that a camera can read in any direction. It stores data such as a web link, text, or contact details, and built-in error correction lets it scan even when part of the code is damaged or hidden behind a logo. It was invented in Japan in 1994 by Denso Wave to track car parts.

You scan them at restaurants, on posters, and at the checkout, but what actually is a QR code? This article explains, in plain English, what those black-and-white squares contain, how your phone reads them in a fraction of a second, and why they survived for three decades to become a part of everyday life.

What a QR code is

A QR code is a two-dimensional (2D) barcode. "QR" stands for Quick Response, a name chosen because the codes were designed to be read very quickly. A traditional barcode, the striped kind on grocery items, stores data in one direction only, in the varying widths of its vertical lines. A QR code stores data in two directions at once, horizontally and vertically, using a grid of small squares called modules. That two-dimensional layout is why a QR code can hold far more information in a much smaller space, and why a camera can read it from almost any angle.

How it works (the parts inside)

Look closely at any QR code and you will notice it is not random noise. It has a deliberate structure that scanners rely on:

When you point your camera at a code, software locates the three corner eyes, squares up the image, reads the grid of light and dark modules as a stream of ones and zeros, and decodes that into the original content, all in well under a second.

Error correction levels

One of the cleverest features of QR codes is that they keep working even when partly damaged. This is thanks to Reed-Solomon error correction, which stores extra recovery data alongside the real message. Every QR code is built at one of four correction levels:

LevelRecoveryBest for
L (Low)~7%Clean digital use where space matters
M (Medium)~15%General everyday printing
Q (Quartile)~25%Codes that may get scuffed
H (High)~30%Codes with a logo or rough environments

This is exactly why you can drop a logo in the middle of a QR code and it still scans: at level H, the scanner can reconstruct up to roughly 30% of missing or covered data. The trade-off is that higher correction adds more modules, making the code denser.

A short history

The QR code was invented in 1994 by Denso Wave, a subsidiary of the Japanese automotive giant Denso. The barcode then used on factory lines could not hold enough information for tracking the many components in a vehicle, and workers had to scan several barcodes per part. The engineering team, led by Masahiro Hara, set out to create a code that held more data and could be read far faster, reportedly drawing inspiration from the black-and-white patterns of the board game Go. The distinctive corner squares were chosen because that arrangement rarely appears by accident on printed materials, making the code easy to detect.

Denso Wave holds patents on the technology but chose to let anyone create and use QR codes freely, a decision widely credited with the format's global spread. For years QR codes stayed mostly inside industry and Japanese marketing. The turning point came when smartphones added native QR scanning to their cameras, removing the need for a separate app, after which adoption exploded worldwide.

What data it can store

A QR code can encode several kinds of data, and the type tells the phone what to do after scanning:

Capacity is generous: a single code can hold up to roughly 7,000 digits or about 4,300 alphanumeric characters. In practice, the less you encode the better, because shorter content produces a simpler, faster-scanning code. If you want to try it yourself, you can generate any of these QR types for free with our technology partner QRbug.

Make your own QR code in seconds

Now that you know what is inside one, create your own — URL, WiFi, vCard, and more — completely free, with no signup required.

Try QRbug Free

Common uses today

QR codes have quietly become part of daily routines. The most widespread uses include digital restaurant menus and table ordering, contactless mobile payments, event tickets and check-in, product packaging that links to instructions or authenticity checks, business cards and email signatures, and shop-window links to online stores. The common thread is the same one Denso Wave designed for in 1994: bridging the gap between a physical object and digital information with a single quick scan. To learn how QR codes differ from the older striped barcodes, read our comparison of QR codes vs barcodes, and when you are ready to read one, see how to scan a QR code.

Frequently asked questions

What does QR stand for?

QR stands for Quick Response. The name reflects the original goal: a code that machines could read very fast, much faster than a traditional one-dimensional barcode.

How much data can a QR code hold?

A single QR code can store up to roughly 7,000 numeric digits, about 4,300 alphanumeric characters, or close to 3,000 bytes. In practice most codes hold a short URL or a few lines of text so they stay easy to scan.

Why can a QR code still scan when it is partly damaged?

QR codes use Reed-Solomon error correction, which adds redundant data so a scanner can rebuild the message even if part of the code is dirty, torn, or covered by a logo. Higher correction levels can recover up to about 30 percent of the code.

F
The freeqrcodegenerators.com team
We produce content on QR codes and digital menu technology, in partnership with our technology partner QRbug.