How QR Codes Work and How to Read Them
QR codes (Quick Response codes) are two-dimensional barcodes invented in 1994 by Denso Wave, a subsidiary of Toyota, to track automotive parts during manufacturing. Unlike traditional one-dimensional barcodes that store data in horizontal lines, QR codes encode information in a grid of black and white squares — allowing them to hold significantly more data. A single QR code can store up to 4,296 alphanumeric characters or 7,089 numeric digits, far exceeding the capacity of a standard barcode.
What Can QR Codes Contain?
- URLs — The most common use. Scanning opens a website link in your browser.
- Plain text — Notes, serial numbers, or any arbitrary string.
- Contact cards (vCard) — Name, phone number, email, and address bundled together.
- Wi-Fi credentials — SSID, password, and encryption type for one-tap connection on mobile devices.
- Email and SMS — Pre-filled recipient, subject, and body for quick messaging.
- Cryptocurrency addresses — Wallet address and optional amount for payment requests.
How This Reader Works
This tool uses jsQR, an open-source JavaScript QR code decoding library that runs entirely in your browser. When you upload an image, the tool draws it onto an HTML5 canvas, extracts the raw pixel data, and passes it to jsQR for analysis. For camera mode, each video frame is captured and scanned in a continuous loop using requestAnimationFrame until a QR code is detected.
Privacy and Security
Because all processing happens locally in your browser, your images and camera feed are never uploaded to any server. This makes the tool safe for scanning QR codes that contain sensitive information like Wi-Fi passwords or private URLs. No data is logged, stored, or transmitted.
Tips for Best Results
- Good lighting — Ensure the QR code is well-lit and not obscured by glare or shadows.
- Flat surface — A wrinkled or curved QR code may distort the grid and prevent decoding.
- Sufficient contrast — The code should have clear black-on-white (or dark-on-light) contrast.
- Resolution — For image uploads, a minimum of 200×200 pixels is recommended.
Frequently Asked Questions
What if the camera cannot be accessed?
Camera access requires a secure context (HTTPS) and user permission. If you see an error, check that your browser has camera permissions enabled for this site, or try the image upload mode instead.
Can this read barcodes?
This tool is specifically designed for QR codes (2D square codes). It does not decode traditional 1D barcodes like UPC or EAN. If you need barcode scanning, look for a dedicated barcode reader.