What Is a QR Code and How Does It Work? QR Code Technology Explained (2026)
Looking to build this now? Try our Free QR Code Generator
Explore the core fundamentals of QR code symbology and generate your first code in seconds.
1. What Does QR Stand For? A Short History
QR stands for 'Quick Response'. The name reflects the original goal, which was to read codes much faster than older barcodes:
- 1994: Masahiro Hara's team at Denso Wave, then part of the Japanese automotive supplier Denso, created the QR code to track car parts. Traditional 1D barcodes held too little data and had to be scanned one by one.
- Open standard: Denso Wave holds the patent but chose not to enforce it for standard QR codes, so anyone can create and read them without a license. 'QR Code' is a registered trademark of Denso Wave.
- Standardization: QR codes became an international standard, ISO/IEC 18004, in 2000.
- Smartphone era: Once phone cameras could read QR codes without a separate app (iPhone added this in iOS 11 in 2017), QR codes became common for menus, payments, and marketing.
2. The Anatomy of a QR Code
Every QR code contains fixed patterns that help the scanner find and read it, plus the area that holds the data:
- Finder patterns: The three large squares in the corners. They tell the scanner where the code is, how big it is, and which way up it is.
- Separators and quiet zone: A light border around the finder patterns and around the whole code. The standard calls for a quiet zone 4 modules wide.
- Timing patterns: Alternating dark and light lines between the finder patterns. They set the grid spacing, so the scanner knows where each module is.
- Alignment patterns: Smaller squares (from version 2 upward) that help correct for distortion when the code is curved or photographed at an angle.
- Format information: Bits near the finder patterns that record the error correction level and the mask pattern used.
- Version information: Extra blocks in version 7 and larger that record the version number.
- Data and error correction area: All remaining modules, which store your data plus Reed–Solomon error correction codewords.
Create Your Custom QR Code
Generate static and dynamic QR codes tailored for your brand, with custom colors, embedded logos, and mobile-friendly microsites.
3. QR Code Format: Versions, Size and Capacity
A QR code's 'version' sets its grid size. There are 40 versions, from 21 × 21 modules (version 1) to 177 × 177 modules (version 40). Each version adds 4 modules per side. The more data you encode, the higher the version and the denser the code. Maximum capacity (version 40, lowest error correction) depends on the type of data:
| Encoding Mode | Characters Allowed | Maximum Capacity |
|---|---|---|
| Numeric | Digits 0–9 | 7,089 characters |
| Alphanumeric | 0–9, A–Z (uppercase), space and $ % * + - . / : | 4,296 characters |
| Byte | Any data, such as UTF-8 text, URLs, and emoji | 2,953 bytes |
| Kanji | Japanese Kanji characters | 1,817 characters |
4. Error Correction: Why Damaged QR Codes Still Scan
QR codes use Reed–Solomon error correction, the same family of codes used on CDs and in deep-space communication. Extra codewords allow a scanner to rebuild missing or damaged parts. There are four levels:
| Level | Approx. Data Recoverable | Trade-Off |
|---|---|---|
| L (Low) | About 7% | Smallest code for the same data |
| M (Medium) | About 15% | A common default balance |
| Q (Quartile) | About 25% | Good when part of the code is covered, such as by a logo |
| H (High) | About 30% | Most robust, but the densest code |
- Logos rely on error correction: A small center logo covers some modules, and error correction fills the gap. Keep logos modest in size and always test.
- In TryQRMint: Error correction is set automatically. Codes use level M, and level Q when you add a logo, so you don't need to choose a level.
5. How QR Codes Are Generated, Step by Step
When a QR code generator creates a code, it follows the steps defined in the standard:
- 1. Analyze the data: Choose the most efficient encoding mode (numeric, alphanumeric, byte, or kanji).
- 2. Encode: Convert the data into a bit stream with a mode indicator and a character count.
- 3. Choose the version: Pick the smallest version that fits the data at the chosen error correction level.
- 4. Add error correction: Split the data into blocks and calculate Reed–Solomon codewords for each block.
- 5. Place the modules: Draw the finder, timing, and alignment patterns, then fill the data bits in a zigzag path through the grid.
- 6. Apply a mask: Test 8 standard mask patterns, which flip modules in fixed patterns, and keep the one that avoids large blocks and confusing shapes.
- 7. Write format information: Record the error correction level and the mask used, so the scanner can reverse the mask.
6. How QR Code Scanning Works
Reading a code reverses the generation process, and modern phones do it in a fraction of a second:
- Find the code: The camera software looks for the three finder patterns and calculates the code's position, size, and rotation.
- Correct the perspective: The timing and alignment patterns let it 'flatten' a tilted or curved code.
- Read the grid: Each module is sampled as dark or light, and the format information is decoded.
- Unmask and fix errors: The mask is removed, and Reed–Solomon decoding repairs damaged codewords.
- Act on the data: The phone shows a link preview, a 'Join network' prompt for WiFi, or an option to add a contact.
7. QR Code Features, Models and Variants
Several features explain why QR codes replaced many older barcodes:
- High capacity: Thousands of characters, compared with roughly 20 for a typical 1D barcode.
- Readable from any angle: The finder patterns let a scanner read the code in any direction.
- Damage-tolerant: Up to about 30% can be recovered at level H.
- Many data types: URLs, plain text, WiFi logins, contact cards (vCard), email, SMS, phone numbers, and more.
- Models: Model 1 was the original design. Model 2, which added alignment patterns and versions up to 40, is the QR code used today.
- Variants: Micro QR (very small codes with one finder pattern) and rMQR (rectangular codes) are used in industrial labeling, but most phone cameras are built for standard QR codes.
8. Static vs. Dynamic QR Codes
Every QR code works the same way technically. The difference is what the code contains. A static code stores the final data, such as the full URL or WiFi password, and can never change. A dynamic code stores a short link to a service, which then sends the scanner to content that you can edit and track. For a detailed comparison, read static vs. dynamic QR codes. To see how the editable kind works, read how to create a dynamic QR code.
9. Limitations and Safety
QR codes are reliable, but they have limits that are worth knowing:
- A QR code is only as trustworthy as its destination: Fraudsters sometimes stick fake codes over real ones ('quishing'). Check the link preview before you open it. Our QR code security best practices explain the warning signs.
- Static data is readable by anyone: Anything encoded directly, such as a WiFi password, can be decoded by anyone who scans the code.
- Print quality matters: Low contrast, a missing quiet zone, or a code that is too small causes most scan failures. See our QR code not scanning checklist.
Final Takeaway
QR code technology combines a simple idea, a grid of modules with three corner squares, with careful engineering in versions, encoding modes, masking, and Reed–Solomon error correction. This is why a code printed on a crumpled flyer still opens in a second. To make your own, the free QR code generator creates static codes on the free plan.
Related Guides & Tutorials
Website URL QR Code: How to Create One for Any Web Page
Make a QR code for a website URL for free: pick static or dynamic, add UTM tags, shorten long links and test before printing. Includes a fix-it checklist.
Plain Text QR Code: How to Encode Text Without a Website
Create a free text QR code that shows your message with no website or internet. See how much text fits, what to avoid, and when a static code is a must.
Social Media QR Code: Put Multiple Social Profiles in One QR
Make one QR code for all your social media: Instagram, Facebook, X, LinkedIn, YouTube and TikTok on one page. Setup steps, tips, fixes. Free 7-day trial.
Frequently Asked Questions
Find immediate answers regarding dynamic QR codes, analytics, formats, and commercial usage.
QR stands for 'Quick Response'. Masahiro Hara's team at Denso Wave created the QR code in 1994 to track automotive parts quickly.
A QR code stores data as a grid of dark and light modules. A camera finds the three corner squares, corrects the angle, reads each module, removes the mask, repairs errors with Reed–Solomon codes, and decodes the data, which is often a URL that the phone then offers to open.
The largest QR code (version 40, 177 × 177 modules, at level L) holds up to 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes. Real-world codes usually hold much less, because shorter data gives a smaller code that is easier to scan.
There are four levels: L (about 7% recoverable), M (about 15%), Q (about 25%), and H (about 30%). Higher levels make the code more damage-tolerant but denser. TryQRMint selects M automatically, or Q when you add a logo.
A generator chooses an encoding mode, converts the data to bits, picks the smallest version that fits, adds Reed–Solomon error correction, places the modules in the grid, applies the best of 8 mask patterns, and writes the format information.
The QR code pattern itself never expires. Static codes work as long as their content is valid. Dynamic codes depend on the service behind them. On TryQRMint, dynamic codes redirect while you have an active trial or paid plan.
Ready to Supercharge Your QR Campaigns?
Create a free account to design branded QR codes, launch dynamic redirects you can edit anytime, and track scans in real time.