Can a QR Code Give You a Virus?
You'll learn: Whether a QR code can infect a phone, what the real risks are and how to scan safely.
The short answer
A QR code cannot give you a virus by being scanned. It is only a picture that holds text, and the camera just reads that text. The danger is the link inside it. A bad link can lead to a fake login page or a harmful download, so what you do after scanning matters.

Why the code itself is harmless
A QR code is not a program. It cannot run on its own. Your phone reads the dots, shows you the text, and waits. A virus needs you to open a link and install something, or to type your details into a fake page.
The real risks
- Fake pages. A link can open a copy of a bank or parcel page that steals your password.
- Stickers on top. Someone can place a new code over a real one on a poster or a parking meter. Read fake QR code sticker.
- Downloads. A link may offer a file or app you did not ask for.
- Asking for payment. A page may ask for money you did not plan to pay.
More in QR code scam.
How to scan safely
- Read the web address your phone shows before you tap it.
- Be suspicious if the address is a long string of random letters or does not match the business.
- Check that a printed code has not been stuck over another.
- Do not install an app because a code asked you to, unless it comes from the official store.
- Never type a password or card number after a surprise scan.
- If you want to look first, use the free QR scanner, which shows the content before opening it.
For businesses
Keep your own codes safe. Put them where you can see them, check them often and use a short link you control. See prevent QR code tampering.
Example: a code on a bus shelter
Imagine a poster in a bus shelter in Colombo with a code and the words "Win a free coffee". You scan it, and the address that appears has nothing to do with a café. That mismatch is your warning. Close the page. A real offer would show the café's own name in the address.
What phones do to protect you
Modern phones show a preview of the address before opening it, and many browsers warn about known bad sites. Keep your phone and browser up to date, because these protections depend on updates. They help, but they do not replace looking at the address yourself.
If you opened a bad link by mistake
Close the page without entering anything. If you typed a password, change it at once and turn on two-step login. If you typed card details, call your bank. If you installed an app, remove it and run your phone's security check.
Common questions
Q: Can scanning hack my phone?
A: Reading the code alone does not. A harmful link you open and follow could, but this is rare on up-to-date phones.
Q: Should I avoid QR codes?
A: No. Use the same care you use with a link in a message.
Q: Are Scnr codes safe?
A: A code is as safe as the page it opens. See are QR codes safe.