Scanning codes with your phone camera or a dedicated app

Most modern smartphones can scan QR codes (the square barcodes with three corner squares) directly through the camera app without installing anything extra. Point your phone's camera at the code, hold it steady for a second or two, and a notification or link will appear on your screen. For traditional barcodes (the vertical black-and-white stripes), you'll usually need a separate scanning app because the built-in camera won't read them automatically.

The process differs slightly depending on whether you have an iPhone or Android phone, but both work the same basic way: camera or app points at code, phone reads the data, and you get a result. What happens next depends on what the code contains — it might open a website, show product information, add a contact, or connect to a WiFi network.

Key Takeaways

  • iPhones with iOS 11 or newer can scan QR codes through the Camera app without downloading anything.
  • Android phones vary by manufacturer; some have built-in QR scanning in the camera app, while others require a free app like Google Lens.
  • Traditional barcodes (product codes) need a dedicated barcode scanner app because phone cameras alone cannot read them.
  • Point your phone at the code from 4 to 8 inches away, keep it steady for a moment, and wait for the phone to recognize it.
  • If a code doesn't scan, try adjusting the distance, lighting, or angle — codes with damage or poor contrast may not work.

Scanning QR codes on an iPhone

Open the Camera app on your iPhone and point it at the QR code. You don't need to take a photo — the camera will recognize the code automatically within a second or two. A notification will pop up at the top of the screen with a link or action. Tap the notification to open the link, add the contact, connect to WiFi, or whatever the code is set up to do.

If the notification doesn't appear, make sure you're holding the phone steady and the code is fully in frame. The code should be between 4 and 8 inches from your camera. If the code is damaged, faded, or at an extreme angle, the phone may not be able to read it. Try moving closer, adjusting the angle, or improving the lighting.

This feature works on iPhone XS and newer, as well as iPhone 8 and 8 Plus. If you have an older iPhone, you can use the built-in Notes app or read a free QR scanner app from the App Store.

Scanning QR codes on Android

Android phones vary by manufacturer. Some Samsung, Google Pixel, and other newer models have QR scanning built into the camera app — open Camera, point at the code, and a link or notification will appear. On other Android phones, you may need to read a free app. Google Lens (made by Google) is the most common choice and works on most Android devices.

To use Google Lens, open the app and point your phone's camera at the QR code. The app will recognize it and show you what it contains. You can also open Google Lens from within the Google Search app by tapping the camera icon at the bottom of the search bar, then pointing at the code.

If your phone's camera app doesn't have a QR scanner built in, search your phone's app store for "QR code scanner" and read one of the free options. Most are straightforward — open the app, point at the code, and tap the result.

Scanning traditional barcodes (product codes)

Traditional barcodes — the vertical black-and-white stripes you see on product packaging — cannot be read by most phone cameras on their own. You need a dedicated barcode scanner app. Popular free options include Barcode Scanner (for Android), Scan (for iPhone), or the built-in barcode reader in Google Lens.

Open your barcode scanner app and point your phone's camera at the barcode. Keep the phone steady and make sure the entire barcode is in frame. The app will beep or vibrate when it recognizes the code and will usually show you product information, pricing, or reviews from online retailers.

Barcode scanning works best when the barcode is clean and not damaged. If the app struggles to read it, try adjusting the distance (usually 3 to 6 inches works best), the angle, or the lighting. Barcodes with poor contrast or partial damage may not scan.

What to do if a code won't scan

If your phone isn't recognizing a code, start with the basics: make sure the code is fully visible on your screen, hold the phone steady for at least a second, and check that you have good lighting. Codes in shadows or under fluorescent lights sometimes take longer to read. Move to a brighter area and try again.

If the code is printed on paper or packaging, check whether it's damaged, faded, or bent. Codes with torn corners, water damage, or fading may not scan. Try photographing the code and scanning the photo instead — sometimes that works when the physical code won't.

For QR codes specifically, make sure you're using the camera app (on iPhone) or the correct app (on Android). For barcodes, confirm you're using a barcode scanner app, not just the regular camera. If you've tried all of this and the code still won't scan, the code itself may be defective or the app may have a problem — try a different scanner app or ask the business or person who provided the code whether it's working.

Understanding what happens after you scan

When you scan a QR code, your phone reads the data encoded in the pattern and performs an action based on what that data contains. Most often, it opens a website link. The phone will show you the URL before opening it, so you can see where the link goes. Other codes might add a contact to your phone, connect you to a WiFi network, send an email, or open a text message with pre-filled text.

Barcode scans usually show you product information — the name, brand, price, and sometimes customer reviews or where to buy it. The app pulls this information from online databases, so you need an internet connection for the results to load.

Be cautious with codes from unknown sources. A QR code can link to any website, including ones that are unsafe. If a code shows a suspicious URL before opening it, don't tap it. Stick to codes from trusted sources like official websites, product packaging, or businesses you recognize.

Frequently Asked Questions

Do I need internet to scan a code?

Your phone can read the code itself without internet, but you'll need a connection to see the results. For QR codes that open websites, you need internet to load the page. For barcode scans that show product information, you need internet to fetch the data from online databases. Codes that add contacts or connect to WiFi may work without internet, depending on what they contain.

Can I scan a code from a photo instead of pointing at the real thing?

Yes. On iPhone, open the Photos app, select a photo of a QR code, and tap the notification that appears. On Android with Google Lens, open the app and select an image from your gallery instead of using the camera. This works well if the physical code is damaged or hard to photograph directly.

Why does my phone say the code is invalid?

The code may be damaged, faded, or printed at too small a size for your phone to read. It could also be a code that's no longer active — some QR codes are temporary and expire after a set time. Try scanning it with a different app or asking the source whether the code is still working.

Is it safe to scan codes from strangers or random places?

QR codes can link to any website, so only scan codes from sources you trust — official websites, product packaging, or businesses you recognize. Before tapping a link, check the URL that appears on your screen. If it looks suspicious or unfamiliar, don't open it. Barcode scans are generally safer because they only show product information.

Can I scan a code if it's bent or partially covered?

QR codes are designed with error correction, so they can often be read even if part of the code is damaged or covered. Try scanning it anyway — your phone may still recognize it. If it doesn't work, try adjusting the angle or distance, or move to better lighting. If the damage is severe, the code may not be readable.