Guide · Wi-Fi
Wi-Fi QR codes: how they work and how to get them right
A Wi-Fi QR code holds three things: the network name, the security type and the password. A phone camera reads them and offers to join, with no typing. It is one of the simplest QR codes there is, and nearly every failure comes down to a special character, a changed password or the wrong security setting.
By the Artqode team · Updated · 5 min read
What is written in a Wi-Fi QR code
There is a widely used text format for Wi-Fi codes that phone cameras understand. It looks like this:
WIFI:T:WPA;S:Cafe Guest;P:flat-white-2026;;
| Field | Meaning | Values |
|---|---|---|
T | Security type | WPA for WPA, WPA2 and usually WPA3; WEP for very old routers; nopass for an open network |
S | Network name (SSID) | Exactly as the router broadcasts it, capitals included |
P | Password | Left out for an open network |
H | Hidden network | true if the network does not broadcast its name |
The fields can come in any order, and the text ends with two semicolons. A generator writes all this for you. It helps to know the format when something goes wrong.
The special-character trap
Semicolons, colons and commas have a meaning in that format. If your password contains one, it must be escaped with a backslash, or the phone will cut the password short and fail to join.
| Character in name or password | Written in the code as |
|---|---|
; | ; |
: | \: |
, | \, |
" | \" |
\ | \\ |
So the password p;ss:word is stored as p;ss\:word. A proper generator does this automatically. Codes typed by hand, or made with a plain-text QR tool, are where this usually goes wrong.
Making one, step by step
Find the exact network name
Copy it from your router's settings page or the label on the router. A name with a trailing space or different capitals is a different network as far as a phone is concerned.
Pick the security type
Almost every home and cafe router today uses WPA2 or WPA3, and both use the
WPAsetting in the code. Choose "none" only if the network truly has no password.Enter the password and generate
Use the Wi-Fi QR code generator. The code is assembled in your browser.
Test with a phone that has never joined
A phone that already knows the network proves nothing. Borrow one that does not, or tell yours to forget the network first.
Is a Wi-Fi QR code safe?
It is exactly as safe as writing the password on a card, because that is what it is. The password sits in the code as readable text. Anyone who can scan the code can read the password, and a photo of the code is as good as the code.
- Use a guest network. Most routers can run a second network that reaches the internet but not your own devices. Put that one in the code.
- Keep it indoors. A code in the window shares your Wi-Fi with the whole street.
- Change the password now and then, and reprint. The old code stops working the moment you do.
- Do not post it online. A code in a photo on social media can be scanned from the photo.
WPA2, WPA3 and older routers
For WPA2, the format above is well established. For WPA3 the picture is less tidy: sources do not fully agree on how a WPA3-only network should be written, and phones differ. The common advice is to keep WPA as the type, and that works on many set-ups.
If your router is set to WPA3 only and the code will not join, switch the router to its mixed WPA2/WPA3 mode if it has one, and test again. Older phones can then join as well.
Office networks that give each person a username and password use a different system (often called enterprise Wi-Fi). A simple shared-password code is not designed for those.
When the code will not connect
| What happens | Likely cause | Fix |
|---|---|---|
| Phone says the password is wrong | Password changed, or a special character was not escaped | Remake the code with the current password |
| Phone cannot find the network | Name typed differently, or a hidden network without the hidden flag | Copy the name exactly; tick hidden if it applies |
| Phone shows text and no Join button | The code was made as plain text | Remake it as a Wi-Fi code |
| Nothing happens at all | Code too small, glare, or low contrast | Print larger on matte paper; see the size guide |
| Joins, then no internet | The router or the connection, not the code | Restart the router or check with your provider |
Size and contrast problems are covered in why a QR code won't scan. For a cafe or shop, QR codes for restaurants and shops shows where the Wi-Fi card fits beside the menu and payment codes.
Questions people ask
How do I connect to Wi-Fi with a QR code?
Open the camera on your phone, point it at the code, and tap the prompt that offers to join the network. On current iPhones and Android phones the built-in camera handles it.
Can someone get my Wi-Fi password from the QR code?
Yes. The password is stored in the code as plain text, and many scanner apps display it. Share a Wi-Fi code only with people you would give the password to.
Does a Wi-Fi QR code stop working?
Only when the details inside it change. If you rename the network or change the password, the old code no longer matches and you need a new one.
Can I make a Wi-Fi QR code without an app?
Yes. A browser-based generator is enough. Many phones can also show a QR code for the network they are connected to, from the Wi-Fi settings screen.
Do Wi-Fi QR codes work for hidden networks?
Yes, if the code includes the hidden flag. Without it, a phone may look for a broadcast name, fail to find one and give up.
Make yours. It takes about a minute.
Static codes are free forever. No sign-up to make one. They never expire. Scanners never see an ad.
Built in your browser. No password is sent to us to make it.
