Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Scan a QR Code: iPhone, Android & More

· 6 min read · Home Tech

In this article
  1. What Is a QR Code and Why Do You See Them Everywhere?
  2. How QR Code Scanning Actually Works
  3. How to Scan a QR Code on an iPhone
  4. How to Scan a QR Code on Android
  5. What to Do If the QR Code Won't Scan
  6. QR Code Safety: What to Watch Out For
  7. Alternatives to Scanning with a Camera
  8. Frequently Asked Questions

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, this works without installing any extra app—just make sure the camera is in photo mode and the QR code is fully visible within the frame.

What Is a QR Code and Why Do You See Them Everywhere?

QR stands for Quick Response. It's a two-dimensional barcode invented in 1994 by Denso Wave, a Japanese subsidiary of Toyota, to track car parts during manufacturing. Unlike a traditional barcode that only holds data horizontally, a QR code stores information both horizontally and vertically, allowing it to hold far more data—up to about 3,000 characters. That's enough for a URL, a Wi-Fi password, a plain-text message, or even a vCard contact.

QR codes became ubiquitous because they bridge the physical and digital worlds. You'll find them on restaurant menus, product packaging, museum placards, business cards, and event tickets. They encode a link, and scanning it takes you to a webpage, app store, or payment portal without typing a single character.

How QR Code Scanning Actually Works

When you point your camera at a QR code, the phone's image sensor captures the pattern of black squares and white spaces. The phone's software then decodes the pattern using a standardized algorithm (ISO/IEC 18004). The three large squares in the corners of the code are alignment markers that help the software determine the orientation and size of the code, even if it's rotated or partially obscured.

The decoded data is a string of characters. If it's a URL, the phone opens your browser. If it's a Wi-Fi network, it prompts you to join. If it's plain text, it displays the text. The entire process takes less than a second on modern devices because the decoding happens locally on the phone—no internet connection is required for the scan itself, though opening a linked webpage obviously needs connectivity.

How to Scan a QR Code on an iPhone

Apple introduced native QR scanning in iOS 11 (2017). Here's the exact procedure:

  • Open the built-in Camera app.
  • Position the QR code within the viewfinder, keeping the phone steady about 10-20 cm away.
  • Wait for the yellow notification banner to appear at the top of the screen.
  • Tap the banner to open the link or content.

If nothing happens, make sure QR scanning is enabled: go to Settings > Camera and toggle on Scan QR Codes. On older iPhones, you may need to swipe up from the bottom of the lock screen to access the Control Center and tap the QR code icon there.

How to Scan a QR Code on Android

Most Android phones (Samsung, Google Pixel, OnePlus, etc.) also have built-in QR scanning in the default camera app. The steps are nearly identical to iPhone:

  • Open the Camera app.
  • Point at the QR code and wait for a link preview or a pop-up.
  • Tap the pop-up to proceed.

If your camera app doesn't show a preview, try Google Lens. On many Androids, you can open Google Lens directly from the camera app by tapping the Lens icon (a small shutter-like symbol). Alternatively, use the Google Assistant: say “Hey Google, scan this” while pointing the camera at the code. As a last resort, download a dedicated QR scanner app from the Play Store—but you rarely need one on recent models.

What to Do If the QR Code Won't Scan

Scanning failures usually come down to a few fixable issues:

  • Poor lighting: QR codes need contrast. Move to brighter light or turn on your phone's flashlight.
  • Blurry or dirty code: Wipe the code if it's on a physical surface, and make sure your camera lens is clean.
  • Too close or too far: Hold the phone at a distance where the entire code fits comfortably in the frame, not filling the whole screen.
  • Curved or damaged code: A code printed on a curved bottle or crumpled paper may be unreadable. Try flattening it or moving to a different angle.
  • Screen glare: If the code is on another phone screen, reduce brightness or tilt the screen to avoid reflections.

If the code still won't scan, it may be a low-quality print or a malicious code that doesn't follow the standard. In that case, try a different scanner app—some are more tolerant of distortion.

QR Code Safety: What to Watch Out For

QR codes are just links in disguise. Scanning one can open a webpage, download a file, or connect you to a Wi-Fi network. That means a malicious QR code can take you to a phishing site, trigger a download of malware, or prompt you to enter credentials on a fake login page. This is called “quishing” (QR phishing).

To stay safe, follow these rules:

  • Never scan a QR code from an unsolicited email, text, or sticky note in a public place.
  • Check the URL preview before tapping. Most phones show the destination link—if it looks suspicious (typos, odd domains), don't open it.
  • Don't enter passwords or payment details on a page you reached via an unknown QR code.
  • If you're scanning a code on a poster or product, verify it's from the official brand by checking the surrounding context.

Legitimate QR codes are safe, but treat them like any unknown link. When in doubt, don't scan.

Alternatives to Scanning with a Camera

If your phone lacks a camera or the code is on a screen you can't photograph, you have other options:

  • Google Lens: Available as a standalone app and integrated into Google Search. You can upload an existing photo of a QR code from your gallery.
  • Online QR decoders: Websites like ZXing Decoder Online let you upload an image of a QR code and extract the text or URL. These are useful for verifying a code's content before opening it.
  • Specialized apps: Apps like QR Code Reader or Kaspersky QR Scanner (on Android) offer extra features like history and safety checks.
  • Desktop webcam: Some laptops and desktops can scan QR codes via the built-in camera using a browser extension or a free app like “QR Code Scanner” for Windows.

But for 99% of everyday use, the built-in camera is all you need.

Frequently Asked Questions

Do I need a special app to scan a QR code?

No. iPhones (since iOS 11) and most Android phones (since Android 9 or earlier on many models) have QR scanning built into the default camera app. Only older or budget phones may require a third-party app.

Can I scan a QR code from a screenshot?

Yes. On iPhone, open the screenshot in Photos, then tap the QR icon in the bottom corner. On Android, open the screenshot in Google Photos and tap the Lens icon. Alternatively, use Google Lens to analyze the image.

Why does my phone show a link instead of opening it?

That's a safety feature. The phone displays the URL preview so you can verify it before leaving the camera app. Tap the preview to open the link in your browser. Some apps (like banking) may require you to tap twice for confirmation.

Can a QR code contain a virus?

No. A QR code is just text—it cannot contain executable code. However, the link it points to can lead to a website that hosts malware or a phishing page. The scan itself is safe; the risk comes from what you do after.

How do I scan a QR code with my computer?

If your computer has a webcam, you can use a free online scanner like WebQR or a browser extension. Alternatively, take a photo of the QR code with your phone, then upload that image to an online decoder to see the underlying text or URL.

What if I scan a QR code that asks for a Wi-Fi password?

That's common. The QR code encodes the network name (SSID) and password. Your phone will prompt you to join the network—just tap the notification and confirm. Make sure you trust the network before connecting, as a malicious code could connect you to a rogue hotspot that intercepts your traffic.