What Is a QR Code and How Does It Work?
QR codes are everywhere, but what actually makes them work? A plain-English look at the pattern your phone reads.
A QR code is a two-dimensional barcode — a square pattern of black and white modules that stores information a phone camera can read in an instant. “QR” stands for Quick Response, and the name is the point: scan it, and something happens fast.
How it differs from a barcode
A traditional one-dimensional barcode stores data in a single line of varying widths. A QR code stores data in two dimensions — both horizontally and vertically — which means it holds far more information in a much smaller space.
Where a barcode might hold a product number, a QR code can hold a full URL, a chunk of text, WiFi credentials or a contact card.
What the pattern contains
Look at a QR code and you will see three large squares in the corners. These are finder patterns — they tell the scanner where the code begins and how it is oriented, so the code can be read upside down or at an angle.
Between them is a grid of smaller black and white modules. Each module is a bit of data. There are also timing patterns, alignment markers and error-correction data woven in, which is why a slightly damaged code can still scan.
How a phone reads it
1. Detect
The camera app finds the finder patterns and works out the code’s position and orientation.
2. Decode
It reads the grid of modules and converts the pattern back into the original text or URL.
3. Act
It recognises what the content is — a link, WiFi details, a contact — and offers the matching action, like opening a browser.
Error correction
QR codes include built-in redundancy. A portion of the data is duplicated using an error-correction scheme, so the code can still be read even if part of it is smudged, scratched or covered. Higher error-correction levels allow more damage but make the code denser.
This is also what allows a small logo to be placed in the center of a code without breaking it — as long as the error correction can cover the covered area.
Static vs dynamic
A static QR code stores its content directly in the pattern — it is self-contained and never expires on its own. A dynamic QR code stores a short redirect link and routes scans through a server, which allows editing the destination later but depends on that service staying online. Learn more in our static vs dynamic comparison.
Frequently asked questions
What does QR stand for?
Quick Response — the code is designed to be read quickly by a camera.
Do QR codes need the internet to scan?
Scanning itself does not need the internet. But if the code contains a URL, opening that page does require a connection.
Can a damaged QR code still scan?
Often yes. Error correction allows a code to be read even when part of it is damaged, up to a limit.
Related articles
Sponsored
Visit Sponsored Link