How to Scan a QR Code: iPhone, Android & More
In this article
To scan a QR code, open your phone's camera app and point it at the code, then tap the notification banner that appears. On most modern smartphones (iPhone 7 and newer, and Android 9 and newer), this works with no extra app or setup. If nothing happens, your camera may need QR scanning enabled in its settings, or you can use a dedicated QR reader app.
What QR Codes Are and Why They're Everywhere
QR stands for "Quick Response." They were invented in 1994 by Denso Wave, a Toyota subsidiary, to track car parts in factories. Unlike a traditional barcode, which holds data in one horizontal line, a QR code stores information in a two-dimensional grid of black and white squares. That grid can hold up to about 4,300 alphanumeric characters, enough for a URL, Wi-Fi password, contact card, or plain text.
QR codes became ubiquitous during the COVID-19 pandemic for contactless menus and check-ins, but they've since expanded into payments, product packaging, museum exhibits, and even pet ID tags. Their appeal is simplicity: a physical object can link to digital content in under a second.
How Scanning Actually Works on Your Phone
When you open the camera app, it continuously looks for QR-like patterns. The phone's software detects the three large square "finder patterns" in the corners of the code, then decodes the grid of smaller squares. The decoded data is usually a URL, which the camera app displays as a tappable banner or notification. Tapping it opens your web browser.
Key technical details:
- Camera quality: Most cameras from the last 8 years can read a QR code from 1–2 feet away. Macro lenses (common on newer phones) help with tiny codes on product labels.
- Lighting: The code needs contrast. Shiny surfaces or deep shadows can break recognition. Flat, matte, well-lit codes scan fastest.
- Damage tolerance: QR codes use Reed-Solomon error correction, so they can still scan if up to 30% of the code is obscured or damaged (depending on the version).
Step-by-Step: iPhone (iOS)
Apple added native QR scanning in iOS 11 (2017). Here's how to do it:
- Open the built-in Camera app.
- Hold your phone so the QR code fills most of the frame, about 4–8 inches away.
- Wait for a yellow notification banner to appear at the top of the screen (it shows the URL or a preview).
- Tap the banner to open the link in Safari.
If no banner appears, check Settings → Camera → ensure "Scan QR Codes" is toggled on. On older iPhones (pre-iOS 11), you'll need a third-party app.
Step-by-Step: Android (Google & Samsung)
Most Android phones since Android 9 (2018) have built-in scanning via Google Lens, which is integrated into the default camera app. The exact steps vary by manufacturer:
- Google Pixel / stock Android: Open the Camera app, point at the code, and tap the Google Lens icon (a small camera with dots) that appears. Or use the separate Google Lens app.
- Samsung Galaxy: Open the Camera app, point at the code, and tap the "Scan" button that appears at the bottom. If not, go to Settings → Advanced features → enable "Scan QR codes."
- Other brands (Xiaomi, OnePlus, etc.): Open the camera, point at the code, and look for a pop-up or a small icon. If nothing happens, your camera settings may have a "QR code scanning" toggle.
If your camera app doesn't have it, download a QR reader from the Play Store (e.g., "QR Code Reader" by Scan, or Google Lens).
What to Do If the QR Code Won't Scan
Common fixes, in order of likelihood:
- Clean the lens: A smudged camera lens is the #1 cause of scan failures.
- Adjust distance and angle: Move closer or farther, and try tilting the phone slightly. Avoid extreme angles.
- Increase screen brightness: If you're scanning from another screen, dim displays can fail.
- Check for damage: If the code has scratches or is partially torn, try printing it again or zooming in on a digital copy.
- Use a different app: Some camera apps compress images; a dedicated scanner may handle it better.
If the code scans but shows garbled text or a broken link, the code itself may be malformed or the destination may be offline. That's not a phone issue.
Safety: What to Check Before You Tap
QR codes are just links. They can point to phishing sites, malicious downloads, or payment scams. Because they're physical, attackers can also stick a fake QR sticker over a real one (a tactic called "quishing").
Before tapping that banner:
- Preview the URL: On iPhone, the banner shows the full URL. On Android, Google Lens shows a preview. If the domain looks suspicious (e.g., "bit.ly" or a misspelled bank name), don't tap.
- Don't enter personal info: Legitimate QR payments or logins won't ask for your password or credit card number via a random QR code.
- Check for tampering: If a restaurant menu or parking meter has a sticker over a printed code, be suspicious.
- Use your phone's built-in scanner: Third-party apps may show ads or track your activity. Native scanning is safer.
Alternatives to Camera Scanning
Your camera isn't the only way to read a QR code:
- Google Lens (Android): Can scan from a screenshot or a photo in your gallery.
- iOS Control Center: On iPhone, add the "Code Scanner" to Control Center (Settings → Control Center → add Code Scanner). It works even if the camera app fails.
- Third-party apps: Useful for older phones or when you need to generate codes, not just scan them.
- Desktop webcams: Sites like webqr.com let you scan using a laptop camera, though it's clunkier.
Frequently Asked Questions
Do I need an app to scan a QR code?
No, not on most modern phones. iPhones (iOS 11+) and Android (9+) have built-in scanning through the camera app. If your phone is older or the camera app lacks the feature, a free third-party app works.
Why does my QR code scan show a blank screen or nothing?
Usually it's a lighting or focus issue. Try moving the phone closer or farther, ensuring the code is flat and well-lit, and cleaning the camera lens. If the code is on a curved surface (like a cup), flatten it or use a different angle.
Can a QR code contain a virus?
A QR code itself is just text—it can't execute code. But it can link to a website that hosts malware or a phishing page. As long as you don't download files or enter personal info from an unknown source, you're generally safe.
How do I scan a QR code from a screenshot on my phone?
On iPhone, open the photo in Photos, then tap the QR icon in the bottom corner (iOS 16+). On Android, open Google Lens and select the image from your gallery. Both will offer to open the link.
Why do some QR codes scan on one phone but not another?
Differences in camera quality, software, and error-correction levels matter. A code with low error correction (e.g., version 1, 7% correction) may fail on a low-res camera but work on a flagship. Also, some phone cameras have a "scan QR" toggle that's off by default.