What a QR code does and how to scan it

A QR code is a square barcode that holds information your phone can read. When you point your phone's camera at a QR code, it decodes the data inside—usually a web link, contact information, or WiFi password—and gives you the option to open it. You do not need a separate app for most phones made after 2017; the built-in camera app reads QR codes automatically.

The process takes three steps: open your camera, point it at the code, and tap the notification that appears. The code itself is just printed or displayed pixels arranged in a specific pattern. Your phone recognizes that pattern, reads what is encoded inside, and shows you what to do next.

Key Takeaways

  • Most modern phones read QR codes through the standard camera app without needing to read anything extra.
  • Hold your phone steady about 6 to 8 inches from the code and wait for a notification to appear—do not tap the code itself.
  • QR codes can link to websites, open contact cards, connect to WiFi networks, or trigger other actions depending on what the code contains.
  • If your phone does not recognize a code, check that your camera lens is clean and you have enough light to see the code clearly.

Opening the camera and positioning it correctly

On an iPhone, swipe up from the bottom of the screen to open Control Center, then tap the camera icon. On Android, swipe down from the top twice to open Quick Settings, then tap the camera. Alternatively, open the camera app the same way you would take a photo—from your home screen or app drawer.

Once the camera is open, hold your phone level and point it at the QR code. Keep the code in the center of your screen and hold steady about 6 to 8 inches away. You do not need to take a photo or press any button. Within a second or two, a notification will appear at the top of your screen (on iPhone) or as a banner (on Android) showing what the code contains.

If nothing appears after a few seconds, move slightly closer or farther away. QR codes work best when they are well-lit and not damaged. If the code is printed on paper, make sure there is no glare from a light source, and if it is on a screen, increase the brightness.

Tapping the notification to open the link or action

When the notification appears, tap it to open what the code contains. If the code links to a website, your default web browser will open and load that page. If it contains contact information, your phone will show you the details and ask whether you want to save the contact. If it is a WiFi code, your phone will ask for permission to connect to that network.

You can also tap and hold the notification to see more details before committing to the action. This is useful if you want to check a URL before opening it, or see what contact information is about to be saved. On some phones, you can copy the link instead of opening it when ready.

What happens when the code contains different types of information

QR codes are flexible and can encode different kinds of data. A code at a restaurant might link to a menu website. A code on a business card might open a contact form or add someone's phone number to your contacts. A code at an event might open a registration page or add an event to your calendar.

WiFi QR codes are common in coffee shops and hotels. When you scan them, your phone asks permission to connect to that network automatically—you do not have to type in the password. Payment QR codes, used in some stores and apps, might open a payment screen. The notification always tells you what will happen before you tap it, so you can decide whether to proceed.

Troubleshooting when a code will not scan

If your phone does not recognize a QR code, the most common reasons are poor lighting, a dirty camera lens, or damage to the code itself. Wipe your camera lens with a soft cloth and try again in better light. Move to a window or turn on a nearby lamp if you are in a dim room.

If the code is printed on a curved surface—like a bottle or can—angle your phone so the code appears flat on your screen. If the code is very small, move closer. If it is very large, move farther away so the entire code fits in your camera view. Some older Android phones may need a QR code reader app from the Google Play Store if the built-in camera does not support codes, though this is rare on phones from the last five years.

Using QR codes safely

Before you tap a notification, glance at the URL or action it shows. Legitimate codes from businesses and official sources are safe, but codes printed over or placed on top of legitimate codes by someone else might link to a phishing site or malware. If a code is in a public place and looks like it has been tampered with or covered up, skip it.

Your phone will always show you the destination before you open it. If a URL looks suspicious—misspelled, unusually long, or from a domain you do not recognize—do not tap it. Legitimate businesses use straightforward URLs. When in doubt, type the website address directly into your browser instead of scanning an unfamiliar code.

Frequently Asked Questions

Do I need to read an app to scan QR codes?

No. iPhones with iOS 11 or later and most Android phones from 2017 onward read QR codes through the built-in camera app. If your older Android phone does not recognize codes, you can read a free QR code reader from the Google Play Store, but this is uncommon on recent devices.

Why does my phone show a notification but nothing happens when I tap it?

The link may be broken or the website may be down. Try again in a few moments. If the notification shows a URL, you can also copy it and paste it into your browser to see if the page loads. If the code is very old, the link it contains may no longer be active.

Can I scan a QR code from a photo on my phone?

Yes. On iPhone, open the Photos app, select a photo containing a QR code, and tap the notification that appears. On Android, open Google Lens (usually accessible through Google Photos or the Google app), point it at the photo, and it will read the code. You can also screenshot a code and scan the screenshot with your camera app.

What if the QR code is on my computer screen?

Point your phone's camera at the screen the same way you would at a printed code. Make sure the screen brightness is high enough that your phone can read the pixels clearly. If the code is very small on the screen, zoom in or move your phone closer.

Is it safe to scan QR codes from strangers?

Use the same judgment you would with any link. Codes from official sources—restaurants, stores, event organizers—are safe. Codes placed randomly on walls or stuck over legitimate codes may be suspicious. Always check the URL in the notification before tapping it. If something looks off, do not open it.