What Is a QR Code and How Does It Work? A Plain-English Guide
A QR code (“Quick Response” code) is a two-dimensional barcode that stores data — most often a website link — in a grid of black and white squares. Point a phone camera at one and you’re taken to the content in about a second. Here’s how those squares actually work, and how to make your own.
How a QR code stores data
A QR code is a grid of modules (the small squares), each representing a binary 0 or 1. The layout has several functional zones:
- Three large corner squares (finder patterns) tell the scanner where the code is and which way is up — that’s why you can scan a QR code at any angle.
- A smaller fourth square (alignment pattern) helps correct for perspective distortion when scanning at an angle.
- Timing lines between the corners define the grid coordinates.
- Everything else is data — encoded, interleaved and protected by error correction.
The more data you store, the denser the grid: QR codes range from 21×21 modules (a short URL) up to 177×177 (about 3 KB of data, or ~4,200 characters).
Why damaged QR codes still scan
QR codes use Reed–Solomon error correction, the same math that let scratched CDs keep playing. Depending on the level chosen when the code is generated, up to 30% of the code can be damaged, covered or missing and it still scans perfectly. This is also why you can place a logo in the middle of a QR code without breaking it.
What can a QR code contain?
Anything text-based:
- URLs — by far the most common use
- Wi-Fi credentials — scanning joins the network automatically, no password typing
- Contact cards (vCard) — add a person to contacts in one scan
- Plain text, email addresses, phone numbers, SMS templates
- Payment details — the backbone of QR payments across Asia
You can create any of these for free with our QR Code Generator — enter your content, download the image, and print or embed it anywhere.
Static vs. dynamic QR codes
- A static code encodes the destination directly. It never expires and needs no service to keep working — but the destination can’t be changed after printing.
- A dynamic code points to a short redirect URL whose destination you can change later. Convenient, but the code dies if the redirect service does.
For anything printed permanently (packaging, signage, business cards), static codes with a URL you control are the safest choice.
Tips for QR codes that actually get scanned
- Size: minimum 2×2 cm for close-range scanning; roughly 1 cm of size per 10 cm of scanning distance for posters.
- Contrast: dark modules on a light background. Inverted codes fail on many scanners.
- Quiet zone: leave a white border around the code — at least 4 modules wide.
- Test before printing. Scan it with both an iPhone and an Android from a realistic distance.
- Give a reason to scan. “Scan for the menu” outperforms a naked code every time.
Frequently asked questions
Are QR codes safe to scan? The scan itself is harmless, but the link can lead anywhere — treat unknown QR codes like unknown links. Modern phones show you the URL before opening it.
Do QR codes expire? Static codes never expire. Dynamic ones last as long as the redirect service behind them.
Can I make a QR code for free? Yes — the QR Code Generator creates unlimited static codes free, no sign-up. Need traditional product barcodes instead? Use the Barcode Generator.