QR codes (Quick Response codes) are two-dimensional matrix barcodes invented in 1994 by Denso Wave, a subsidiary of Toyota, for tracking automotive parts during manufacturing. Unlike one-dimensional barcodes that encode data horizontally in varying-width stripes, QR codes encode information in both the horizontal and vertical dimensions using a grid of black and white squares called modules. A single QR code can store up to 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes of binary data โ orders of magnitude more than a traditional UPC barcode.
Every QR code contains several fixed structural elements. Three finder patterns (the large square-in-square targets in three corners) tell the scanner where the code is, its orientation, and its perspective distortion. Timing patterns (alternating black and white modules between finder patterns) help determine the module size. Alignment patterns (smaller square-in-square markers) help correct distortion on larger codes, appearing from version 2 onward. The quiet zone โ a 4-module-wide white border โ is required around all four sides to separate the code from surrounding graphics.
QR codes come in 40 standard versions. Version 1 is a 21ร21 module grid, and each subsequent version adds 4 modules per side; version 40 is 177ร177. The version required depends on the amount of data and the error correction level chosen. When data is encoded, it first passes through a mode indicator that signals the content type (numeric, alphanumeric, byte, or kanji). Each mode uses optimized encoding to maximize data density. Before the modules are placed on the grid, one of eight predefined mask patterns is applied to the data region โ the encoder tests all eight and selects the one that minimizes penalty scores based on runs of identical modules, block size, and finder pattern similarity.
QR codes employ Reed-Solomon error correction, a mathematical technique that adds redundant data so the original information can be reconstructed even when portions of the code are damaged, obscured, or partially missing. This is why QR codes with logos or artwork embedded in the center still scan correctly โ the error correction fills in the missing data. This mechanism is what also allows curved surfaces, angled scanning, or partial obstruction to still result in successful reads.
| Level | Recovery | Best For |
|---|---|---|
| L (Low) | ~7% | Maximum data capacity. Use for clean, flat surfaces. |
| M (Medium) | ~15% | Good balance. The most common level for general use. |
| Q (Quartile) | ~25% | Higher durability. Suitable for outdoor signage. |
| H (High) | ~30% | Maximum resilience. Ideal when adding logos or for industrial use. |
Level M (15% recovery) is the industry standard for most applications and offers the best balance between data density and damage resistance. Level H (30%) should be used when you plan to overlay a logo or when the code will be exposed to harsh environments. The tradeoff is straightforward: higher error correction reduces the amount of data you can encode at a given version.
A static QR code encodes the target information directly into the module pattern. If you encode a URL like https://example.com, scanning the code will always navigate to that URL, and the code itself never changes. Static codes have no moving parts โ once generated, the pattern is fixed permanently.
A dynamic QR code, by contrast, stores a short URL that points to a redirection service. When scanned, the user is first sent to that service and then redirected to the final destination. Because the redirection target can be changed at any time without regenerating the QR code image itself, dynamic codes are preferred for campaigns, printed marketing materials, and long-term deployments where the linked content might change. Dynamic codes also typically include scan analytics. The tradeoff is that they depend on the redirection service remaining operational.
PNG (Portable Network Graphics) is a raster format: the QR code is stored as a fixed grid of pixels at a specific resolution. PNG is universally supported by every modern device and application, making it the format of choice for web use, email, presentation slides, and quick sharing. The limitation is that scaling a PNG up will cause pixelation, and scaling it down can blur module edges, potentially reducing scannability.
SVG (Scalable Vector Graphics) is a vector format: the QR code is defined mathematically as shapes, not pixels. This means it can be scaled to any size โ from a business card to a billboard โ with zero quality loss. SVG files are inherently resolution-independent, which makes them the preferred format for professional printing, graphic design workflows, and any scenario where the QR code will be resized or incorporated into a larger design composition.
The minimum scannable print size depends primarily on scanning distance, the QR code version, and the module size. For close-range smartphone scanning at roughly 25 cm (10 inches), each module should measure at least 0.4 mm, yielding a minimum size of about 10ร10 mm for a version 1 code. For longer distances โ such as a poster or billboard โ modules need to be larger.
A practical rule of thumb: the scanning distance in meters multiplied by 1.5 gives the minimum QR code side length in centimeters. For example, scanning from 2 meters requires the code to be at least 3 cm on each side. In all cases, ensure a quiet zone of at least 4 module widths on all sides and test with multiple devices on the actual print material before finalizing a production run. Glossy paper, direct sunlight, and curved surfaces all reduce scannability and may warrant using a higher error correction level.
During the COVID-19 pandemic, QR code menus became ubiquitous. A restaurant prints a QR code on a table tent; customers scan it to view the menu on their phone. This system reduces printing costs, enables real-time menu updates without reprinting, and supports multilingual menus by detecting the phone's language settings. Key considerations: use error correction level M or Q to account for wear, choose a module size large enough for comfortable seating distance, and ensure the linked page is mobile-optimized.
QR codes can encode WiFi credentials using the standardized format WIFI:T:WPA;S:NetworkName;P:Password;;. When scanned, most modern smartphones (iOS 11+ and Android 10+) automatically prompt the user to join the network. Security note: the WiFi password is embedded in the QR code in plain text; anyone who can see the code can extract it.
Adding a QR code to a business card bridges physical and digital worlds. A vCard-format QR code, when scanned, prompts the phone to create a new contact with name, company, phone, email, and website pre-populated. A URL-based QR code can link to a LinkedIn profile, portfolio, or personal website. Print at minimum 15ร15 mm with proper quiet zone and dark-on-light contrast for reliable scanning on card stock.
Use our free QR Code Generator to create QR codes for URLs, text, WiFi, email, and phone. Download as PNG or SVG. No signup required โ try it now.
Open QR Code Generator