How to Read a QR Code From a Photo or Screenshot — and Check It's Safe First
Your phone's camera can scan a QR code on a poster, a menu or a parcel. But what about a QR code that is already on your screen — a WiFi code in a group chat, a ticket in an email, a payment code in a PDF invoice, a
Your phone's camera can scan a QR code on a poster, a menu or a parcel. But what about a QR code that is already on your screen — a WiFi code in a group chat, a ticket in an email, a payment code in a PDF invoice, a
code on a slide during a video call?
You cannot point your camera at your own screen and expect a good result. The fix is simple: decode the image itself instead of scanning it with a camera. Here is how it works, what to watch out for, and how to do it without installing anything.
Why the camera cannot help here
A camera reads a QR code live, in its viewfinder. A saved photo or screenshot is not live — it is a file. Most camera apps will not read a code from your photo library at all, and aiming one phone's camera at another phone's screen usually gives you glare, a moiré pattern and a failed scan.
An image decoder works the other way round: you give it the picture, and it reads the black-and-white pattern directly from the file. It is faster, it works on any device, and it usually succeeds where a camera aimed at a glowing screen fails.
How to decode a QR code from an image in 3 steps
- Get the code into a picture. If it is already an image, save it. If it is on a web page, in a PDF or on your screen, take a screenshot — Windows + Shift + S on Windows, Cmd + Shift + 4 on a Mac, or the screenshot key on a Chromebook. You do not even need to save the file: most decoders let you paste a screenshot straight from your clipboard with Ctrl+V.
- Add the image to the decoder. Drop the photo onto the page, click to browse for it, or paste the screenshot. The decoded content appears instantly, with its type labelled — link, WiFi, contact, event and so on. A good decoder does not just dump raw code at you: a WiFi code shows the network name and password in labelled fields, a contact card shows the name, phone and email, and an event shows the date and time properly formatted.
- Check the safety warning before you open anything. This is the step most people skip, and it is the most important one. Read the next section before you tap "Open". The safety step most people skip A QR code hides its destination until you scan it — and scammers know it. Fake codes get stuck over real ones on parking meters and restaurant tables, and phishing codes arrive by email and text with an urgent story about a parcel or a locked account. This is called "quishing", and it works because people scan first and think later. Decoding a code from an image gives you a free safety advantage: you see where it leads before anything opens. Before you tap a decoded link,
check these four things:
Is it http or https? An unencrypted http link is a warning sign on its own.
Is it an IP address instead of a name? A link like http://192.168.1.50/login instead of a normal domain name is a classic phishing tell.
Does the domain look almost right?
Look-alike domains swap letters — paypa1.com instead of paypal.com, or a domain with a strange ending. If you were not expecting the code, do not open it.
Does the link hide a password inside it? A URL with a username and password baked in (`https://user:password@...) is not something a legitimate business sends you.
A good decoder flags all four of these for you before you open the link. But no tool can prove a website is trustworthy — the final check is always yours. If a code arrived unexpectedly and the link looks odd, delete it.
What kinds of QR codes can you read?
More than just website links. A decoder should handle all of these:
Website links — the most common kind, from menus to tickets.
WiFi networks — the network name and password, ready to copy instead of typing.
WhatsApp chats — a chat opens with the number and a ready message.
Contact cards (vCard) — name, phone and email from a business card or a badge.
Calendar events — the event name, date and time.
Email, SMS and phone numbers — pre-filled and ready to send or call.
Map locations and plain text — anything else a code can store.
Batch decoding: ten codes at once
If you are checking a whole set of codes — a shop owner testing printed flyers, a marketer auditing a campaign, or someone sorting a folder of ticket screenshots — decoding them one at a time is slow. A decoder that takes up to 10 images at once and lets you download all the results as one text file turns a tedious job into a minute's work. Test your own printed codes this way before you print a stack of them: a code that does not decode on screen will not scan on paper either.
When a code will not decode
Three things cause most failures:
The image is too blurry, dark or small. Use the sharpest copy you have, brighten it if you can, and crop tightly around the code.
The white margin is cropped off. A QR code needs a clear quiet zone around it — at least four modules wide on every side. If you cropped the border away, the decoder may not find the code at all.
There are several codes in one image. Most decoders read one code per image. Crop the picture so it contains a single code and try again.
A free tool that does all of this in your browser
You can do every step above with a free QR code decoder that runs entirely in your browser — no sign-up, no app to install, no watermark, and no limit on how many codes you decode. Add a photo, drop in up to 10 images at once, or paste a screenshot with Ctrl+V, and it shows the content in a friendly format with safety warnings for risky links.
Because the decoding happens on your own device, your images and the data inside the codes never leave your device — nothing is uploaded to a server. That matters when the code holds a WiFi password, a contact card or a private link.
FAQs
How do I scan a QR code from a screenshot on my own phone?
Take the screenshot, then open it in a decoder that accepts images — on a computer, paste it with Ctrl+V; on a phone, upload the screenshot from your gallery. Your camera app cannot scan a picture that is already on your screen.
Is it safe to decode a QR code from an image?
Decoding itself is safe — you are only reading what is stored in the code. The risk is in opening the link afterwards, so always read the decoded address and check the safety warning first.
What types of QR codes can this decoder read?
Website links, WiFi networks, WhatsApp chats, email, SMS, phone numbers, vCard contacts, map locations, calendar events and plain text.
Can I decode several QR codes at once?
Yes — add up to 10 images at once and download all the results as one text file.
Are my photos uploaded to a server?
No. Decoding happens entirely in your browser. Your images and the data inside the QR codes never leave your device.
Why will my image not decode?
The code is probably too blurry, dark, small or damaged, the white margin around it was cropped off, or the image contains more than one code. Try a sharper, brighter image or a closer crop of just the QR code.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.