Skip to content

Guide

How to scan a QR code

Your phone already has a QR code scanner: it’s the camera. Here are the exact steps for iPhone, Pixel, Samsung Galaxy and Windows, plus what to do with a code in a screenshot or one that refuses to scan.

By Mark Stoumann ·

Scanning a QR code doesn’t take a photo and doesn’t open anything by itself. The camera recognises the code, decodes it and shows you a small banner with what’s inside: a web address, a Wi-Fi network, a contact or a phone number. Nothing happens until you tap it. That pause is useful, because it lets you see where a link goes before you follow it.

Codes made for one task work the same way. A vCard QR code shows a contact you can save, and an email QR code opens a new email with the address and subject filled in; neither is saved or sent until you tap.

On an iPhone or iPad

  1. Open the Camera app from the Home Screen, the Lock Screen or Control Center, in the normal photo mode.
  2. Hold the phone so the whole code is inside the frame. There is no button to press.
  3. A link appears near the code or at the bottom of the screen. Read it, then tap it to open the website, join the network or save the contact.

Apple also has a dedicated scanner, Scan Code, in Control Center. It opens straight into scanning mode, which is handy when you scan a lot. If you don’t see it, open Control Center, touch and hold an empty area, tap Add a Control and choose Scan Code.

On an Android phone

Android phones running Android 9 or later scan QR codes with the built-in camera. The steps are the same idea as on an iPhone, though menu names vary between phone makers.

Google Pixel

  1. Open the Camera app and point it at the code, all of it on screen.
  2. Wait a moment and tap the link or bubble that appears.
  3. If nothing appears, check that Camera scan suggestions is on in the camera’s settings (under More settings).

You can also swipe down from the top of the screen and tap the Scan QR code tile in Quick Settings. If it isn’t there, swipe across for more tiles or tap the pencil icon to add it.

Samsung Galaxy

  1. Open the Camera app and point it at the code.
  2. Tap the pop-up that appears to open the content.
  3. If no pop-up appears, open the camera’s settings (the gear icon) and turn on Scan QR codes.

Galaxy phones also have a Scan QR code button in the quick panel: swipe down from the top of the screen and look for it among the buttons.

On a Windows PC

The Windows Camera app can read QR codes with a laptop’s webcam or a plugged-in camera:

  1. Open the Camera app from the Start menu.
  2. Select the Barcode mode on the right-hand side of the window.
  3. Hold the code in front of the camera until it’s in focus. A link appears at the bottom of the window; select it to open the website.

Webcams are made for faces at arm’s length, so hold printed codes still and not too close, and give them plenty of light.

On a Mac

Apple doesn’t document a way to scan a QR code with a Mac’s own camera. The quickest route is the phone in your pocket: scan the code there, then send the link to your Mac with AirDrop, Messages or a shared clipboard. Third-party Mac apps exist, but check what they are allowed to access before you install one.

A code in a screenshot, email or PDF

Codes sent to your phone are awkward: you can’t point the camera at the screen it’s on. A few ways around it:

  • Samsung Galaxy: save or screenshot the code, open it in the Gallery app and tap the Bixby Vision button, on phones that have it.
  • Pixel and other recent Android phones: Circle to Search (long-press the home button or navigation bar) recognises codes on the screen, and Google Lens can read them in a saved image.
  • Any phone: open the email or image on a computer or tablet and scan it from that screen with your phone’s camera.

Take extra care with codes that arrive by email or text. A code in an unexpected message is a favourite trick of phishers, because it hides the link from email filters. Read how to spot a QR code scam before you open one.

When a code won’t scan

Work through these in order; the first three fix most problems.

SymptomTry this
Nothing happens at all Start about 30 cm (a foot) away and move slowly closer, keeping the whole code on screen. Hold the phone upright and steady.
Works for others, not for youWipe the camera lens, and check the scan setting on Pixel or Samsung phones.
Glossy menu, laminated card or screen Tilt the code or the phone slightly to move the glare off it; brighten the screen.
Dim room, outdoors at nightFind more light, or have someone shine their phone’s flashlight on the code.
Fails on every phone The code itself is the problem: too small, too little contrast, damaged, or printed without its empty border.

If you made the code yourself and it fails on several phones, the fix is in the design. QR codes need an empty margin four modules (four of the little squares) wide on every side, a dark code on a light background, and enough size for the distance. A damaged or partly covered code can still work thanks to error correction, up to a point: our guide to error correction levels explains how much damage each level survives.

Making a code for others to scan? The QR code generator adds the margin for you, and the Wi-Fi QR code generator saves your guests from typing a password at all.

Frequently asked questions

Do I need an app to scan QR codes?

Usually not. iPhones and Android phones running Android 9 or later read QR codes with the built-in Camera app, and Windows has a barcode mode in its Camera app. The UK’s National Cyber Security Centre and the FBI recommend the built-in scanner over a separate scanner app from an app store.

Can I scan a QR code that’s on my own screen?

Yes. On many Android phones you can read a code in a screenshot with Google Lens, Circle to Search or, on Samsung phones, Bixby Vision in the Gallery app. On any phone, the simplest fallback is to show the code on another screen, such as a laptop, and point your camera at that.

Why does my phone show a link but nothing opens?

The camera only reads the code; it waits for you to tap the banner or link it shows. If tapping does nothing, the content may not be a link at all (plain text, for example), or the website it points to may be down. Long-press the banner to copy what the code contains.

Is it safe to scan any QR code?

Scanning is harmless in itself, because your phone shows the link and waits for you. The risk is in what you do next: opening a fake website and typing in a password or card number. Our guide to QR code scams explains how to check a link before you open it.

Why won’t a QR code scan at all?

The usual causes are glare, a dirty lens, the phone being too close or too far, a code printed too small, too little contrast between the code and its background, or no empty margin around it. Step back, move slowly closer and keep the whole code on the screen. If that fails on several phones, the code itself is likely the problem.