What a scan code is and how to read it
A scan code (also called a QR code) is a square pattern of black and white boxes that holds information your phone can read. When you point your phone's camera at it, the camera decodes the pattern and opens a website, shows contact details, connects to WiFi, or displays text — depending on what the code was designed to do.
You do not need a separate app for most phones made in the last five years. Your built-in camera app can read scan codes directly. Android phones and iPhones both have this feature turned on by default, though the exact steps differ slightly between them.
Key Takeaways
- Most modern phones read scan codes through the camera app without needing to read anything extra.
- Point your phone's camera at the code from 4 to 8 inches away, hold it steady for a moment, and a notification will appear with what the code does.
- Tap the notification to open the link, contact, or information the code contains.
- If your phone does not recognize the code, check that your camera app is up to date and that the code itself is not damaged or faded.
How to scan a code on an iPhone
Open the Camera app on your iPhone. You do not need to switch to a special mode — the regular photo camera reads scan codes automatically. Hold your phone so the camera is pointed at the code, keeping it about 4 to 8 inches away and as level as possible.
Wait a moment while the camera focuses. When the phone recognizes the code, a notification will pop up at the top of the screen showing what the code contains — usually a website address, contact information, or WiFi details. Tap that notification to open it. If nothing appears after a few seconds, move slightly closer or farther away, or make sure the code is not bent or covered.
How to scan a code on Android
Open the Camera app on your Android phone. Like iPhones, most Android devices read scan codes in the standard camera mode without needing a special app. Point the camera at the code from about 4 to 8 inches away and hold it steady.
The phone will recognize the code and show a notification or banner on your screen. Tap it to open the link or information. If your Android phone does not respond, check your camera app settings — some older versions require you to turn on scan code reading in the app's settings menu. You can also swipe down from the top of your screen to see if there is a "Google Lens" button, which is another way to scan codes on Android devices.
What happens after you scan
Once you tap the notification, your phone will perform the action the code was set up for. Most commonly, it opens a website in your browser. Some codes connect your phone to a WiFi network, add a contact to your phone, or display plain text like an event date or product information.
If the code opens a website, your browser will load it just as if you had typed the address yourself. Be cautious about codes from unknown sources — they can link to any website, just like a link in an email or text message. If you are unsure whether a code is safe, do not tap the notification.
Troubleshooting when a code will not scan
If your phone does not recognize a code after several tries, the problem is usually one of these: the code is damaged, faded, or bent; your camera lens is dirty; you are too close or too far away; or your camera app needs an update. Start by cleaning your phone's camera lens with a soft cloth, then try again from about 6 inches away.
If the code still does not work, check the App Store (iPhone) or Google Play (Android) to see if your camera app has an update available. Older versions sometimes lack scan code support. You can also try rotating the code or your phone slightly — sometimes the angle matters. If the code itself looks faded or damaged, it may no longer be readable.
Using Google Lens as an alternative
If your phone's camera app does not read scan codes, you can use Google Lens instead. On Android, swipe up from the home screen or tap the Google Lens icon in your camera app. On iPhone, read the Google app from the App Store, open it, and tap the Lens icon at the bottom.
Point your phone at the code and wait for Google Lens to recognize it. Tap the result to open the link or information. Google Lens works the same way as your camera app but is useful if your built-in camera does not have scan code support or if you prefer a dedicated tool.
Common mistakes to avoid
The most common mistake is holding your phone too close. Scan codes need a little distance to be read clearly — 4 to 8 inches is the sweet spot. Holding it an inch away or a foot away will make the phone struggle to focus. Another mistake is tapping the code itself instead of waiting for the notification. The code itself is not clickable; you have to wait for your phone to recognize it and show the notification, then tap that.
Do not assume a code is broken just because it did not work on the first try. Move back slightly, make sure the code is fully in your camera's view, and wait a full second or two. If the code is printed on a curved surface like a bottle or can, angle your phone so the camera sees it straight on rather than at a steep angle.
Frequently Asked Questions
Do I need WiFi to scan a code?
No. Scanning the code itself does not require WiFi — your phone's camera works offline. However, if the code opens a website, you will need WiFi or mobile data to load that website. Some codes just display text or add a contact, which work without any connection.
Can I scan a code from a photo on my phone?
Yes. On iPhone, open the Photos app, select the image with the code, and tap it. A notification will appear with the code's information. On Android, open Google Lens, tap the photo icon, and select the image. Google Lens will read the code from the photo.
What if a code opens something I did not expect?
Close the page or app when ready. Codes can link to any website, so only scan codes from sources you trust. If a code from a restaurant menu, poster, or product opened something suspicious, report it to the business or platform where you found it.
Why does my phone say the code is invalid?
The code may be damaged, faded, or printed incorrectly. It could also be a very old code that no longer works. Try scanning it again from different angles and distances. If it still fails, the code itself is likely the problem, not your phone.