What Is a QR Code? A Plain-English Explanation
A QR code is a square, two-dimensional barcode: a grid of dark and light cells called modules that stores a short piece of text, most often a web address. QR stands for “Quick Response”. You point a phone camera at the grid, the phone turns the pattern back into text, and then offers an action: open a link, join a Wi-Fi network, start an email, dial a number or just show the text. No app is needed on a modern iPhone or Android phone.
In other words, a QR code is a printed (or on-screen) way of handing a small piece of information to a phone without anyone typing it. If you want to explain a QR code to someone in one line: it is a picture of some text that a camera can read.
QR कोड क्या है (in Hindi): QR कोड (Quick Response कोड) एक चौकोर 2D बारकोड है जिसमें टेक्स्ट, जैसे वेबसाइट का लिंक, संग्रहीत होता है। फोन का कैमरा इसे स्कैन करके लिंक खोलने, Wi-Fi जोड़ने या नंबर डायल करने जैसी कार्रवाई सुझाता है।
The format was created in 1994 by Masahiro Hara’s team at Denso Wave, then part of the Toyota group, to track car parts faster than one-dimensional barcodes allowed. Denso Wave kept the “QR Code” trademark but chose not to exercise its patent, and the symbology was standardised as ISO/IEC 18004 (first published in 2000). That is why anyone can make and scan QR codes without licences or fees. The full story is in our history of QR codes; this article focuses on what the code is and how it works.
Two ideas explain almost everything about QR codes:
- It is just data. A QR code does not “contain a website” or run anything. It holds a string of characters. If that string is
https://example.com, your phone offers to open it; if it is a Wi-Fi string, it offers to join the network. - It is built to survive bad conditions. Fixed patterns tell the scanner where the code is and how it is rotated, and built-in error correction lets it read the data even when part of the code is dirty, scratched or covered.
A QR (Quick Response) code is a square 2D barcode that stores text — most often a URL — in a grid of modules, with locator patterns and error correction so a phone camera can read it quickly from any angle.
QR Code Meaning: What “QR” Stands For
The QR code meaning is in the name. QR is short for Quick Response: the design goal was a code that a scanner could find and read quickly, even when it was tilted, dirty or partly hidden. The word code here means a way of representing data, not secret code: anyone can decode a QR code, and nothing in it is encrypted.
When people search for the “full form of QR code”, the answer is simply Quick Response code. “QR Code” itself is a registered trademark of Denso Wave, which is why you will sometimes see it written with the trademark note; in everyday use it has become the generic name for the format.
So a QR code is not an app, a website or a payment system. It is a container for a short string of characters. What the string means, and what happens next, depends on what is written in it and which app reads it.
Parts of a QR Code (Anatomy)
Every standard QR code has the same building blocks. Some are fixed “function patterns” that help the scanner; the rest is your data plus error-correction data.
Finder patterns and separators
The three big squares in the top-left, top-right and bottom-left corners are finder patterns. Each is a 7×7 block whose rings, read across in any direction, follow a dark–light–dark–light–dark ratio of 1:1:3:1:1. That ratio is rare in ordinary images, so software can spot it fast, and because there are only three (the fourth corner is empty) the scanner instantly knows which way the code is rotated. A one-module light border called the separator keeps each finder apart from the data.
Timing patterns
Between the finders run two lines of strictly alternating dark and light modules, one horizontal and one vertical. These timing patterns work like a ruler: they tell the decoder how many modules wide the grid is and where each column and row sits.
Alignment patterns
From Version 2 upward, smaller 5×5 squares called alignment patterns appear inside the grid. They let the decoder correct for perspective and curvature — a code on a bottle or photographed at an angle. Version 1 has none, Versions 2–6 have one, and the count grows with size up to 46 in Version 40.
Format and version information
Next to the finders are small strips of format information: 15 bits that record which error-correction level and which mask pattern the code uses, themselves protected by an error-correcting code and stored twice. Codes of Version 7 and above also carry 18 bits of version information, again stored twice. There is also one module, beside the bottom-left finder, that is always dark.
Data area and quiet zone
Everything else is the data and error-correction codewords — the part that looks random. Around the whole symbol there must be a blank margin, the quiet zone, which the standard sets at four modules wide. Cropping into the quiet zone, or placing a code on a busy background, is one of the most common reasons a code will not scan (see why a QR code won’t scan).
QR Code Versions and Sizes
“Version” in QR terms means grid size, not software version. There are 40 versions. Version 1 is 21×21 modules, and each version adds 4 modules per side, so Version 2 is 25×25 and Version 40 is 177×177. The encoder picks the smallest version that fits your data at the chosen error-correction level. That is why a short URL produces a coarse, easy-to-scan code and a long paragraph produces a dense one.
The practical lesson: shorter content means bigger modules at the same printed size, and bigger modules scan more reliably from further away. If a code has to be small, keep the data short. Our QR code size guide turns this into minimum print dimensions.
QR Code Format: Standards and Variants
People who ask about the “QR code format” usually mean one of three things: the file format of an image, the layout of the grid, or the family of related codes.
- The standard. The symbol layout, encoding modes and error correction are defined in ISO/IEC 18004. The original Model 1 design was replaced by Model 2, which added alignment patterns and larger sizes; essentially every code you meet today is Model 2.
- Micro QR. A smaller variant with a single finder pattern instead of three. It holds much less data and is meant for tiny spaces such as parts marking, and many phone cameras do not read it.
- Other 2D codes. Data Matrix, Aztec Code and PDF417 are different symbologies, not QR codes. They are common on components, tickets and ID documents, and are read with different rules.
- The image file. A QR code is just an image, so it is saved as PNG (pixels) or SVG (scalable vector). Use SVG or a large PNG for print so the modules stay sharp.
How a QR Code Encodes Data
Turning text into modules happens in a few fixed steps defined by the standard. Generators do this for you, but knowing the steps explains why some codes are denser than others.
1. Choose an encoding mode
The data is converted to bits using one of four main modes. Each mode packs characters differently:
| Mode | Characters allowed | Packing | Max (Version 40-L) |
|---|---|---|---|
| Numeric | 0–9 | 3 digits in 10 bits | 7,089 digits |
| Alphanumeric | 0–9, A–Z (uppercase), space, $ % * + - . / : | 2 characters in 11 bits | 4,296 characters |
| Byte | Any byte (text is normally UTF-8) | 8 bits per byte | 2,953 bytes |
| Kanji | Shift JIS double-byte characters | 13 bits per character | 1,817 characters |
Most web addresses use byte mode because they contain lowercase letters. Good encoders can also switch modes mid-stream (for example, byte mode for a word and numeric mode for a long run of digits) to save space. For the full capacity tables by version and error level, see how much data a QR code can hold.
2. Add the header and padding
The bit stream starts with a 4-bit mode indicator and a character count, followed by the data, a short terminator, and padding bytes until it fills the capacity of the chosen version. The stream is then cut into 8-bit codewords.
3. Add error correction
The codewords are split into blocks and each block gets extra Reed–Solomon error-correction codewords. The amount depends on the level you choose:
- L — about 7% of codewords can be restored
- M — about 15%
- Q — about 25%
- H — about 30%
Higher levels make the code more robust but also denser, because more of the grid is spent on redundancy. The maths is explained in Reed–Solomon error correction in QR codes, and choosing a level is covered in QR code error correction levels.
4. Place the bits and apply a mask
Data and error-correction codewords are interleaved and laid into the grid in two-module-wide columns, zig-zagging up and down from the bottom-right corner and skipping the function patterns. Finally the encoder tries the eight mask patterns defined by the standard — each flips modules in a regular pattern — scores each result for features that confuse scanners (large blocks of one colour, patterns that look like a finder), and keeps the lowest-scoring one. The chosen mask number goes into the format information so the reader can undo it.
QR Code Apps for Mac & Safari
Prefer generating codes without opening a browser tab? These two native Apple apps cover both habits — a full generator on the desktop, and a one-click share button inside Safari.
Worked Example: From a Web Address to a QR Code
Take the text https://example.com. It is 19 characters long. Because it contains lowercase letters, it is encoded in byte mode, which uses 8 bits per character, so it needs 19 bytes of data.
- Pick the smallest version that fits. Version 1 (21×21 modules) holds only 17 bytes at the lowest error-correction level, so 19 bytes does not fit. Version 2 (25×25 modules) holds 32 bytes at that level, so the encoder uses Version 2.
- Build the bit stream. Mode indicator, character count, the 19 bytes, a terminator and padding.
- Add error correction. Reed–Solomon codewords are appended so a damaged code can still be read.
- Place and mask. The bits are laid into the grid around the finder, timing and alignment patterns, and the best of eight masks is applied.
The result is a 25×25 grid of modules. If you add a path such as /menu/lunch, the data grows and the code may jump to a larger version. That is why a short link gives a clean, easy-to-scan code and a long link gives a dense one. (The domain part of a URL is not case-sensitive, but paths often are, so do not convert a URL to capitals just to save space.)
You can reproduce this yourself: paste a short URL into our free generator, then keep adding text and watch the grid get denser.
How Scanning a QR Code Works
Reading a code reverses those steps. On a phone it typically takes well under a second:
From camera frame to action
Find the code. The camera app scans each frame for the 1:1:3:1:1 finder-pattern ratio and locates the three corners.
Map the grid. Finder, timing and alignment patterns give the module size and correct for tilt and curvature; each module is sampled as dark or light.
Read the format. The format information reveals the error-correction level and mask; the mask is removed.
Decode and repair. Codewords are de-interleaved, Reed–Solomon decoding fixes damaged ones, and the bit stream is turned back into text using the mode indicators.
Act on the text. The phone recognises the content’s format — a URL, a WIFI: string, a mailto: address, a tel: number, a vCard — and offers the matching action.
All of this happens on the device; reading a QR code needs no internet. You only need a connection if the decoded content is a web link. iPhones have read QR codes in the built-in Camera app since iOS 11 (2017), and current Android phones do it from the camera app or Google Lens. For device-by-device steps, see how to scan a QR code.
What a QR Code Can Contain
Because the payload is plain text, the “type” of a QR code is really just a text convention that phones recognise. The common ones:
| Content | What is encoded | What the phone does |
|---|---|---|
| Website | https://… | Offers to open the page |
| Plain text | Any text | Shows the text |
| Wi-Fi | WIFI:T:WPA;S:name;P:password;; | Offers to join the network |
mailto: address (optionally subject/body) | Opens a new email | |
| Phone | tel:+15551234567 | Offers to call |
| Contact card | vCard text (BEGIN:VCARD…) | Offers to save the contact |
| Payments, tickets, logins | A token defined by that app or system | Only the issuing app or scanner understands it |
The last row matters: payment, boarding-pass and two-factor codes are QR codes too, but their contents only mean something to the system that issued them. For a tour of every common format with examples, see types of QR codes.
What Are QR Codes Used For? Everyday Examples
Anywhere you want someone to get from the physical world to a phone screen without typing, a QR code fits:
- Menus, posters and packaging that link to a web page.
- Wi-Fi sharing at home or in a cafe, so guests join without reading out a password.
- Contact details on a business card or name badge.
- Tickets, boarding passes and check-ins, where the code is a token only the issuing system understands.
- Payments and logins, including setup codes for two-factor authentication apps.
- App downloads and event or product registration pages.
Most of these are static codes that simply hold the text directly. For the full list of content formats, with examples of each, see types of QR codes.
QR Codes vs Traditional Barcodes
A product barcode (EAN/UPC) is one-dimensional: the information is in the widths of vertical bars, read along one line. A QR code stores data in both directions, which is what lets it hold so much more.
| Feature | 1D barcode (EAN/UPC) | QR code |
|---|---|---|
| Structure | Bars read along one line | 2D grid of modules |
| Typical content | A product number (EAN-13 = 13 digits) | URLs, text, Wi-Fi, contacts — up to 7,089 digits |
| Orientation | Scanner line must cross the bars | Any rotation |
| Damage tolerance | Check digit only | Up to ~30% restorable |
| Phone camera | Needs an app on most phones | Built in |
Retail barcodes are not going away — checkout systems are built around them — but anything meant for a customer’s phone is usually a QR code. More detail in QR code vs barcode.
Do QR Codes Expire, and Are They Safe?
A QR code that encodes its content directly — a static code — never expires. The pattern is just ink or pixels; nothing has to stay online for it to keep scanning. What can stop working is the destination: if the code holds a URL and that page is taken down, the code still scans but leads nowhere. Services that sell “dynamic” codes encode their own short link and redirect it, which lets you change the destination but means the code depends on that service. The trade-offs are in static vs dynamic QR codes.
Scanning a code is harmless in itself — it only reads text. The risk is where the text sends you. Check the link preview your phone shows before opening it, be wary of stickers placed over an existing code, and never enter passwords or payment details on a page you reached from an unknown code.
Common Misconceptions About QR Codes
- “A QR code can run a program on my phone.” No. It only supplies text. Your phone decides what to offer, and you choose whether to tap it.
- “A QR code tracks me.” The code itself is just data. Any tracking comes from the web page it links to, or from a redirect service in the middle, as with any other link.
- “QR codes need an app.” Not any more: the iPhone Camera app and most Android cameras read them directly.
- “Every QR code is the same.” They share one layout, but size, error-correction level and content all vary, and some codes (payments, tickets) only work inside one system.
- “A damaged code is useless.” Built-in error correction restores a fraction of the data, from about 7% up to about 30% depending on the level chosen.
Make a QR Code Yourself
The quickest way to see all of this in action is to make one. The free generator on our homepage creates URL, Text, Wi-Fi, Email and Phone codes in your browser — your data is not uploaded — and downloads them as PNG or SVG with no sign-up. Text codes can hold several lines. The codes are static, black on white, and never expire. Try typing a short URL, then a long paragraph, and watch the grid get denser as the version increases.
If you want colours, a logo in the middle, a choice of error-correction level (L, M, Q or H) or contact-card (vCard) codes, Gen QR – Code Maker does that natively on the Mac, fully offline, for a one-time purchase. And if you mostly want to send a web page to your phone, Tab to QR turns the current Safari tab into a QR code with one click.
Try It Yourself — Create a Free QR Code
URL, text, Wi-Fi, email or phone. Generated in your browser, downloaded as PNG or SVG.
Frequently Asked Questions
QR stands for Quick Response, so the full form of QR code is Quick Response code. The name reflects its original goal: to be read quickly by scanners on Toyota-group assembly lines. Denso Wave created the format in 1994.
A QR code is a square barcode that stores a short piece of text, usually a web address. Your phone camera reads the pattern of dark and light squares, turns it back into text and offers an action, such as opening a link or joining a Wi-Fi network.
A QR code has three finder patterns in the corners, timing patterns between them, alignment patterns in larger codes, format information (error-correction level and mask), version information on Version 7 and above, the data and error-correction area, and a blank quiet zone around the outside.
The largest QR code (Version 40 at error-correction level L) holds up to 7,089 digits, 4,296 alphanumeric characters or 2,953 bytes. Real codes hold far less, usually a URL of under 100 characters, because less data gives larger modules that scan more easily.
Yes, reading a QR code happens entirely on the device. You only need internet if the decoded content is a web link. Text, Wi-Fi, phone and contact-card codes work fully offline.
A static QR code, which stores its content directly, never expires. It can only stop being useful if the website it points to is removed. Codes from dynamic QR services rely on the service's redirect link, so they stop working if that link is switched off.
Scanning only reads text, so it is safe in itself. The risk is the destination: a code can link to a phishing page. Check the link preview before opening it, watch for stickers over existing codes, and do not enter passwords or payment details on a page reached from an unknown code.
QR codes follow the ISO/IEC 18004 standard: a square grid of modules from 21x21 (Version 1) up to 177x177 (Version 40), with finder, timing and alignment patterns, format information and error-corrected data. Almost all codes today are the Model 2 layout. As a file, a QR code is saved as PNG or SVG.
The smallest standard QR code is Version 1, a 21x21 grid. The largest is Version 40, a 177x177 grid that can hold up to 7,089 digits or 2,953 bytes at the lowest error-correction level.
A QR code is a type of barcode, but a two-dimensional one. A traditional product barcode stores a short number in bars read along one line; a QR code stores data across a grid, so it holds far more and can be read from any angle.
Yes. A QR code holds text, so it can carry a web address, plain text, Wi-Fi details, an email, a phone number or a contact card. Payment and ticket codes also use the format, but only the issuing system can interpret them.