How QR codes work, and the two second check that keeps you safe when you scan one
A QR code is just a web address printed as a pattern of squares, which is why scammers can paste their own over a real one. Learn how QR codes work and one habit that stops QR code scams.

In short: before you open any link from a QR code, read the web address your phone shows in the preview. If the code is a sticker on a parking meter, or arrived in a text or email you were not expecting, do not use it at all. Type the official address or use the official app instead.
How a QR code works, in plain words
A QR code is a way of writing text as a picture. Instead of letters, it uses a grid of small black and white squares. Most of the time the text it holds is a web address, but it can also be a Wi-Fi password, a phone number or a ticket.
When you point your phone's camera at it:
- The camera finds the three large squares in the corners. DENSO WAVE, the Japanese company that developed the QR code, says these position markers let a code be read quickly from any direction.
- The phone decodes the pattern of small squares back into text.
- If the text is a link, the phone shows a preview of the address and offers to open it.
QR codes hold far more than a traditional barcode. DENSO WAVE says one code can hold up to 7,089 characters, and it has error correction, so a code can still be read when part of it is dirty or torn.
The important part for your safety: a QR code is only as trustworthy as whoever printed it. You cannot tell by looking at the squares where it leads.
How QR code scams work
Because a QR code hides the address until you scan it, scammers use them in two main ways, according to the US Federal Trade Commission (FTC):
- Stickers over real codes. People have reported scammers covering the legitimate QR codes on parking meters with their own. The fake code leads to a lookalike payment page that takes your card details, your money, or both.
- Codes in unexpected messages. A text or email includes a QR code and a story: a package could not be delivered, there is a problem with your account, or someone noticed suspicious activity and you must change your password. The FTC says these are lies meant to rush you.
Either way, the code can lead to a spoofed site that looks real and records whatever you type, or try to get you to download malware.
The habit: read before you open
Make this automatic whenever you scan:
- Read the address in the preview. Many phone cameras show the link before opening it. Look for misspellings, swapped letters and odd endings. The FTC recommends this check every time.
- Ask whether the code belongs there. A code taped onto a sign, a meter or a menu is a warning sign. Run a finger over it: a sticker on top of a printed code should make you stop.
- Never scan codes from unexpected messages. If the message might be real, contact the company through its app or a website you type yourself.
- For payments, skip the code. Use the parking operator's official app, or type the web address printed on the sign.
If you already scanned a bad code
The FTC's advice:
- Do not interact with the site or anyone you reach through it.
- Change your password right away if you entered one, and change it anywhere else you used the same password.
- Review your card and bank statements for charges you did not make.
- Report it at ReportFraud.ftc.gov.
If something downloaded or your phone starts acting strangely afterward, follow our guide on how to tell if your phone has malware and remove it.
Make a slip less costly
Keep your phone's software updated, which the FTC also recommends, and protect important accounts with strong passwords and two factor authentication. A password manager helps here too, because it will not fill your password into a fake site. QR code scams are a form of phishing, so the warning signs in how to spot a phishing email or text apply here as well. And do not be reassured by a padlock on the page: our hint on what HTTPS and the padlock really mean explains why scam sites show one too.
Curious what happens when you tap the link? Our hint on how a touchscreen knows where your finger is explains the screen side of your phone.
Frequently asked questions
How does a QR code work?
A QR code stores information, usually a web address, as a grid of black and white squares. Your phone's camera reads the pattern, decodes it back into text, and offers to open the link. The three large squares in the corners let the camera read it from any angle.
Can scanning a QR code hack my phone?
Scanning alone only reads text. The risk comes from what you do next: the link can lead to a fake website that steals your password or payment details, or to a download that installs malware. Check the link preview before you open it.
How do I know if a QR code on a parking meter is fake?
Look for a sticker placed over the original code, and check the web address in your phone's preview for misspellings. Safer still, pay through the parking operator's official app or a website address printed on the meter that you type yourself.
What should I do if I scanned a bad QR code?
Do not interact with the site. If you entered a password, change it everywhere you use it. Check your card and bank statements for charges you did not make, and report it at ReportFraud.ftc.gov in the US.
Why can a QR code still work when it is dirty or damaged?
QR codes have built in error correction. DENSO WAVE, the company that developed the QR code, says data can be restored even when up to 30% of the code's data units are damaged.