Technology
Complete QR Code Guide: How They Work, Applications, and Security Tips
QR codes are everywhere — from payments to menus to boarding passes. Understand how they work, their real-world applications, and how to stay safe from QR code scams.
What Is a QR Code?
A QR Code (Quick Response Code) is a two-dimensional barcode that can store significantly more information than a traditional one-dimensional barcode.
History:
• Invented in 1994 by Masahiro Hara at Denso Wave (a Toyota subsidiary) for tracking automotive parts
• Originally designed to be read 10 times faster than existing barcodes
• Denso Wave released the technology without exercising their patent rights, allowing free use
• Adoption exploded with the rise of smartphones, which could scan QR codes using built-in cameras
QR Code vs Traditional Barcode:
• Barcode: Stores 20-25 characters, read horizontally only
• QR Code: Stores up to 7,089 numeric characters or 4,296 alphanumeric characters, read both horizontally and vertically
• QR codes can also store binary data (up to 2,953 bytes) and Kanji/Kana characters (up to 1,817)
Key feature — Error Correction:
QR codes have built-in error correction using Reed-Solomon codes, meaning they can still be read even if part of the code is damaged or obscured. This is why you can put a logo in the center of a QR code and it still works.
Error correction levels:
• L (Low): ~7% recoverable
• M (Medium): ~15% recoverable
• Q (Quartile): ~25% recoverable
• H (High): ~30% recoverable
Higher error correction means more data redundancy, so the QR code becomes larger (more modules) for the same content.
QR Code Structure and Principles
A QR code is composed of several functional areas:
1. Finder Patterns: The three large squares in the corners (top-left, top-right, bottom-left). These allow scanners to quickly locate and orient the QR code regardless of rotation angle. The ratio of black-white-black in these patterns (1:1:3:1:1) is unique and easily detectable.
2. Alignment Patterns: Smaller squares that appear in larger QR codes (Version 2+) to help correct distortion when scanning from an angle or on curved surfaces.
3. Timing Patterns: Alternating black and white modules between the finder patterns. They help the scanner determine module size and coordinate positions.
4. Format Information: Stored near the finder patterns, contains error correction level and mask pattern used.
5. Version Information: For Version 7+, encodes which version the QR code is.
6. Data and Error Correction: The actual encoded data plus error correction codewords.
QR Code Versions:
• Version 1: 21×21 modules (smallest)
• Version 40: 177×177 modules (largest)
• Each version increase adds 4 modules per side
• More modules = more data capacity but needs higher resolution to print/display
Encoding modes:
• Numeric mode: 0-9 only — most efficient (3.3 bits per character)
• Alphanumeric mode: 0-9, A-Z, and nine symbols — 5.5 bits per character
• Byte mode: Any byte value (UTF-8 text) — 8 bits per character
• Kanji mode: Double-byte Kanji characters — 13 bits per character
The scanner automatically detects which mode is used and decodes accordingly.
Common Applications
QR codes have become ubiquitous in modern life:
1. Mobile Payments:
• In China, Alipay and WeChat Pay process billions of QR code payments daily
• Many countries use QR-based payment systems: PIX (Brazil), PayNow (Singapore), PromptPay (Thailand)
• Merchant QR codes are static (customer scans), while customer QR codes are dynamic (merchant scans)
2. Tickets and Boarding Passes:
• Airline boarding passes encode flight details, passenger info, and booking reference
• Concert and event tickets use unique QR codes to prevent counterfeiting
• Railway and bus systems increasingly use QR codes on mobile apps
3. WiFi Sharing:
• QR codes can encode WiFi credentials in the format: WIFI:T:WPA;S:NetworkName;P:Password;;
• Scanning automatically connects the device — no need to type long passwords
• Many routers now print a QR code on their label
4. Digital Business Cards (vCard):
• Encode contact information (name, phone, email, address) in a QR code
• Scanning adds the contact directly to the phone's address book
• Eliminates the need for paper business cards
5. Marketing and Advertising:
• Link to websites, landing pages, or promotional content
• Track scan analytics (location, time, device) with dynamic QR codes
• Restaurant menus went heavily QR-based during the COVID-19 pandemic
6. Authentication and 2FA:
• Time-based One-Time Password (TOTP) setup uses QR codes to share the secret key
• Apps like Google Authenticator scan a QR code to set up two-factor authentication
QR Code Security Risks
While QR codes are convenient, they also introduce security risks that users should be aware of:
1. Phishing via QR Code ("Quishing"):
• Attackers create QR codes that link to fake login pages designed to steal credentials
• These can be placed over legitimate QR codes (e.g., stickers on parking meters or restaurant tables)
• The FBI issued a warning in 2022 about QR code fraud targeting cryptocurrency wallets and banking apps
2. Malicious URL Redirection:
• A QR code might redirect to a website that downloads malware
• Short URLs in QR codes (like bit.ly links) obscure the actual destination
• Some QR codes trigger app store downloads for malicious apps
3. Payment Fraud:
• Scammers replace merchant payment QR codes with their own
• Money goes to the attacker's account instead of the legitimate business
• This has been a significant problem in markets that rely heavily on QR payments
How to protect yourself:
• Preview the URL before visiting — most phone cameras show the URL before opening it
• Check for tampering — look for stickers placed over original QR codes
• Don't scan QR codes from untrusted sources (flyers on the street, unsolicited emails)
• Use your phone's built-in camera app rather than third-party QR scanner apps (some are themselves malware)
• Verify the domain name carefully — attackers use lookalike domains (e.g., paypa1.com instead of paypal.com)
• For payments, confirm the recipient name before completing the transaction
• Keep your phone's OS and browser updated to benefit from the latest security protections
Using Gigi Tools QR Code Generator
Gigi Tools provides a free, privacy-focused QR Code Generator:
• Generate QR codes for URLs, text, WiFi credentials, and more
• Customize size and error correction level (L/M/Q/H)
• Higher error correction lets you add logos or design elements while keeping the code scannable
• Download generated QR codes as high-resolution images
• All generation happens in your browser — your data is never uploaded to any server
Tips for creating effective QR codes:
• Use the shortest URL possible — shorter data means a simpler, more easily scannable QR code
• Choose error correction level M or Q for printed materials (they may get damaged)
• Use level H if you want to embed a logo in the center
• Test your QR code on multiple devices before distributing
• Ensure sufficient contrast between the QR code and background (dark code on light background works best)
• Minimum recommended print size: 2cm × 2cm for close-range scanning, larger for posters or billboards
• Always provide a text alternative (URL or instructions) alongside the QR code for accessibility
Try the Gigi Tools QR Code Generator to create professional QR codes for your business, events, or personal use — quickly, freely, and privately.