The Complete Guide to QR Codes: How They Work, Types, and Best Practices


Every QR Code contains more than a URL. The version determines data capacity, the format type determines where it can be printed, and the error correction level determines whether it survives a scratch, a smudge, or a torn poster. Most businesses deploy QR Codes without understanding any of this, and pay for it with dead codes in the field and no visibility into what's happening. This guide explains the technology, the decisions, and the governance principles that separate QR Codes that work from ones that quietly fail.
A QR Code (Quick Response code) is a two-dimensional matrix barcode that encodes data in a grid of black and white modules, storing information both horizontally and vertically. A single code holds up to 7,089 numeric or 4,296 alphanumeric characters. Unlike traditional barcodes, which read data in one direction only, a QR Code's bidirectional structure lets scanners read it from any orientation, even when the code is partially damaged.
Masahiro Hara at Denso Wave invented QR Codes in 1994 to track automotive parts on factory floors. That industrial origin established three defining properties that still hold today: high-speed scanning, orientation independence, and fault tolerance. Scratch it, bend it, or scan it at an angle, and a QR Code still reads accurately.
The global QR Code market reached $13.04 billion in 2025, growing at 20.5% annually (Mordor Intelligence). Yet 36% of consumers have scanned a QR Code that didn't work, not because of design flaws, but because of poorly understood implementation decisions, as per Uniqode’s State of QR Codes Report 2026. A QR Code isn't just a marketing asset. It's a data architecture decision.
This guide covers the seven structural components of a QR Code, versions 1 through 40, all major format types, the step-by-step encoding and scanning process, and best practices for reliable deployment.
What is a QR Code?
A QR Code stores data as a pattern of black and white square modules on a two-dimensional grid. Rather than scanning a single horizontal line, a smartphone camera captures the entire grid at once, which is why modern devices read QR Codes in under a second without any specialized hardware.
The name "Quick Response" reflects the original engineering requirement: decode faster than any barcode available in 1994. A standard one-dimensional barcode maxes out at 20 alphanumeric characters. A QR Code holds up to 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes of binary data, depending on the encoding mode.
QR Codes are governed by ISO/IEC 18004, the international standard maintained by the International Organization for Standardization. That standard defines every structural element, version specification, encoding mode, and error correction algorithm. Universal compliance with it is precisely why a QR Code generated anywhere in the world is readable by any compliant scanner everywhere else.
Origin of QR Codes
Masahiro Hara and his team at Denso Wave invented the QR Code in 1994 to address the limitations of traditional barcodes in tracking automotive parts. Their two-dimensional matrix enabled a single scan to capture part numbers, production batches, origin locations, and assembly destinations.
Factory conditions influenced every design decision. The code needed to be readable from any angle, at high speed, and even when partially obscured by dirt or oil. These requirements led to the development of finder patterns, error correction, and omnidirectional scanning, which remain core features of QR Codes.
Denso Wave released the QR Code specification as an open standard, enabling universal use without licensing fees. Japan launched mobile phones with integrated QR readers in 2002. In the United States, widespread adoption occurred in 2020 as contactless menus during the pandemic brought QR Codes into mainstream use.
According to Uniqode's State of QR Codes 2026 report, which tracked over 188 million scans across 796,000 QR Codes, usage increased by 4% year-over-year in 2025, with 17 million scans in December alone.
For a complete QR Code history, the evolution from automotive tracking to global digital infrastructure covers three decades of steady, compounding adoption.
Anatomy of a QR Code
A QR Code has seven structural components, each serving a specific engineering function. Together, they enable QR Codes to scan from any angle, stay readable when partially damaged, and store significantly more data than barcodes of the same physical size.

1. Finder patterns
Finder patterns are three identical 7×7 module squares positioned in the top-left, top-right, and bottom-left corners of every QR Code. Scanners use them to identify the code's position and orientation before reading any data. Three non-collinear reference points give the scanner everything it needs to resolve rotation and perspective accurately.
2. Alignment patterns
Alignment patterns are small reference squares embedded within the QR Code grid. They appear from Version 2 onward, with additional patterns added as versions increase. When you scan a code at an angle or print it on a curved or uneven surface, alignment patterns correct the perspective distortion that would otherwise cause a misread.
3. Timing patterns
Timing patterns are alternating black and white modules that run horizontally between the top two finder patterns and vertically between the left two. They create a coordinate grid that tells the scanner the exact size and position of every module in the code.
4. Format information
Format information sits in two bands of modules surrounding the finder patterns. These bands encode the error correction level (L, M, Q, or H) and the mask pattern used during encoding which are the two values the scanner reads first before processing anything else.
5. Version information
Version information identifies which of the 40 QR Code versions the code uses. From Version 7 onward, the scanner reads this information from two 6×3 module blocks positioned next to the finder patterns.
6. Data and error correction modules
Data and error correction modules occupy most of the QR Code grid. They store the encoded information alongside Reed-Solomon error correction codes, the same algorithm used in CDs, DVDs, and satellite communications. Those codes are what keep a QR Code readable even when it's damaged.
7. Quiet zone
The quiet zone is the blank white margin running along all four sides of a QR Code. ISO/IEC 18004 requires at least 4 modules of white space on each side and an insufficient quiet zone is one of the leading causes of scan failures in production.
QR Code versions
QR Codes come in 40 versions. Version 1, the smallest, uses a 21×21 module grid and stores up to 41 numeric characters. Version 40, the largest, uses a 177×177 grid and stores up to 7,089 numeric characters. Each version up adds 4 modules per side.
You don't select the version yourself. The QR Code generator automatically picks the smallest version that fits the data and the specified error correction level.

Data capacity by version
| Version | Size (modules) | Numeric | Alphanumeric | Binary |
|---|---|---|---|---|
| 1 | 21x21 | 41 | 25 | 17 |
| 5 | 37x37 | 386 | 234 | 160 |
| 10 | 57x57 | 1,268 | 768 | 525 |
| 20 | 97x97 | 3,391 | 2,061 | 1,411 |
| 40 | 177x177 | 7,089 | 4,296 | 2,953 |
Source: ISO/IEC 18004
What versions mean in practice
For most business applications, a standard URL of 25 to 40 characters produces a Version 2 or 3 code at Level M. Encoding a complete multi-field contact record pushes the requirement to Version 10 or higher. Dynamic QR Codes sidestep version limitations entirely, a short redirect URL stays at Version 1 or 2 regardless of how long the destination address is. When you weigh static vs dynamic options, version considerations alone make dynamic codes the better choice for most print deployments.
5 popular QR Code styles
QR Codes come in various shapes and sizes. We will discuss some of the popular ones here –
1. QR Code
As discussed, they are two-dimensional barcodes that can store ample data information and have 3 pattern finders – 2 at the top and 1 at the bottom left corner.
2. PDF417
Ynjiun P. Wang invented it in 1991. PDF stands for Portable Data File, and “417” means that each pattern comprises 4 bars and 17 units of space between those patterns.
You can find them on identification cards, inventory, and transportation cards.
3. Aztec Code
It was invented by Andrew Longrace Jr. and Robert Hussey in 1995. In Aztec Code, a pattern exists only in the middle of the codes. It consumes less space and does not require a quiet zone.
You can find them in commercial bills and car registration papers.
4. Semacode
A company with the same name in Canada invented this code. It does not have any position markers. They are designed for mobile phone users to capture website URLs in a DataMatrix encoded form quickly.
5. MaxiCode
It is a public domain created by UPS (United Parcel Services). It has a similar pattern to the Aztec Code with a middle pathfinder. However, it has honeycomb code patterns surrounding the center portion.
They are vastly used in postal services.
4 major QR Code modes
4 major QR Code versions are widely used in the market. These versions usually determine how data is stored in a QR Code. Kindly note, that they are also known as input modes.
Each QR Code mode is identified by version information.
1. Numeric mode
It is used to encode digits and does not support negative numbers. The numeric mode can store up to 7,089 characters. Micro QR Codes and QR Codes support the numeric mode.
2. Alphanumeric mode
It extends the numeric mode with support to upper case letters, spaces, and symbols. It can store up to 4,296 characters.
3. Byte mode
This mode is an extension of the alphanumeric mode with support for lowercase letters. It can store up to 2,953 characters.
Micro QR Codes support the byte mode.
4. Kanji mode
It stores double-byte characters to encode characters in the Japanese format. However, it can only hold 1,817 characters. Hence, Extended Channel Interpretation (ECI) is used to encode Japanese characters in UTF-8.
Additional Modes: These are modifications of other QR Code modes.
1. FNC1 mode
This mode helps QR Codes incorporate GS1 barcode functionalities. This functionality can help share packaging information associated with a product GTIN.
2. Structured append mode
It helps with data encoding from multiple QR Codes. Append mode can allow scanners to read up to 16 QR Codes simultaneously.
5 QR Code formats
Most QR Codes use the Model 2 standard, defined by ISO/IEC 18004. Denso Wave also developed five additional formats to address specific physical and security requirements.
1. Model 1 and Model 2
Model 2, introduced in 1997, is the current international benchmark. It added alignment patterns to correct angle-scanning distortion and expanded the version range. Every consumer smartphone camera supports Model 2 natively.
2. Micro QR Code
Micro QR is the smallest available QR format, ranging from 11×11 to 17×17 modules and supporting up to 35 numeric characters. It's designed for pharmaceutical labels, electronic components, jewelry tags, and small industrial parts where a full-size code simply won't fit.
3. iQR Code
iQR encodes the same data as a standard QR Code in roughly 30% less space and supports rectangular configurations. Consumer smartphone cameras don't read it. It's built for supply chain and manufacturing environments that run dedicated scanners.
4. SQRC (Secure QR Code)
SQRC carries two data layers: a public layer readable by standard scanners and a private encrypted layer accessible only with licensed hardware. Healthcare, pharmaceutical manufacturing, and supply chain authentication are its primary use cases.
5. FrameQR
A Frame QR Code features a central canvas area for embedding images or logos, larger than standard error correction alone would allow. It uses a separate error correction mechanism to maintain full scannability despite the expanded design space.
For a full breakdown of QR Code content types (website, vCard, Wi-Fi, PDF, restaurant menu, and 30+ others), see Uniqode's complete types of QR Codes guide.
How QR Codes work
A QR Code operates in two stages: encoding and decoding. During encoding, the generator converts data into a binary sequence and arranges it as black and white modules within the grid. During decoding, the scanner captures the image, identifies the finder patterns, reads the format information, and reverses the encoding process. The entire sequence takes under 100 milliseconds.Are QR Codes reliable?
The 4 encoding modes
- Numeric mode - digits 0-9 at 3.33 bits per character. Phone numbers, serial numbers.
- Alphanumeric mode - uppercase letters, numbers, 9 symbols at 5.5 bits per character. Uppercase-only URLs.
- Byte mode - full 8-bit ASCII at 8 bits per character. Most modern URLs use byte mode.
- Kanji mode - Japanese characters via Shift JIS at 13 bits per character.
The 5-step scanning process:

Step 1: Locate the code. The scanner identifies the three finder patterns and calculates position, rotation, and size.
Step 2: Correct for distortion. Alignment patterns remap a code scanned at any angle to a flat grid before data reading begins.
Step 3: Map the module grid. Timing patterns establish the exact coordinate grid for every module.
Step 4: Read format information. Error correction level and mask pattern are read before the data region can be decoded.
Step 5: Decode the data. Data modules are read, mask is reversed, Reed-Solomon error correction recovers any damaged bits, and the binary sequence is converted back to its original format.
Reed-Solomon error correction
Reed-Solomon is the algorithm that keeps QR Codes readable even when they're partially damaged, smudged, or printed at low resolution. During encoding, it generates redundant data from the payload and stores it alongside the original information. When decoding, the scanner uses that redundancy to recover corrupted bits. In practice, most scanning failures trace back to encoding decisions and not physical damage.
Error correction levels
QR Codes support four error correction levels - L, M, Q, and H, which determine how much damage a code can sustain and still scan successfully. Level L tolerates up to 7% damage; Level H tolerates up to 30%, but requires a larger code to store the same amount of data.

| Level | Recovery rate | Best for | Trade-off |
|---|---|---|---|
| L | 7% | Clean digital displays, indoor screens | Maximum data capacity |
| M ← default | 15% | General print: flyers, receipts, business cards | Balanced |
| Q | 25% | Outdoor signage, product packaging | Moderate capacity reduction |
| H | 30% | Industrial labels, logo-overlaid codes | Largest code for same data |
Uniqode's State of QR Codes 2026 report found that 36% of consumers have encountered QR Codes that failed to scan. Using Level L on surfaces prone to wear or damage is a significant contributor to that failure rate. For any code printed on physical material, use at least Level M.
Static vs. dynamic QR Codes
A static QR Code embeds the destination URL directly in the code. A dynamic QR Code uses a short redirect URL that you can update at any time, and that distinction determines whether you can change the destination after printing without replacing the physical code.
Static codes are permanent. Dynamic codes store a short redirect URL (for example, uqr.me/abc123) that you update through a dashboard whenever needed. They also track scan data like total scans, scan times, device types, and locations.
The real cost of getting this wrong is straightforward: a restaurant that prints 5,000 table cards with a static QR Code and later switches ordering providers ends up with 5,000 cards pointing to an inactive link. The only fix is a full reprint. According to Uniqode's State of QR Codes 2026 report, 76% of marketers already use dynamic QR Codes and dynamic codes held 64.35% market share in 2025, growing at 18.85% CAGR through 2031 (Mordor Intelligence).
Dynamic QR Code platforms provide scan analytics, editable destinations, and Smart Rules for conditional routing by time, location, or device. One important caveat: if your subscription lapses, every code using that service deactivates. Confirm the platform's policies before you commit.
QR Code types and popular use cases
QR Codes store over 30 types of content like website URLs, Wi-Fi credentials, digital business cards, restaurant menus, and more. The content type determines exactly what happens the moment someone scans the code.
1. Website QR Code
The most common type routes the scanner to any URL. Dynamic website QR Codes allow the destination to be updated without reprinting.
2. Restaurant and menu QR Code
A restaurant QR Code gives customers instant access to digital menus, ordering pages, or reservation systems. According to Uniqode's State of QR Codes 2026 report, 58% of consumers scan QR Codes at restaurants, cafes, and bars making hospitality the top scanning environment in the survey.
Marriott Aruba put this into practice by implementing QR Codes for guest services across welcome cards, in-room menus, and amenity information, reaching 80,000 unique customers and saving $150,000 in printing costs.
3. Product packaging QR Code
Packaging QR Codes connect physical products to digital content such as ingredient sourcing, care instructions, authenticity verification, and more.
Maesa embedded QR Codes directly into product packaging, giving consumers a way to verify product legitimacy before purchase and cutting counterfeiting at scale. The initiative delivered $10 million in documented loss prevention.
4. vCard / digital business card QR Code
A vCard QR Code encodes contact information that downloads directly to the scanner's contacts app. No app download required. No manual entry.
5. Wi-Fi QR Code
Encodes network credentials so the scanner joins the network automatically. Common in hotel lobbies, conference venues, cafes, and coworking spaces.
6.App download QR Code
Detects the scanner's OS and redirects to the correct app store. One printed code handles both iOS and Android.
QR Code best practices
There are no hard and fast best practices for QR Codes. But it is highly recommended to follow the pointers below while using a QR Code for performance boosting and task accuracy.
1. Size and scanning distance
Print at a minimum of 2 cm x 2 cm for close-range scanning. Use the 10:1 rule for distance: divide scanning distance by 10 for the minimum code side length. Minimum module width: 0.75mm.
2. Contrast
Minimum 4:1 contrast ratio. Black on white is optimal. Light codes on dark backgrounds cause scanner failures. Color QR Codes require Level Q or H to compensate for reduced contrast.
3. Quiet zone
Minimum 4 modules of white space on all four sides, this is a structural requirement, not a design preference. Cropping the quiet zone creates scan failures.
4. Test before printing
Test on at least three devices (iPhone, Android, dedicated scanner) in the actual deployment environment's lighting conditions before committing to a large print run.
5. Use dynamic QR Codes for any printed material with a shelf life
A static code on product packaging is permanently broken the moment the destination URL changes, and every unit in distribution becomes a dead end.
6. Governance: track ownership
Organizations managing more than 20 QR Codes need a structured registry. Uniqode's State of QR Codes 2026 report found that 28% of marketers struggle with duplicate codes and 22% can't effectively retire obsolete ones. Uniqode's dashboard addresses both problems directly BY providing scan analytics and logging every code edit. If you're managing codes across multiple campaigns or locations, configure scan tracking before you deploy the first code, not after.
QR Code security and quishing risks
QR Code phishing also known as "quishing" happens when a malicious QR Code replaces a legitimate one and sends users to credential-harvesting or malware sites. The FBI formally warned about quishing in January 2022 following a surge of incidents involving parking meters, restaurant tables, and public signage.
The trust gap is real. Uniqode's State of QR Codes 2026 report found that 14% of consumers have encountered QR Code scams, and only 58% feel confident scanning QR Codes. Notably, 31% are more likely to scan a code that carries visible branding which means design isn't just aesthetics, it's a direct trust signal.
How to recognize a suspicious QR Code:
- The code is a sticker placed over an existing printed surface.
- The URL shown in your camera's preview does not match the expected brand or domain.
- The code appears in an unusual context with no clear organizational ownership.
For businesses, a custom-branded redirect domain such as qr.yourbrand.com makes the destination visible and clearly tied to your brand before the user taps through. Uniqode provides automated malware and phishing detection built into the platform, and ScanGuard adds automated scan anomaly detection, flagging unusual scan patterns that signal a code may have been swapped in the field.
Ready to deploy QR Codes that actually work?
A free static generator works for one-time events, personal QR Codes for wedding tables, or business cards with contact information that will never change.
For printed materials expected to last several months or more, use dynamic codes from a platform with proven reliability. The ability to update destinations without reprinting protects your investment in large-scale or high-volume print runs.
If you manage more than 20 QR Codes across assets, campaigns, or locations, choose a platform that provides analytics, governance tools, and clear policies for what happens to your codes if your subscription ends. The QR Code itself is the smallest part of the system, the redirect infrastructure, the scan analytics stack, and the governance layer behind it determine whether that code still works reliably six months from now.
Frequently Asked Questions
- What is a QR Code?
A QR Code (Quick Response code) is a two-dimensional matrix barcode that encodes data in a grid of black and white square modules. Unlike a traditional barcode, a QR Code stores data both horizontally and vertically, enabling up to 7,089 numeric characters or 4,296 alphanumeric characters in a single code. QR Codes follow the ISO/IEC 18004 international standard and are readable by any modern smartphone camera.
- How does a QR Code work?
A QR Code works in two stages: encoding and decoding. During encoding, data is converted into a binary sequence and arranged as black and white modules in the grid. During decoding, a scanner locates the finder patterns, reads the format information, applies Reed-Solomon error correction, and reverses the encoding process. The entire process takes under 100 milliseconds.
- How many versions of QR Codes are there?
There are 40 versions of QR Codes. Version 1 is the smallest (21x21 modules, 41 numeric characters). Version 40 is the largest (177x177 modules, 7,089 numeric characters). The version is selected automatically by the generator based on how much data needs to be encoded.
- What are the different types of QR Codes?
There are two distinct categories of QR Code types. Format types include Model 1, Model 2 (the current international standard), Micro QR, iQR, SQRC, and FrameQR. Content types include Website, vCard, Wi-Fi, PDF, Restaurant Menu, App Download, and 30+ others.
- What is the difference between a static and dynamic QR Code?
A static QR Code encodes the destination URL directly in the code. A dynamic QR Code encodes a short redirect URL pointing to an editable destination. Static codes cannot be updated after printing. Dynamic codes allow the destination to be changed from a dashboard without reprinting, and they record scan analytics.
- What are QR Code error correction levels?
QR Codes have four error correction levels: L (7% damage recovery), M (15%), Q (25%), and H (30%). Higher levels allow more damage while remaining scannable, but require a larger code for the same data payload. Level M is recommended for most print use cases; Level Q or H for outdoor signage, packaging, or codes with logo overlays.
- Are QR Codes safe to scan?
Most QR Codes are safe to scan. The primary risk is quishing (QR Code phishing), where a malicious code replaces a legitimate one. Check the URL shown in your camera's preview before tapping. Be cautious of QR Codes on stickers placed over existing signage in public spaces.
About the Author
Ektha is a QR code expert with years of research and analysis into the evolution of QR codes. Having written over 70 in-depth articles on QR technology, she has developed a comprehensive understanding of how QR codes are transforming industries. Her insights, including The State of QR Report, have been featured in leading publications. With a passion for simplifying complex topics and providing actionable strategies, Ektha helps businesses leverage QR codes to enhance their 'phygital' connections.



![How to Make a QR Code on iPhone [Without an App]](https://cdn.sanity.io/images/0aocp9sp/production/a35a341de6fa5b80584622734c37856a8050e2f6-1920x1080.jpg?w=3840&q=65&auto=format&fit=max)

