How QR Codes Work
The fascinating technology behind those black and white squares
You scan them every day — at restaurants, on products, in ads. But have you ever wondered how QR codes actually work? Let's break down the technology in simple terms.
What is a QR Code?
QR stands for Quick Response. It's a type of 2D barcode invented in 1994 by a Japanese company called Denso Wave. Unlike traditional barcodes that only hold data horizontally, QR codes store information both horizontally and vertically — allowing them to hold much more data.
A single QR code can store up to 3,000 characters of text, compared to just 20-25 characters in a traditional barcode.
Anatomy of a QR Code
Every QR code has these key components:
How Scanning Works
- 1Image Capture: Your phone's camera takes a picture of the QR code
- 2Pattern Detection: Software finds the three finder patterns to locate and orient the code
- 3Grid Mapping: The scanner creates a grid over the image, identifying each black/white module
- 4Data Extraction: Black modules = 1, white modules = 0 — creating binary data
- 5Error Correction: The scanner uses Reed-Solomon error correction to fix any damaged parts
- 6Decoding: Binary data is converted to readable text, URLs, or other formats
Error Correction: Why Damaged QR Codes Still Work
QR codes have built-in redundancy. Even if part of the code is damaged, scratched, or covered, it can still be read. There are four error correction levels:
- L (Low): ~7% of code can be restored
- M (Medium): ~15% can be restored
- Q (Quartile): ~25% can be restored
- H (High): ~30% can be restored — this is why you can put logos in the center!
What Can QR Codes Store?
- Website URLs
- Plain text
- Contact information (vCard)
- WiFi network credentials
- Phone numbers
- Email addresses
- GPS coordinates
- Calendar events
- App store links
Static vs Dynamic QR Codes
Static QR Codes
The data is encoded directly in the pattern. Once created, it cannot be changed. Free to create, works forever.
Dynamic QR Codes
The code points to a redirect URL. You can change the destination anytime, track scans, and gather analytics. Requires a paid service.
Why QR Codes Became So Popular
- Contactless: COVID-19 accelerated adoption for touchless menus and payments
- Smartphone cameras: No app needed — built into iOS and Android since 2017
- Free to create: Anyone can generate QR codes instantly
- Versatile: Works for URLs, text, WiFi, contacts, and more
- Reliable: Error correction means they work even when partially damaged
Fun Facts
- The largest QR code ever made was 2.1 km² (created in a Chinese wheat field)
- QR codes were originally invented to track car parts in manufacturing
- The patent for QR codes is owned by Denso Wave, but they don't exercise it — keeping the technology free
- A QR code must have a minimum "quiet zone" of 4 modules around it to scan properly
Create Your Own QR Code
Now that you know how they work, create your own QR code for free — no signup required.
Create QR Code →