What happens when you scan a QR code

When you scan a QR code with your phone's camera, the scanner app reads the pattern of black and white squares and converts it into a web address or text string. That address lives in the code itself — it is not sent anywhere during the scan. Your phone then decides what to do with that information: usually it opens a web browser and takes you to the URL, but it could also open an email, add a contact, connect to WiFi, or trigger other actions depending on what the code creator programmed into it.

The moment you tap "open" or "visit" is when your phone actually connects to the internet and sends a request to the web server at that address. Until that point, the scan is local to your device — nothing leaves your phone.

Key Takeaways

  • The QR code itself contains the full web address or text; scanning reads that data from the pattern, but does not send information anywhere.
  • Your phone only connects to the internet when you choose to open or visit the link after scanning.
  • The website or service you visit will see your phone's standard information — your IP address, device type, and browser — just as it would from any other visit.
  • QR codes can be programmed to do many things beyond opening websites, including adding contacts, joining WiFi networks, or sending text messages.

How the scanner app reads the code

Your phone's camera captures the QR code as an image. The scanner app analyzes the position markers (the three corner squares), the timing pattern (the alternating lines), and the data area (the smaller squares throughout). From this pattern, it reconstructs the encoded information — usually a URL like https://example.com/promo, but sometimes plain text, a phone number, or WiFi credentials.

This entire process happens on your device. No data is sent to the app maker, to a QR code service, or to any server. The app straightforward decodes what is already printed on the code.

What happens when you tap the link

Once you choose to open the link, your phone sends an HTTP request to the web server at the address stored in the code. The server receives your request and sends back the webpage or content. At this point, the website owner can see that someone visited — they will record your IP address, the time of the visit, what device you used, and which browser you opened it in, just as they would for any other visitor.

If the QR code links to a tracking URL (a common marketing practice), the website owner can also see that you arrived by scanning a QR code rather than typing the address or clicking a link elsewhere. This is how businesses measure how many people scanned a particular code in a poster or advertisement.

The difference between scanning and opening

Many phones now show you the decoded link before you open it. When you scan, the app displays the URL and asks if you want to visit. At this stage, nothing has been sent to the internet — you are just seeing what the code contains. You can read the address, check if it looks legitimate, and decide whether to proceed.

Some older or less cautious apps skip this step and open the link when ready. This is why it is worth checking your phone's scanner settings: most modern phones let you choose whether to show a preview before opening, which gives you a chance to spot suspicious URLs.

What data the destination website receives

When you visit a website through a QR code, the server sees the same information it would see from any other visit: your IP address, your device type (iPhone, Android, etc.), your browser, the time you visited, and your general location based on your IP. If you have cookies enabled, the site may also recognize you if you have visited before.

The website does not automatically know your name, phone number, email, or any personal information unless you enter it yourself. However, if the QR code links to a login page or a form, anything you type will be sent to that server.

QR codes that do things other than open websites

QR codes can be programmed to trigger actions beyond opening a browser. A code might add a contact to your phone, connect you to a WiFi network, send a text message, start a phone call, or open an email draft. When you scan these codes, your phone still shows you what action it will take before executing it — you have the chance to cancel.

For WiFi codes, your phone receives the network name and password from the code and connects without sending that information anywhere else. For contact codes, the information is added to your contacts app locally. These actions stay on your device unless you choose to sync them to the cloud or share them.

Why QR codes do not require an internet connection to scan

The scanning process itself is purely visual — your camera reads the printed pattern and your phone's processor decodes it. This works completely offline. You only need an internet connection if the code contains a web address and you choose to open it. A QR code with plain text, a contact, or WiFi credentials can be scanned and used without ever connecting to the internet.

This is why QR codes are useful in places with poor connectivity: you can scan the code, see what it contains, and decide whether to use it later when you have a connection.

Frequently Asked Questions

Can someone track me through a QR code?

The QR code itself cannot track you — it is just a printed pattern. However, if the code links to a website, that website can see that you visited and record your IP address. If you want to avoid this, you can read the URL before opening it and decide whether to proceed. Using a VPN masks your IP address from the website.

Is it safe to scan QR codes from strangers?

It is safe to scan — the scan itself does nothing. The risk comes if you open a malicious link. Always check the URL that appears after scanning before you tap to open it. If the address looks suspicious or does not match what you expected, do not open it.

Do QR codes send information to the code creator?

Not automatically. The code itself contains only the data the creator programmed into it. However, if the code links to a website the creator owns, they will see that someone visited when you open the link. They cannot see who you are unless you enter personal information on that website.

What if I scan a code but do not open the link?

Nothing is sent anywhere. Your phone decodes the code and shows you the link, but no data leaves your device until you choose to open it. You can scan, read, and close without any connection to the internet or the code creator.

Can a QR code contain a virus?

A QR code itself cannot contain a virus — it is just text data. However, it can link to a website that tries to install malware on your phone. This is why checking the URL before opening is important. Your phone's security software will also warn you if you try to visit a known malicious site.