Explore 57,769+ Free Online Tools — Everything in One Place

Complete Guide to QR Codes: How They Work and How to Use Them Well

Guides · Published 2026-10-25 · Updated 2026-11-15 · 8 min read · By Tool Magic Lab Editorial Team

Illustration of a QR code being scanned by a phone with its finder patterns and data modules highlighted

QR codes are on menus, packaging, tickets, payment stands and business cards — a rare technology that crossed from industry to everyday life almost unchanged. They are also regularly misused: printed too small, stretched out of shape, or stuffed with so much data they become unscannable art. This guide explains how QR codes actually work, which makes the usage rules obvious rather than arbitrary.

Anatomy of a QR code

A QR (Quick Response) code is a two-dimensional barcode: data lives in a grid of black and white modules. Three large squares in the corners (finder patterns) let a scanner locate and orient the code from any angle; a smaller alignment pattern keeps large codes readable when curved or skewed; timing patterns and format information tie it together. The data itself is encoded with Reed–Solomon error correction — the same mathematical family that let scratched CDs play — which is why a QR code can lose a chunk and still scan.

Capacity and versions

Codes come in 40 versions, from 21×21 modules (Version 1) to 177×177 (Version 40). Capacity depends on mode and error-correction level: at maximum, roughly 7,089 numeric characters, 4,296 alphanumeric characters, or 2,953 bytes of binary data. A URL — the overwhelmingly common use — needs only a small code, which is a practical argument for short URLs: less data means a simpler code, bigger modules and easier scanning. This is also why 'put the whole vCard with photo in the code' produces a dense, fragile mosaic while 'link to the vCard' produces a robust one.

Error correction: the four levels

Level L recovers about 7% of damaged data, M about 15%, Q about 25%, and H about 30%. Higher correction costs capacity (more modules spent on redundancy) but buys survival: codes on packaging, outdoors or under a logo overlay should use Q or H. The logo-in-the-middle trick works precisely because error correction rebuilds the covered data — but it only works if the logo stays modest (under roughly a fifth of the area) and the level is high. The QR Code Generator (/qr/qr-code-generator) exposes the level choice instead of hiding it, and generates in the browser so the encoded content — Wi-Fi passwords included — never transits a server.

The usage rules that prevent failure

What to encode — and what never to encode

Encode URLs (preferably short, HTTPS, on a domain you control so the destination can be maintained), Wi-Fi credentials for guest networks, payment references, and contact links. Never encode anything secret — a QR code is readable by anyone who can see it, forever, including in photographs. And treat scanning strangers' codes with the same caution as clicking strangers' links: the code is a link you cannot read first, so prefer contexts where you trust the publisher.

Frequently asked questions

**Do QR codes expire?** The code itself never does — it is printed data. The URL it points to can die, which is an argument for owning the domain and using redirectable short links you control.

**Can I put my logo in a QR code?** Yes, at error-correction level H and with a modest logo that does not touch the finder patterns. Test the printed result.

**Why does my code scan in the generator preview but not in print?** Usually the quiet zone was cropped, the print size shrank below the scanning distance rule, or glossy stock is reflecting the scanner's light.

Written by the Tool Magic Lab Editorial Team. Tool Magic Lab content is produced with AI assistance and editorially reviewed for accuracy — see our AI Usage Disclosure and Editorial Policy.

#qr codes#guide

Related articles