Wi-Fi QR code generator
Scanning this kind of code joins the network without anyone typing a password. Useful for cafés, waiting rooms, offices and holiday lets.
Your password stays in your browser
This matters, so it is worth being precise. The code is generated entirely on your device using JavaScript. The network name and password are never sent to our servers, never logged, and never stored. You could disconnect from the internet after loading this page and it would still work.
How the code actually works
There is no server involved at scan time either. A Wi-Fi QR code encodes a short string in a format both iOS and Android understand:
WIFI:T:WPA;S:NetworkName;P:ThePassword;;
T is the security type, S the network name, P the
password. The phone reads it and offers to join. Because the credentials are in the
pattern, anyone who photographs the code has your Wi-Fi password — which is fine for
a guest network and a bad idea for your main one.
One detail that breaks a lot of generators: if your password contains
\, ;, ,, : or ", those
characters must be escaped or the field ends early and the phone tries to join with the
wrong password. We escape them correctly.
Practical advice
- Use your guest network, not the one your point-of-sale terminal is on.
- Check the network name exactly, including capitals and spaces. It must match what appears in the Wi-Fi list character for character.
- Choose the right security type. WPA covers WPA, WPA2 and WPA3. Pick "no password" only for genuinely open networks.
- Print it at 30mm or larger for a table card. Wi-Fi codes hold more data than a short URL, so the pattern is denser and benefits from size.
- Laminate it. A card on a café table has a hard life, and a worn code is a code that stops scanning.
If you change the password
You will need a new code — the credentials are baked into the pattern. That is the trade-off for it working without any account or service behind it. If you rotate the guest password often, consider a dynamic code pointing at a page on your own site that displays the current credentials instead.
Does this work on iPhone and Android?
Yes. The native camera app on iOS 11+ and Android 10+ both recognise the format and offer to join. Older Androids may need a QR app.
Can someone steal my Wi-Fi password from the code?
Yes — anyone who can photograph the code can decode the password. Use a guest network, and do not put the code anywhere visible from outside.
Does it work with hidden networks?
Yes, with the hidden flag set. The network name must still be exactly right.