A Brief History of the QR Code
A QR code (short for Quick Response code) is a two-dimensional barcode designed to be read quickly by a scanner. Denso Wave engineer Masahiro Hara and colleagues developed it in 1994 to track automotive parts more efficiently than the linear barcodes used in factories.
Traditional 1D barcodes can only hold around 20 characters. Denso Wave needed something that could store part numbers, descriptions, and manufacturing data in a small space. The solution was a 2D matrix that could encode hundreds of characters in a square about the size of a postage stamp.
For years, QR codes stayed in industrial settings. The consumer breakthrough came around 2010 when smartphones became common enough to scan them - and truly exploded during the COVID-19 pandemic when contactless menus replaced paper ones almost overnight.
How QR Codes Actually Encode Data
A QR code is a grid of black and white squares called modules. Each module represents a binary digit: black is 1, white is 0. The pattern of modules encodes data using a specific algorithm defined by the ISO/IEC 18004 standard.
The Key Components of a QR Code
- Finder patterns: The three large squares in the corners help scanners quickly locate and orient the code, even if it's tilted or photographed at an angle
- Alignment patterns: Smaller squares that help correct for distortion on curved surfaces
- Timing patterns: Alternating black and white stripes that help the scanner determine the size of each module
- Format information: Specifies the error correction level and mask pattern used
- Data modules: The actual encoded information, read in a zigzag pattern from bottom-right to top-left
Error Correction: Why a Damaged QR Code Still Works
One of the most impressive features of QR codes is their built-in error correction. QR codes use Reed-Solomon error correction - the same algorithm used in CDs and DVDs - which allows them to be read even when damaged or partially obscured.
There are four levels of error correction:
- Level L: Can recover 7% of damaged data - smallest file size
- Level M: Can recover 15% of damaged data
- Level Q: Can recover 25% of damaged data
- Level H: Can recover 30% of damaged data - largest, used when codes may be partially covered by logos
This is why companies can place their logo in the center of a QR code - the logo covers some modules, but the error correction algorithm recovers the lost data.
What Data Can a QR Code Hold?
QR codes can store up to 4,296 alphanumeric characters depending on the version (size) and error correction level. In practice, most QR codes hold much less to stay scannable at small sizes.
Common types of data encoded in QR codes:
- URLs: The most common use - pointing a phone to a website
- Plain text: A message, instructions, or information
- WiFi credentials: Network name and password so phones connect automatically
- Contact cards (vCard): Name, phone, email, and address
- Calendar events: Title, time, location for automatic calendar entry
- Geographic coordinates: Latitude and longitude for maps
- Email or SMS: Pre-composed messages ready to send
- Cryptocurrency addresses: Wallet addresses for payments
Static vs Dynamic QR Codes
This distinction is crucial if you're creating QR codes for business use.
| Feature |
Static QR Code |
Dynamic QR Code |
| Data storage |
Data encoded directly in the image |
Encoded URL redirects to destination |
| Editable after creation |
❌ No - you must reprint |
✅ Yes - change destination anytime |
| Scan analytics |
❌ No tracking |
✅ Time, location, device data |
| Cost |
Free |
Usually requires paid subscription |
| Requires internet to function |
❌ Only if content needs it |
✅ Always (redirect happens online) |
| Best for |
WiFi passwords, personal use, one-off links |
Marketing campaigns, printed materials, menus |
💡 Tip: Choose a static code when the encoded information should remain fixed, such as a WiFi network name. A dynamic code can be useful when a printed link may need to change, but it depends on the redirect service continuing to operate and may involve tracking or a subscription.
Real-World Uses of QR Codes
Restaurants and Hospitality
Digital menus became standard during the pandemic and have largely stayed. QR codes on table tents point customers to menus, ordering systems, and review pages. The economics are compelling: no reprinting costs when prices change, always up-to-date.
Contactless Payments
In much of Asia and increasingly in Western markets, QR codes are the primary payment method. Apps like WeChat Pay, Alipay, PhonePe, and even PayPal use QR codes that merchants display for customers to scan - or vice versa.
Marketing and Print Media
Billboards, magazine ads, and product packaging use QR codes to bridge the print-to-digital gap. A shampoo bottle might link to a tutorial video; a magazine ad might link to a special offer page.
Healthcare
Hospitals use QR codes on patient wristbands to pull up medical records and medication histories. Vaccine certificates, prescription bottles, and lab results commonly use QR codes. The WHO's SMART Health Cards standard uses QR codes for verifiable digital health credentials.
Transit and Boarding Passes
Airlines, trains, and buses worldwide use QR codes on mobile boarding passes. The code encodes a flight or trip reference that gate scanners look up in real time.
QR Code Security Risks: QRishing
Because QR codes are opaque to the human eye - you can't tell what URL is inside without scanning - they've become a popular vehicle for phishing attacks, sometimes called QRishing.
Common QR scam scenarios:
- Stickers placed over legitimate QR codes in parking lots, restaurants, or stores, redirecting to malicious payment pages
- Fraudulent QR codes sent in emails claiming to be from banks or delivery services
- QR codes in public places linking to sites that install malware or steal credentials
⚠️ Warning: Before tapping "Go" after scanning a QR code, check the URL your phone displays. Legitimate business URLs look clean (e.g., restaurant.com/menu). Be suspicious of long URLs with random characters, URL shorteners (bit.ly), or URLs that don't match the brand you expect.
Scanning Safety Tips
- Use your phone's built-in camera scanner - it shows the URL before you open it
- Never scan QR codes in unsolicited emails or text messages
- Check if a physical QR code sticker has been placed over an original
- If a QR code asks you to download an app, go to the official app store instead
- Never enter payment information on a site reached via a QR code in a public place unless you initiated the transaction
How to Create a QR Code
Creating a QR code takes about 30 seconds. You can generate one for free using the Kinsad QR Code Generator - no account required. Just enter the URL, text, WiFi details, or contact information, choose your size and error correction level, and download the image.
For best results:
- Use at least 300×300 pixels for digital use; 1000×1000 or higher for print
- Maintain strong contrast - black on white is most reliable, though dark colors on light backgrounds work well
- Test your QR code on multiple devices before printing or publishing
- Keep a border (quiet zone) of at least 4 modules around the code - scanners need it
Frequently Asked Questions
Q: Do QR codes expire?
Static QR codes never expire - the data is encoded directly in the image. Dynamic QR codes can expire if the subscription service that manages the redirect lapses. Always check what happens to your dynamic codes if you stop paying for a service.
Q: Can a QR code contain a virus?
The QR code itself is just data - it can't contain a virus. However, scanning a QR code can direct you to a malicious website that attempts to install malware through browser vulnerabilities, or a phishing page designed to steal your credentials. The risk is in where the code points, not the code itself.
Q: Why do some QR codes have logos in the middle?
QR codes use error correction algorithms (Reed-Solomon) that allow them to be read even when up to 30% of the data is damaged or obscured. Placing a logo in the center takes advantage of this - the logo covers some modules, but the error correction algorithm recovers the lost data.
Q: Can I make a colored QR code?
Yes, but contrast is critical. The scanner needs sufficient contrast between the dark and light modules. Dark-colored modules on a white or very light background work well. Avoid light-colored modules on dark backgrounds - this reversal often confuses scanners. Always test thoroughly before printing.
Q: What's the difference between a QR code and a barcode?
A traditional barcode (1D) is a series of vertical lines that encodes data in one dimension, holding up to about 80 characters. A QR code (2D) encodes data in both horizontal and vertical directions, storing up to 4,296 characters. QR codes are also much more resilient to damage and can be scanned from any angle.
Q: Do I need a special app to scan QR codes?
No. Since iOS 11 (2017) and most Android phones running Android 8+ (2017), the built-in camera app can scan QR codes directly. Just open the camera, point it at the code, and a notification will appear with the link or data. Third-party scanner apps are no longer necessary for most users.
Q: How small can a QR code be and still be scannable?
As a general rule, a QR code should be at least 2×2 cm (about 0.8 inches) for phone scanning at arm's length, and larger for more complex codes or codes meant to be scanned from a distance. For outdoor signage or large format printing, scale the code up proportionally to the scanning distance.
Create a QR Code Free on Kinsad
Generate QR codes for URLs, WiFi networks, contact cards, plain text, and more. No account needed - create, customize, and download in seconds.
Use the QR Code Generator →