What Is a QR Code?
A QR code is a square barcode that a phone camera can read in any direction. QR stands for Quick Response. Its pattern of black and white squares stores a link, a Wi-Fi password, a contact card or plain text, and the phone shows that content as soon as it reads the code.

Denso Wave, then part of the Japanese car parts maker Denso, released the QR code in 1994 because striped barcodes held too little, about 20 characters. Car factories took it up to track parts, phones in Japan began reading it in 2002, and today the camera app on almost every smartphone does it with no extra app.
This guide explains what the letters mean, how a phone reads the pattern, what each part of the code does, how much it can hold, how it differs from a barcode and how many codes can exist.
What does QR stand for?
QR stands for Quick Response. Denso Wave chose the name because the code was built to be read fast: a reader finds it, works out its angle and decodes it in a fraction of a second, even when the code is tilted or upside down.
Say “QR code” and most people picture the square in a café window or on a parcel. Technically it is a two-dimensional barcode, or matrix code: it stores data both across and down, where a classic barcode stores it in a single line of bars.
How do QR codes work?
Every QR code is a grid of small squares called modules. Dark and light modules stand for the 1s and 0s of the data. When you point a camera at one, the phone goes through the same steps each time.
Find the code
The phone looks for the three large squares in the corners. Their ring shape rarely appears anywhere else in a photo, so the code is found at any angle.
Measure the grid
From the corner squares, the phone works out the size of the code, its tilt and how many modules it has on each side.
Read the settings
Thin strips of format information beside the corner squares give the error correction level and the mask that was applied.
Read the data
The phone lifts the mask and reads the modules along a set zigzag path, two columns at a time, starting from the bottom right corner.
Repair the damage
Extra error correction data, written as Reed-Solomon codes, lets the phone rebuild missing parts, such as a scratch or a logo printed over the middle.
Show the result
The phone works out what the content is, a link, a Wi-Fi network, a contact card, and offers the matching action, such as opening the page.
The mask is one of eight patterns the generator lays over the data to break up large blocks of one colour, which readers find hard to follow. Error correction comes in four levels: the higher the level, the more damage the code survives, and the more modules it needs for the same content.
- Level L restores about 7% of the code.
- Level M restores about 15%, and it is the usual choice.
- Level Q restores about 25%.
- Level H restores about 30%, for codes with a logo on top or prints that get dirty.
No camera handy, or a code inside a screenshot? The online QR scanner reads it in your browser, and how to scan a QR code covers every kind of phone.

What a QR code looks like, part by part
Look closely and every QR code has the same landmarks. Only the data area changes from one code to the next.
| Part | Where it sits | What it does |
|---|---|---|
| Finder patterns | Three large squares, in three corners | Let the camera find the code and tell which way is up |
| Alignment patterns | Small squares inside the code, from version 2 up | Keep the grid true when the code is curved or seen at an angle |
| Timing patterns | Dotted lines between the corner squares | Mark out the rows and columns of modules |
| Format information | Thin strips beside the corner squares | Store the error correction level and the mask |
| Version information | Two small blocks near the corners, from version 7 up | Tell the reader the size of a large code |
| Data and error correction | Everything else | Hold your content and the backup data that repairs damage |
| Quiet zone | The blank margin all around | Sets the code apart from its surroundings; the standard asks for four modules |
The fourth corner, bottom right, has no big square: that is where the data starts. Codes also come in 40 sizes, called versions. Version 1 is 21 by 21 modules, and each step up adds 4 modules per side, up to 177 by 177 for version 40.
What a QR code can hold
The largest code, version 40 at the lowest error correction level, holds up to:
- 7,089 digits
- 4,296 letters and numbers, using capital letters, digits, the space and a few symbols
- 2,953 bytes of any data, such as a long link or text with accents
- 1,817 Japanese kanji characters
In practice, a code that holds a few dozen characters scans best. Phone cameras read a link, Wi-Fi details, a contact card, plain text, an email, a text message or a phone number, each written in a short format the camera recognizes.
A code holds characters, not files. A picture or a PDF goes online first, and the code holds its link. A code that holds a short forwarding address on a service is called a dynamic code; static vs dynamic QR codes explains the difference and what it means for expiry.
QR code vs barcode
A QR code is a kind of barcode. The striped barcode on a cereal box stores data in one direction; a QR code stores it in two, which is why it holds so much more in less space.
| What differs | Striped barcode | QR code |
|---|---|---|
| Shape | Bars of different widths in a row | A square grid of modules |
| How much it holds | About 20 characters, often a 12 or 13 digit product number | Up to 7,089 digits or 2,953 bytes |
| Reading angle | The scanner has to cross the bars | Any direction, even upside down |
| Damage | A check digit catches a misread but cannot fix it | Error correction rebuilds up to 30% of the code |
| Read by | Checkout scanners and some cameras | Any phone camera |
| Typical use | Prices at the till, stock numbers | Links, Wi-Fi, tickets, menus, contact cards |
Shops often print both on the same label: the barcode for the till, the QR code for the customer’s phone.

Who invented the QR code, and when
Masahiro Hara led the work at Denso Wave, then a division of Denso Corporation, with a single colleague. Barcodes of the time held about 20 characters, and users wanted a code that held more, including Japanese kanji and kana. The QR code was announced in 1994, a year and a half after the project began.
| Year | What happened |
|---|---|
| 1994 | Denso Wave announces the QR code |
| 1997 | Approved as a standard by AIM, the automatic identification industry body |
| 1999 | Becomes a Japanese Industrial Standard (JIS) |
| 2000 | Approved as an international standard, ISO/IEC 18004 |
| 2002 | Phones that read QR codes spread across Japan |
| 2017 | iOS 11 lets the iPhone camera read QR codes with no extra app |
| 2020 | Restaurants and shops turn to QR codes for menus and contactless check-in |
Denso Wave holds the patent but declared from the start that it would not enforce it, and published the specification so anyone can make and read QR codes for free. “QR Code” itself is a registered trademark of Denso Wave.
How many QR codes are possible?
More than anyone could ever use. Version 1, the smallest, has room for 152 bits of data at level L, which already allows a number of combinations with 46 digits. The 39 larger versions add far more, well past the number of atoms in the observable universe, usually put at around 80 digits.
There is no central registry either. A code is not issued to you; it is calculated from your content. Two people who encode the same link with the same settings get the same pattern, and a different link always gives a different code.
The same link can still produce codes that look different, because generators may pick a different error correction level or mask. Every one of them opens the same page.
Questions about QR codes
A code that will not scan or a type you are missing? We answer every message.
Ask a question
Is a QR code a barcode?
Yes. A QR code is a two-dimensional barcode, also called a matrix code. A classic barcode stores data in one line of bars, while a QR code stores it across a square grid, both across and down. That lets it hold far more, and phone cameras read it from any angle without a dedicated scanner.
Why does a QR code have three big squares?
The three squares, called finder patterns, let a camera spot the code and work out its angle. Their ring shape rarely appears anywhere else in a photo, so the phone finds them fast. Because only three corners carry one, the phone also knows which way the code is turned, even upside down.
Do QR codes need the internet to work?
Reading a code needs no internet: the content is stored in the pattern, and the phone decodes it on its own. What happens next may need a connection. A link code opens a web page, which needs data or Wi-Fi, while a Wi-Fi, contact card or text code works fully offline.
Can I scan a QR code without an app?
On most phones, yes. The iPhone camera has read QR codes since iOS 11, and most Android camera apps do too, sometimes through Google Lens. Point the camera at the code and tap the banner that appears. On a computer, an online scanner can read a code from your webcam or from a screenshot.


