Are QR Codes Safe? How to Spot a Malicious One

The code itself cannot harm you. What it opens is a different question, and that is where the whole risk sits.

By QRotto · Published · 8 min read

A QR code is a picture of data. It cannot execute anything, install anything, or take control of your phone. Every real QR related security incident comes down to the same thing: the code sent someone to a destination they would not have chosen if they had read the address first.

That makes the risk manageable, because it is the same risk as clicking an unknown link, with one twist, which is that a QR code hides the link until you have already scanned it.

How QR scams actually work

The pattern, sometimes called "quishing", is consistent across the reported cases:

Notice what is absent from that list: nothing happens automatically. In every case the victim had to tap a link, then enter something.

The single habit that prevents almost all of this: read the URL preview your camera shows before you tap it. If the domain is not what you expected, do not open it. That one check defeats the entire category.

Two QR codes that look equally ordinary. One decodes to a genuine domain, the other to a lookalike using a zero in place of the letter o.
We generated both and decoded them. Nothing in the pattern tells you which is which, the URL preview your camera shows is the only signal you get.

Warning signs before you tap

Once you scan, your phone shows a preview. Look for:

Advertisement

Warning signs on the physical code

Before you even scan, the sticker itself often gives it away:

Where the real risk is concentrated

Not all QR codes carry equal risk, and it is worth being proportionate:

ContextRiskWhy
Parking meters, EV chargersHighPayment expected, outdoors, unattended, easy to sticker
Unsolicited letters or emailHighYou did not initiate it; urgency is manufactured
Public posters and flyersMediumEasy to tamper with, but rarely payment related
Restaurant tablesLow to mediumStaff notice tampering, but tables are unattended at times
A code you generated yourselfNoneYou know exactly what it contains
WiFi codes in a private spaceLowNo link involved; the worst case is a failed connection

What QR codes cannot do

Some common fears are simply not accurate, and believing them makes it harder to focus on the real risk:

One genuine exception worth knowing: a WiFi QR code contains its password in plain text, so anyone who photographs the code can read the password. That is a privacy consideration for where you display it, not a malware risk.

If you think you scanned something malicious

  1. Close the page. If you only scanned and viewed, you are almost certainly fine.
  2. Entered card details? Contact your bank now and freeze the card. Speed matters more than certainty.
  3. Entered a password? Change it on the real site immediately, and anywhere else you reused it. Turn on two factor authentication.
  4. Installed an app? Uninstall it, then run a security scan. On Android, check that the app does not hold accessibility or device admin permissions.
  5. Report it: to the business whose code was replaced, and to your national fraud reporting body. Businesses frequently do not know their codes have been tampered with.

If you print QR codes for a business

Your customers' safety and your reputation are the same problem here. Practical protections:

A sensible summary

QR codes are about as safe as links, because that is effectively what they are. The extra risk comes from two things: the destination is hidden until you scan, and physical codes can be swapped.

Both are handled by one habit, read the preview before you tap, plus a little extra caution around codes that ask for payment, codes that arrived unsolicited, and codes in unattended public places.

Codes you generate yourself carry no such risk at all. Everything made on this site is static and built in your browser, so the data is exactly what you typed, with no server or redirect in between, see our privacy policy for how that works.

QRotto

QRotto builds free browser based QR code generators and writes the guides that go with them. Every generator is verified by decoding the codes it produces and confirming the output matches the input exactly. See our editorial standards.