How to scan a QR code on any phone or computer
Scan a QR code with an iPhone, Android phone, laptop or screenshot. Exact steps for each, what happens after the scan, and a five-second safety check.
To scan a QR code, open your phone’s camera, point it at the code so the whole square is in view, and tap the link or banner that appears. You don’t need an app and you don’t need to take a photo. For a code that is on a screen or in a screenshot, you can’t point a camera at it, so use the image route further down. Scanning alone opens nothing: you tap to go on.
Most of the trouble people have comes from three things: a camera mode that doesn’t scan, a setting that was switched off, and a code that is printed too small or too dense to read. All three are fixable, and this guide covers each device in turn, then what to look at before you tap the result.
Pick the route that fits your situation
| You have | Fastest route | Where in this guide |
|---|---|---|
| A printed code and an iPhone | Camera app, or Scan Code in Control Center | iPhone |
| A printed code and an Android phone | Camera app, or the Scan QR code tile | Android |
| A code on your phone’s own screen | Screenshot, then scan the image | Screenshots |
| A code on a laptop screen | Phone camera pointed at the monitor | Laptops |
| A code that must be read by the laptop itself | Windows Camera app, or a browser scanner | Laptops |
| A code you don’t trust | Scan it with a tool that shows the address first | After the scan |
iPhone: Camera and Control Center
Apple’s own instructions are short. In Apple’s guide to scanning a QR code with your iPhone or iPad, the steps for the Camera app are to open Camera from the Home Screen, Lock Screen or Control Center (or with Camera Control on models that have it), hold the device so the code appears on screen, and tap the link to open the content.
Apple documents a second route, which is the better one when you scan a lot of codes or the Camera app keeps switching modes. It’s called Code Scanner, and it lives in Control Center:
- Open Control Center.
- If there is no Scan Code button (a QR code icon), touch and hold the background of the screen and tap Add a Control.
- In the Control Center gallery, tap Scan Code, then tap anywhere to go back.
- From then on, open Control Center, tap Scan Code, and hold the phone over the code.
Apple’s iOS 16 guide for the same task says the scanner lives under Settings > Control Center, where you tap the insert button next to Code Scanner, and that you can turn on the flashlight if the scene is dim. The button names have changed between iOS versions, so if what you see doesn’t match, look for the QR icon.
One more habit worth having: stay in Photo mode. Apple’s iOS 11 developer session, QR Code Recognition on iOS 11, said the camera detects codes in Photo and Square modes. On a current iPhone the safest assumption is the plain Photo mode, not Portrait, Cinematic or video.
If the Camera app shows nothing, some iOS versions have a Scan QR Codes switch under Settings > Camera. Apple’s current guide doesn’t list it, so treat that as something to check on your own phone rather than a certainty.
Android: Camera, Quick Settings and Lens
Android has three routes, and which one is quickest depends on your phone’s maker.
The Camera app. On a Pixel, Google’s Pixel help says to open Camera, go to Settings > More settings > Camera scan suggestions and make sure it’s on, point the camera at the code with the entire code on screen, and wait for the link or bubble. It also says you don’t need to take a picture. Google’s Camera help adds a limit that catches people out: you can’t scan a QR code in Portrait or Video mode. Stay in the default photo mode, or tap QR if your Camera app has a QR mode.
Quick Settings. The same Pixel page describes a tile: swipe down from the top of the screen, tap Scan QR code, and point the scanner at the code. If the tile isn’t there, swipe left for more buttons or tap the pencil icon to add it. Samsung’s support page for Galaxy phones describes the same tile, reached with a two-finger swipe down from the top of the screen.
Samsung’s Camera setting. On a Galaxy phone, Samsung says to open Camera with PHOTO selected at the bottom, frame the code, and if it won’t scan, tap the Settings icon in Camera and turn on the switch next to Scan QR codes. Samsung’s page gives no One UI version numbers, so go by what your own Camera settings show.
Google Lens. Google’s Pixel page says you can also use Google Lens to scan QR codes. In Chrome on Android, the Lens steps are to open a new tab, tap the Lens icon in the search bar, choose the camera option, put the QR code in the box and tap the link that pops up. Lens is also the route for a code that is already in a saved image, which the next section covers.
On version support, Google’s account help says you need Android 9 or higher to scan QR codes with the built-in camera. Older phones need a scanner app or the web scanner on this site.
A code on a screen or in a screenshot
You can’t scan a screen with the same screen. A code on your own phone, in a WhatsApp forward, a PDF or an email attachment, has to be read as an image. Two ways work on almost every phone:
- Open the image in the gallery app and look for the Lens button (Android) or tap the highlighted code (recent iPhones). The exact steps, and why they sometimes fail, are in scanning a QR code from a screenshot or photo.
- Open our free scanner, choose Image or screenshot, and pick the file or paste it with Ctrl V or ⌘ V. It reads the code on your device and shows you where a link goes before you open it.
If the code is on a friend’s phone, or a laptop monitor, just point your camera at it. Turn the brightness up on the screen showing the code and keep the phone steady.
A code on a laptop or PC
Windows has a built-in way for the laptop to read a code through its own webcam. Microsoft’s Camera app guide says to open the Camera app, make sure the Barcode button on the right-hand side is selected, and hold the code in front of the camera so it’s in focus. For a QR code, the link appears at the bottom of the Camera app, and you select it to open the site.
We found no Apple support page for scanning with a Mac’s webcam, and Chromebooks and Linux machines vary. In all three cases the web scanner works through the browser. The full walkthrough, including permissions and what to do when the webcam is poor, is in how to scan a QR code on a laptop.
What happens after the scan
A QR code holds text. What your phone does with that text depends on how the text begins. That same Apple session lists the formats the camera acts on, and the table below shows what each one looks like and how big the code gets. The version numbers are ours, measured with node scripts/qr-facts.mjs at error correction M.
| What the code holds | Starts with | What your phone offers | Example, measured |
|---|---|---|---|
| A web link | https:// |
Opens the site in the browser | https://example.com/menu: version 2, 25 by 25 modules |
| Wi-Fi details | WIFI: |
Offers to join the network | Network “Example Home”: version 3, 29 by 29 |
| A phone number | tel: |
Offers to call | tel:+919876543210: version 1, 21 by 21 |
| A text message | SMSTO: or sms: |
Opens a message to that number | SMSTO:919876543210:Hi: version 2, 25 by 25 |
| An email | mailto: |
Opens a draft in your mail app | mailto:hello@example.com: version 2, 25 by 25 |
| A location | geo: |
Opens a map pin | geo:12.9716,77.5946: version 2, 25 by 25 |
| A contact | BEGIN:VCARD |
Shows a card you can save | Name, phone and email: version 6, 41 by 41 |
| A UPI payment | upi://pay |
Opens a UPI app | One payee, no amount: version 4, 33 by 33 |
Look at the right-hand column and you can see where the risk sits. A text or email code opens a draft that you still have to send. A Wi-Fi code asks before it joins. A UPI code opens your payment app, where you confirm the payee and the amount. A link opens a website, and websites are where phishing lives. The scan itself is rarely the danger; the thing you tap afterwards is.
Apple’s page on scanning says the camera highlights the code and you tap the link that appears. Take that second tap seriously. The banner shows a web address, and on a small screen it can be cut off. Read the part before the first single slash, because that’s the real site.
For how scams use these codes, there are two spokes worth reading before you scan anything in public: QR code scams and how to spot one and is it safe to scan QR codes. If you pay with UPI, UPI QR code scams in India covers the “scan to receive money” trick that no scanner can detect for you.
Read the address like a browser does
A browser decides which site you’re visiting by one piece of the address: the host name, which is whatever sits between https:// and the next /, minus anything before an @. Scammers rely on you reading the address left to right and stopping at the first familiar word. We ran six made-up addresses through the same URL parser the scanner uses (the examples use reserved test domains, not real shops):
https://example.com.parking-pay.test/pay host: example.com.parking-pay.test
https://example.com@parking-pay.test/pay host: parking-pay.test
https://exarnple.com/login host: exarnple.com
https://xn--exmple-cua.com/login host: xn--exmple-cua.com
http://203.0.113.9/pay host: 203.0.113.9
https://bit.ly/3abcXYZ host: bit.ly
Read them from the right-hand end of the host. In the first line, the word example.com is only a prefix and the site is parking-pay.test. In the second, everything before the @ is decoration, and the real destination is again parking-pay.test. In the third, rn stands in for m, which is easy to miss on a phone. The fourth is a name written in another alphabet and stored as xn-- text, so it can display as something that looks familiar. The fifth is a bare number with no name and no encryption. The sixth is a shortened link, where the real destination is hidden until you open it, so you can’t judge it from the address at all.
A short link isn’t always bad (plenty of legitimate printed codes use one). It means you have to decide whether you trust whoever put the code there, because the address can’t tell you.
Scan in the app that will use the result
Two situations are better handled inside an app than with the general camera. If the code is a payment, scan it from within your UPI app, so the payee name shows up in the place where you approve the payment. If it’s a Wi-Fi code at a friend’s house, the camera is fine, but check that the network name the phone shows is the one on the wall before you accept.
The same goes for codes that log you in to something, such as linking a desktop app to a phone account. Scan those only when you started the login yourself a moment ago, from a screen you opened.
When nothing happens
Most failed scans come down to one of a short list of causes. Work through them in this order, which is also roughly the order of how often they apply:
- Move the phone closer and then back until the code is sharp. Autofocus needs a moment, and a code too close to the lens can be as unreadable as one too far away.
- Make sure the whole code is on screen, including the white margin around it. The format calls for a clear margin four modules wide on every side, and a code printed right up against text or a border is harder to find.
- Check you’re in Photo mode, not Portrait or Video.
- Wipe the lens. Glare from a laminated sign or glass is another common cause, so tilt the phone or step to the side.
- Look for Scan QR codes in the camera settings (Samsung), Camera scan suggestions (Pixel) or the Scan Code control (iPhone).
- Try the other route: Lens, Control Center, or the scanner on this site. A different app often reads what the first one rejects.
If none of that works, the problem is probably the code. QR code not scanning: 12 causes and fixes goes through the print and design faults in order, with what we measured on a real code.
Our scanner, and what it does differently
The scanner at /scan/ has two modes, Camera and Image or screenshot. Both decode on your device, so the picture isn’t uploaded. It recognises links, Wi-Fi, contacts, calendar events, UPI payments, email, phone numbers, text messages, locations and plain text, and it opens nothing until you press the button.
For links it shows the real domain in large type first. It then flags the things that most often disguise a bad address: an @ in the web address, lookalike letters from other alphabets (punycode), a bare IP number, plain http, a known short-link domain, an unusual port number and a very long address. It blocks javascript: and data: links outright. A clean result means those checks found nothing. It doesn’t mean the site is safe, and the scanner says so on the result card.
It also tries each image the other way round, so a light code on a dark background is read too.
The five-second check before you tap
Run this every time, in this order. It takes less time than it did to read.
- Where is the code? A sticker over another sticker, a code on a parking meter or a card dropped through your door is worse than one printed on a menu you picked up in a shop. The FTC’s warning on this is simple: if you see a QR code in an unexpected place, inspect the URL before you open it, and don’t scan one in an email or text you weren’t expecting, especially if it urges you to act fast.
- What does the address say? Read the domain, the part after
https://and before the next/. Look for swapped letters, an extra word, or a shortened link that hides the destination. - What is it asking for? A menu doesn’t need your card number. A parking code doesn’t need your date of birth. A “refund” page that wants your UPI PIN is a fraud, because a UPI PIN is asked for when money leaves your account, never when it arrives.
- Is the screen asking you to hurry? Countdown timers and “account blocked” messages are there to stop you doing step 2.
- Close it if unsure. Closing a page costs nothing. If you typed anything, change that password and watch the account.
Ready to try it? Free, no sign-up, made in your browser.
Open the scanner