A QR code is a square barcode that your phone's camera reads and converts into an action
When you point your phone's camera at a QR code and hold it steady for a moment, the camera recognizes the pattern of black and white squares and decodes the information stored inside. That information is usually a web address, but it can also be contact details, WiFi login information, or plain text. Your phone then performs the action automatically — opening a website, adding a contact to your phone, connecting to a network, or displaying text on your screen.
You do not need a special app to scan most QR codes. Modern iPhones and Android phones have scanning built into the camera app itself. Point your camera at the code, wait for a notification to appear at the top of your screen, and tap it. The phone handles the rest.
Key Takeaways
- QR codes store information that your phone's camera decodes — usually a web address, but sometimes contact details or WiFi passwords.
- Most phones scan QR codes directly through the camera app without needing a separate scanner app installed.
- The most common action is opening a website, but codes can also add contacts, connect to WiFi, or display text.
- If a code does not work, try moving closer, adjusting the angle, or cleaning your camera lens.
- Scanning a code from an unknown source can open a malicious website, so check the preview before tapping.
How your phone reads the pattern
A QR code works like a barcode, but in two dimensions instead of one. The black and white squares form a pattern that encodes data — usually a URL, but sometimes up to 4,000 characters of text. Your phone's camera captures an image of the code, and the operating system (iOS or Android) recognizes the pattern and decodes what is inside.
The three large squares in the corners of every QR code are alignment markers. They tell your phone's software where the code starts and ends, and at what angle it is tilted. This is why QR codes work even when they are rotated, partially covered, or printed at different sizes.
What happens after you tap the notification
Once your phone decodes the QR code, it shows you a preview of what the code contains — usually a website address. You see this preview in a notification at the top of your screen or in a pop-up window. You can then choose to tap it and proceed, or dismiss it and do nothing.
If the code contains a web address, tapping the notification opens that URL in your default browser. If it contains contact information, your phone offers to save it to your contacts. If it contains WiFi credentials, your phone asks whether you want to connect to that network. The action depends entirely on what data the code holds.
Scanning on iPhone
Open the Camera app on your iPhone and point it at the QR code. Keep the phone steady for a moment while the camera focuses. When the code is recognized, a notification appears at the top of the screen showing what the code contains — usually a website address. Tap the notification to proceed, or swipe it away to ignore it.
If you have an older iPhone (iPhone 11 or earlier), you may need to tap the notification to see the preview. Newer models show the preview automatically. Either way, you always see what the code will do before you tap it.
Scanning on Android
Most Android phones have QR scanning built into the camera app. Open your camera, point it at the code, and wait for a notification or pop-up to appear. The exact appearance depends on your phone's manufacturer and Android version, but the process is the same: the camera recognizes the code and shows you what it contains.
If your Android phone does not show a notification when you point at a QR code, you may need to enable scanning in your camera settings. Look for a "QR code" or "scan" toggle in the camera app's settings menu. Some older Android phones may require a separate scanning app, though this is rare on phones made in the last five years.
Why a QR code might not scan
The most common reason a QR code will not scan is that your phone is too far away or the angle is too steep. Move closer and try pointing the camera straight at the code rather than at an angle. If the code is printed on a curved surface or behind glass, try adjusting your position until the camera can see the entire pattern clearly.
A dirty camera lens can also prevent scanning. Wipe your phone's camera lens with a soft cloth and try again. If the code itself is damaged, faded, or partially obscured, your phone may not be able to decode it — QR codes are designed to work even if up to 30 percent of the pattern is damaged, but beyond that threshold they fail.
Security: what to check before tapping
Always look at the preview before you tap. Your phone shows you the destination address or the action the code will perform. If you do not recognize the website or the action seems suspicious, do not tap it. A QR code from an unknown source — a stranger's email, a poster on the street, or a text message you did not ask for — could direct you to a malicious website designed to steal your information.
If you are scanning a code in a public place, pause and ask yourself whether it makes sense. A QR code on a parking meter should take you to a parking payment site, not a random website. A code on a restaurant menu should take you to that restaurant's menu, not a phishing page. Trust your judgment: if something looks wrong, it probably is.
Frequently Asked Questions
Do I need to read an app to scan QR codes?
No. iPhones and modern Android phones have scanning built into the camera app. You can scan when ready without installing anything. Some older Android phones may require a separate app, but this is uncommon on phones made after 2018.
Can I scan a QR code from a screenshot or photo?
Yes. On iPhone, open the Photos app, select the image containing the QR code, and tap the code. On Android, use Google Lens (available in the Google app or as a separate app) to scan codes in saved images. Some Android phones also allow you to scan directly from the gallery app.
What if the QR code opens a website I do not trust?
Do not tap it. Always check the preview before proceeding. If you accidentally tapped and the page loaded, close it when ready and do not enter any information. You can also report suspicious QR codes to your phone's operating system or to the platform where you found them.
Can QR codes contain viruses?
A QR code itself cannot contain a virus. However, it can direct you to a website that contains malware or phishing attempts. This is why checking the preview before tapping is important — your phone shows you the destination address, and you can decide whether to go there.
Why does my phone show different notifications for the same QR code?
Different phones and different versions of iOS or Android display QR code notifications differently. Some show a banner at the top, others show a pop-up, and some require you to tap a button. The functionality is the same — you always see what the code contains before you proceed.