Can a QR code give your phone a virus?
No. A QR code is a picture of some text. When your camera reads it, the phone gets that text and offers to do something ordinary with it: open a web address, join a Wi-Fi network, save a contact, start a payment. You stay in charge of whether that happens, because the phone shows you what it found first.
What can hurt you comes after the tap. A page can ask for your login or card, push an app or a "profile" to install, or request your location, camera or contacts. That's the same risk as a link in a text message, and you handle it the same way.
| What the page does | How to stay safe |
|---|---|
| Copies a real site and asks for a login or card | Check the address before typing anything |
| Sits behind a sticker stuck over a real code | Look at the code; use the official app or website instead |
| Pushes an app or profile install | Install only from the App Store or Google Play |
| Asks for location, camera or contacts | Say no unless there's an obvious reason |
When these are done on purpose to steal from you, it's called quishing. What is quishing shows what fake addresses look like and what to do if you've already scanned one.
Four habits that cover almost everything
- Read the address before you open it. Your camera shows it first. Look at the end of the site name, just before the first single slash: that's who you're really visiting.
- Trust the place, not the code. A code printed on a restaurant's own menu deserves more trust than a sticker on a meter or a code in a surprise email.
- Never log in or pay from a code you weren't expecting. Open the company's app or type its address yourself.
- Use your phone's built-in scanner. The FBI's warning on tampered QR codes says not to download QR scanner apps, because they increase the risk of malware; iPhone and Android cameras already scan. See how on iPhone or Android.
Who can see that you scanned
This part gets missed. A static code holds the destination itself, so your phone goes straight to that site. Only that site knows you came, as with any link.
A dynamic code holds the QR company's short link. Your phone visits the QR company's server first, and that server can record when you scanned, your rough location from your internet address, and what kind of phone you use, before forwarding you. That's how scan statistics are made. There's nothing sinister about it, but it's a second party seeing your visit. To check which kind a code is, our QR code scanner shows the full address before opening it; static vs dynamic QR codes explains the rest.
A Wi-Fi code shows your password to anyone who scans it
This is the risk people don't expect. A Wi-Fi QR code stores the password as plain text. This is the exact line our generator writes for a network called Cafe Guest:
WIFI:T:WPA;S:Cafe Guest;P:espresso2026;;
Anyone who scans the code gets espresso2026, and many scanner apps put it on screen. That's fine for a café's guest network and a bad idea for the network your work laptop uses. Put the code on a guest network if your router has one. Our Wi-Fi QR code generator builds the code in your browser, so the password isn't sent to us. Anyone who can photograph the printed code can still read it.
If you make codes for other people
Use static codes that point at your own website, so the address people see is one they recognise and nobody else can switch it off. Print the address under the code so people can compare. Check codes in public places for stickers now and then. And scan your own code before printing it; do QR codes expire explains what to look for in the address.