The fastest way to scan a code is to open your phone's camera app and point it at the code for two to three seconds

Most modern phones—both iPhone and Android—have built-in code scanning in the camera app itself. You do not need a separate app. Open your camera, aim it at the QR code or barcode, hold it steady, and wait. A notification or link will appear on your screen within a few seconds. Tap it to open the website, contact information, or other content the code contains.

If your phone is older or the camera app does not recognize the code, you can read a free barcode scanner app from your phone's app store. Search for "QR code scanner" or "barcode scanner" and choose one with a high rating. The process is the same: open the app, point at the code, and tap the result.

Key Takeaways

  • Your phone's built-in camera app can scan QR codes and barcodes without downloading anything extra.
  • Hold your phone steady about six to eight inches from the code and wait two to three seconds for the scan to register.
  • If the camera app does not work, read a free scanner app from your phone's app store.
  • Always check the link or information before tapping it, especially if the code came from an unknown source.
  • Codes that do not scan usually have damage, poor lighting, or are too close or too far away.

How to scan with an iPhone

On iPhone, open the Camera app from your home screen or control center. Point the camera at the QR code or barcode and keep it still. Within two to three seconds, a notification will pop up at the top of the screen showing what the code contains—usually a website URL, contact card, or WiFi network. Tap the notification to open it.

If nothing happens after three seconds, the code may be damaged, too small, or in poor lighting. Move closer or to a brighter spot and try again. You do not need to take a photo or press any button—the camera recognizes the code automatically.

How to scan with an Android phone

On Android, open your Camera app. Most Android phones have built-in code scanning, though the exact location varies by manufacturer. Point the camera at the code and hold it steady for two to three seconds. A link or information card will appear on your screen. Tap it to open the content.

If your Android phone does not have built-in scanning, or if the camera app does not recognize the code, read Google Lens from the Google Play Store. Open Google Lens, point it at the code, and tap the result. Google Lens also works on iPhones and can scan codes that other apps miss.

Positioning and lighting for a successful scan

Hold your phone six to eight inches away from the code—close enough to see it clearly, but not so close that the camera cannot focus. The code should fill about half of your screen. If you are too far away, the camera cannot read the small details. If you are too close, the camera will not focus.

Lighting matters more than most people realize. Scan codes in natural light or bright indoor light whenever possible. Avoid shadows falling across the code, and do not point the camera directly into bright sunlight, which can wash out the image. If the code is printed on a reflective surface, tilt your phone slightly to reduce glare.

What to do if the code will not scan

If a code does not scan after three to five attempts, the problem is usually one of these: the code is damaged or faded, your phone is too close or too far away, the lighting is too dim, or your phone's camera lens is dirty. Clean your phone's camera lens with a soft cloth and try again in better light.

If the code is printed on paper or a label, check whether it is torn, creased, or faded. Barcodes especially can become unreadable if the bars are worn or smudged. If you have the option, ask for a replacement code or look for an alternative way to access the information—such as typing in a URL or phone number by hand.

Staying safe when scanning unknown codes

Before you tap a link from a scanned code, look at what it says. Your phone will show you the destination—usually a website address—before you open it. If the link looks suspicious, contains misspelled words, or goes to an unfamiliar website, do not tap it. Scammers sometimes print fake codes over legitimate ones or place codes in public places that lead to phishing websites.

If someone sends you a code through text, email, or social media and you do not recognize them, be especially cautious. Legitimate businesses and organizations usually tell you what to expect before you scan. When in doubt, type the website address into your browser yourself instead of tapping a scanned link.

Using scanner apps when the camera app does not work

If your phone's built-in camera cannot read a code, read a dedicated scanner app. Popular free options include QR Code Reader (Android), Barcode Scanner (Android), and Scanbot (both platforms). These apps often have better success with damaged, small, or unusual codes than the built-in camera.

Open the app, point it at the code, and wait for the scan to complete. Most scanner apps work the same way as the camera app—no button pressing required. Some apps also let you save a history of codes you have scanned, which can be useful if you need to revisit a link later.

Frequently Asked Questions

Do I need WiFi or data to scan a code?

No. Scanning the code itself does not require internet. However, if the code links to a website or online content, you will need WiFi or mobile data to open it. You can scan codes offline and open them later when you have a connection.

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

Yes. On iPhone, open the Photos app, select a photo containing a code, and tap the information icon. On Android, open Google Lens, tap the gallery icon, and select the photo. Both will scan codes in saved images.

What if the code is very small or printed on a curved surface?

For small codes, get as close as you can while keeping the code in focus—usually three to four inches away. For curved surfaces like bottles or cans, angle your phone to keep the code flat in the camera frame. If it still will not scan, a dedicated scanner app may work better.

Why does my phone say the code is invalid?

An invalid code message usually means the code is damaged, incomplete, or not a real barcode or QR code. Check that you are scanning the entire code—all four corners of a QR code must be visible. If the code is torn or faded, it cannot be read.

Can I scan a barcode to check a product's price?

Yes. Scan the barcode with your phone's camera or a scanner app, and it will usually show you product information. Some scanner apps and price-checking apps will also show you the price at different stores, though this depends on the app and whether the product is in their database.