A WiFi QR code carries its password in plain text — that is how the join flow works, and it means the password is always recoverable from the pattern itself. Whether you need it because a device refuses the automatic join, because you want to type the password into something without a camera, or because you are documenting a network you administer, there are three ways to pull it out, in escalating order of effort: scan the code and read what the phone shows, decode a saved image of the code, or parse the underlying payload directly. One boundary applies to all three: extract credentials only from codes you own or are authorized to use — a code hands you what it carries, but using someone's WiFi without permission is trespass, not decoding.
Which Method When
| Situation | Use |
|---|---|
| Standing in front of the code, joining now | Method 1 — camera scan |
| Code is a photo, screenshot, or attachment | Method 2 — decode the image |
| Password must be read, not just used | Method 3 — read the grammar |
| Extracted password fails to join | Verification section — three failure modes |
Method 1: Scan It With a Phone Camera
The fastest path uses the reader already in your pocket. Point a current phone's camera at the code: on iPhone, the join card appears naming the network, and tapping it joins without ever displaying the password; on Android, the camera or Google Lens recognizes the code and offers the same join flow. The catch is that the password stays masked in this path — the phone wants to join, not to show. The workaround is Google Lens: point Lens at the code (or open it from Photos) and on most current builds the underlying text appears in the results before you tap anything, WIFI string and all. Behavior varies by Android build and app version, so if your Lens shows only the join button, move to Method 2, which works everywhere. Confirm the network name on the prompt matches the network you expect before joining — a sticker swapped over a real code can offer an attacker's hotspot instead, per the FTC's QR scam guidance.
Method 2: Decode a Saved Image of the Code
When the code is already a photo, a screenshot, or a message attachment — or when Method 1 refuses to reveal the text — decode the image instead. Three routes, all no-install: Google Lens run on the picture from your gallery, Live Text on iOS 15 and later (open the photo, tap the code), or a browser-based decoder where you upload the image and the raw payload comes back as text. The upload route is the most reliable of the three because a decoder returns the complete string untouched, passwords included; gallery tools sometimes show the parsed join card instead. If you are doing this on a laptop with no QR content in sight, photograph the code with your phone and send the image to the computer — the screenshot-decoding guide covers the gallery and upload paths in detail. A word of realism: heavily compressed or cropped images can refuse to decode, so save the original rather than a re-sent thumbnail.
Method 3: Read the Payload Grammar Yourself
Every WiFi QR code encodes one line of text in a fixed grammar, and once you can read it, no tool is needed — just eyes. The string starts with WIFI: and carries the settings as fields:
WIFI:T:WPA;S:Riverside-Guest;P:rooftop-42;;
Reading it field by field: T:WPA is the security type, S:Riverside-Guest is the network name (SSID), and P:rooftop-42 is the password — the double semicolon closes the string. The two quirks that matter: passwords containing punctuation (; , : \) are stored with backslash escapes, so a stored P:abc\;123 joins with the password abc;123, and hidden networks add an H:true field. If a decoded password looks wrong at a glance — cut at a semicolon, backslashes left in — you are looking at an unescaped or mis-escaped payload, which is exactly the failure the escaping probes on the sample WiFi test codes page demonstrate. Making your own codes for comparison is free — the WiFi QR creation guide walks the generator path.
Verify Before You Rely on It
Extraction is only half the job; the result needs one check. Join with the extracted password on the device you actually care about — that is the whole test — and watch for the three ways a correctly extracted password still fails: the escape quirk above, a password rotated since the code was printed (codes are static; the wall version outlives the password it was made for), and a hidden-network flag that leaves the SSID invisible until you type it manually. When the join fails after a clean extraction, the QR troubleshooting ladder separates code problems from device problems in a couple of minutes.
Remember where extractions usually get used: the devices that cannot scan at all. Smart TVs, game consoles, printers, and streaming sticks all take WiFi credentials the slow way — an on-screen keyboard and a settings menu — which is exactly why the password matters as text rather than as a join prompt. Type the SSID with the same care as the password; network names are case-sensitive, and a capital letter missed in the SSID fails the join exactly like a wrong password would.
Owner-Side Notes
If the code you are extracting from is your own, the exercise doubles as a security review. The password rode the pattern in the clear, so anyone who photographed the wall has it too — rotate guest passwords on a schedule and reprint, keep the main network's credentials off printed codes entirely, and give guests the guest network rather than the one your printers live on. For shared spaces, the printed code is a convenience with a rotation cost: cheap to reprint, worthless to an attacker the week after the password changes.
Frequently Asked Questions
Is it legal to extract WiFi passwords from QR codes?
Decoding a QR code you can legitimately photograph is not illegal in itself — the payload is plain text by design. The legal line is authorization: joining or using a network you are not permitted to use is unlawful in most places regardless of how you learned the password. Extract from your own codes, your employer's documented networks, or codes a host explicitly offers to guests, and stop there.
Can WiFi QR codes be hacked or contain malware?
The WiFi payload itself carries no executable content — it is a network name, a security type, and a password, nothing that runs. The realistic risks are misdirection and interception: a swapped sticker that joins you to an attacker's open hotspot, or a malicious network name crafted to imitate a real one. Verify the SSID on the join prompt, prefer WPA networks over open ones, and treat public WiFi codes with the same caution as any link from a stranger.
What's the most secure way to share WiFi access?
A QR code of a guest network with scheduled password rotation. The code makes joining one-tap for guests, the guest boundary keeps visitors off your main devices, and rotation bounds the damage of any password that leaks — which extraction makes vividly possible. Never print the primary network's credentials, and reprint after staffing changes at venues where the code hangs in public.
How do I create my own WiFi QR code?
Feed a generator the three facts about the network — SSID, password, security type — and download the code; no account is needed for a static code. Mind the escaping if the password contains punctuation, and run the two-phone test before taping it to a wall. The full workflow, including the router-generated option and print sizing, is in the WiFi creation guide linked above.
What if the extracted password doesn't work?
Work the three failure modes in order. Check escaping first — a password cut at a semicolon or carrying stray backslashes was mis-parsed, and the raw string from a decoder tells you which. Then check the age of the code: a rotated password makes a correctly extracted one stale, so ask the owner or use the current code. Finally, check the network itself: a hidden SSID needs manual entry, and a full-strength signal beats a marginal one for the join attempt. If every extracted character is right and the join still fails, the problem is the device, not the code.
Wrap-Up
Three methods, one principle: the password never leaves the pattern. Scan when you can join on the spot, decode an image when you need the text, and read the grammar when you need certainty about what the code actually says — escaping quirks and all. Keep the authorization line firm, verify every extraction with a real join attempt, and if you administer the network on the other side, rotate what you print. The code is only as current as the last reprint, and that is a feature you control.