How to use the QR Code Scanner
- 1Click Start camera and allow access, or upload an image or screenshot.
- 2Point the camera at the QR code and hold steady.
- 3Read the decoded text and any safety warning.
- 4Copy the result, or open the link only if you trust it.
What is a QR code scanner?
A QR code scanner reads the information stored inside a QR code. This online QR code scanner works two ways: point your device's camera at a code, or upload a photo or screenshot that contains one. It shows exactly what the code contains, lets you copy it, and warns you about suspicious links before you open anything. Scanning happens in your browser with the open-source jsQR library (Apache-2.0), so camera frames and images never leave your device.
The upload option is especially useful on a laptop, or when someone sends you a QR code in a chat and you cannot point your phone at your own screen.
How does QR scanning work?
- Capture: the camera stream (requested with your permission through the browser's getUserMedia API) or your uploaded image is drawn onto a hidden canvas, scaled to at most 1,000 pixels on its longest side for speed.
- Find: jsQR converts the frame to black and white and searches for the three large "finder" squares in the code's corners.
- Read: it works out the grid size, samples every module (square), and corrects damaged parts using the code's built-in error correction.
- Repeat: with the camera, this runs on every animation frame (up to about 60 times a second) until a code is found. The camera then stops automatically.
The scanner also tries the inverted image, so light-on-dark codes can be read too.
Why does the scanner warn about links?
Fake QR codes stuck over real ones on parking meters, posters and restaurant tables are a known way to send people to phishing pages. Consumer protection agencies such as the US Federal Trade Commission advise checking a QR code's link before opening it.
This tool never opens a link automatically. It shows the full address first, and asks you to confirm. It also flags these warning signs:
| Warning | Why it matters |
|---|---|
Link starts with http:// | The connection is not encrypted |
Raw IP address, such as https://192.0.2.10/login | Legitimate businesses almost always use a domain name |
Domain contains xn-- (punycode) | Can hide look-alike letters, such as a Cyrillic "а" in place of "a" |
An @ sign before the domain | https://bank.com@evil.example actually goes to evil.example |
No warning does not mean a link is safe. It means none of these simple signs were found.
Worked example
A friend shares a screenshot of a Wi-Fi QR code on WhatsApp.
- Save the screenshot, then click Scan from an image and choose it.
- The tool shows: Decoded wifi:
WIFI:T:WPA;S:HomeNet;P:green-tea-42;; - You can read the network name (
S:) and password (P:) and copy them, without needing a second phone.
Another example: a poster's code decodes to http://203.0.113.7/pay. The scanner warns that the link is not encrypted and uses a raw IP address. That is a good reason not to enter payment details.
Tips for better scans
- Light matters most. Avoid glare on glossy paper and screens.
- Fill the frame: move closer until the code covers about half the camera view, then hold still.
- Screenshots scan better than photos of screens, which can show moiré patterns.
- Check the camera works with the Webcam Test if the preview stays black.
- Want to make your own code? Use the QR Code Generator. To read an encoded link more clearly, decode it with the URL Encoder/Decoder.
Limitations
- QR codes only. Barcodes (EAN, UPC, Code 128), Data Matrix and Aztec codes are not supported.
- Tiny or very dense codes in low-resolution images may not be readable.
- Camera access needs HTTPS and permission. On some phones the browser can only use the front camera.
- One code at a time. If an image has several codes, only one is read.
- The safety check is basic. It cannot detect every phishing site. When in doubt, type the website address yourself.
Key terms
- Finder pattern: the three big squares that help scanners locate a QR code.
- Phishing: a fake website made to steal passwords or payment details.
- Punycode: the way domain names with non-English letters are written, starting with
xn--.
Frequently asked questions
Is the camera video sent anywhere?
No. Frames are analysed in your browser and discarded. The camera stops when you press Stop or leave the page.
Why does the scanner warn me about a link?
Fake QR stickers are used to send people to phishing sites. The tool flags unencrypted links, raw IP addresses and look-alike domain names, and always shows the full address before opening.
It cannot read my code. What can I try?
Use better light, move closer so the code fills the frame, avoid glare, or take a screenshot and upload it.
Can it scan barcodes?
No. It reads QR codes only, not product barcodes such as EAN or UPC.
Last updated: . Written and tested by Abdul Moid Khan, ATechCraft. Read how we build and test tools.