How reading a QR code from an image works
A QR code hides information inside a pattern of black and white squares, and a reader's job is to reverse that process: locate the code within an image, read the module grid, and reconstruct the original text or URL. This tool does exactly that from a still image you provide. Instead of pointing a live camera at a code, you upload a photo, screenshot, or saved image that already contains a QR code, and the decoder extracts the data locally in your browser.
The decoding is handled by jsQR, a lightweight JavaScript library that scans the raw pixel data of your image. It searches for the three large square finder patterns in the corners of a QR code, uses them to determine the code's position, size, and orientation, then samples the grid of modules and applies error correction to recover the encoded message even if the image is slightly imperfect. Because it works on the pixels of a static image, it can read a QR code from a screenshot of a webpage, a photo of a poster, a scanned flyer, or an image someone sent you — situations where a live camera scan is not practical.
This approach is genuinely useful whenever the code and the scanner are not in the same place. You can decode a QR code that appears in an email or PDF without printing it, check where a suspicious code actually leads before visiting the link, recover a Wi-Fi password from a photo of a router label, or read a code from a picture on another screen. Everything is processed on your device, so the images and the data they contain are never uploaded to a server.
How to use QR Code Reader, step by step
- Drop a screenshot or photo containing a QR code onto Drop an image. Scanning starts immediately.
- Wait for Decoded content to appear with the text inside the code. A large phone photo can take a few seconds.
- If the content is a web address, read it before pressing Open link. Check the domain carefully; a lookalike spelling is a common phishing trick.
- Press Copy text to copy the decoded content, for example a Wi-Fi password.
- If you see No QR code detected, crop the image tightly around the code with the crop tool and try the cropped file.
- Press New image to scan another file.
Real example: a QR code in a busy street photo
A clean 512px QR code PNG (a Wi-Fi string) decoded in 71 ms. We then pasted the same code into a 5074 × 3781 iPhone 15 photo of a building. At 120 pixels wide it decoded in 2.6 seconds. At 600 pixels wide in the same spot, the full-frame scan missed it, and the tool found it on its second pass over nine overlapping crops: decoded in 4.9 seconds. The same photo shrunk to 1600 pixels wide decoded in 0.66 seconds.
Cropping an 800 × 800 square around the larger code is still much faster: decoded in 74 ms. A photo with no code took 6.5 seconds, full-frame scan and nine crops included, before the tool reported No QR code detected.
| Image | Result | Time |
|---|---|---|
| Clean 512px QR PNG | Decoded | 71 ms |
| 5074 × 3781 photo, 120px code | Decoded | 2.6 s |
| Same photo, 600px code | Decoded (on the crop pass) | 4.9 s |
| 800 × 800 crop around the 600px code | Decoded | 74 ms |
Last updated
QR Code Reader compared with other ways to do it
Your phone camera
The camera app on iPhone and most Android phones reads QR codes live, which is the easiest way when the code is in front of you. This tool is for codes you already have as a file: a screenshot, an email attachment, a photo on your computer, or a code on the same phone screen you would need to scan.
Desktop software
Some desktop scanning apps can return every code in an image at once, which helps with sheets of labels. This reader returns the first code it finds and, in our tests, worked best when the code filled a good part of the frame.
Upload-based QR readers
Online readers that decode on a server need the image uploaded, and a QR code often holds a Wi-Fi password, a payment link or a login token. Here decoding happens in your browser, so the content is shown only to you, and the link opens only if you choose to.
Getting a clean read and staying safe
For the most reliable decode, use an image where the QR code is clearly visible, in focus, and not too small — the three corner finder patterns need to be distinguishable from the background. A straight-on angle works best; extreme perspective distortion, motion blur, heavy glare, or a code that is partly cut off at the edge of the frame can prevent a successful read. If a decode fails, try cropping the image tighter around the code or using a higher-resolution version, which gives the decoder more pixels to work with.
Once decoded, the tool simply shows you the raw text or URL that was embedded in the code. This is also a good security habit: many QR codes in the wild lead to websites, and seeing the exact address before you tap it lets you spot phishing links or shady redirects that you could not judge from the code image alone. Reading the destination first puts you in control rather than trusting an unknown code blindly.
Because the reader runs entirely in your browser with no signup and no upload, you can decode as many images as you like for free and without worrying about privacy. It pairs naturally with the QR Code Generator on Pixohub: use the generator to create codes for your links or Wi-Fi, and use this reader to verify that a code you made — or one you received — contains exactly what you expect before you rely on it.