What the code holds
A Wi-Fi QR code is one line of text in a format phone cameras recognise. For a home network called Smith Home with the password blue-door-42, our generator writes exactly this:
WIFI:T:WPA;S:Smith Home;P:blue-door-42;;
Tis the security type:WPA,WEP, ornopassfor an open network.Sis the network name (the SSID).Pis the password. It's left out for an open network.H:trueis added when you switch on Hidden network.
Those 40 characters make a code 29 squares wide, which is about as simple as a QR code gets and scans easily even printed small.
Names and passwords can contain characters the format uses for itself. The generator puts a backslash in front of ;, ,, :, " and \ so phones read them as part of the password. A café network Joe's Café with the password pa;ss:word comes out as:
WIFI:T:WPA;S:Joe's Café;P:pa\;ss\:word;;
Nothing in the code points at a website, so it's a static QR code. It can't be switched off by anyone, including us, and it doesn't expire. It stops working only when the network name or password changes.
Which phones join from the camera
iPhones have joined networks from Wi-Fi QR codes in the Camera app since iOS 11. Apple covered the format, along with its limits, in its QR code recognition talk for iOS 11. On Android, the camera app or Google Lens shows a prompt to connect; the exact wording depends on the phone maker.
If your guest is standing next to you, you may not need a printed code at all. Android can already show your current network as a QR code: open Settings, tap Network & internet, then Internet, tap your network and choose Share (Google's steps). A printed code earns its place when you won't be there: a holiday rental, a meeting room, a café table.
Hidden networks and iPhones
The generator can mark a network as hidden, which adds H:true; to the code. Many Android phones use that flag to look for a network that doesn't broadcast its name. iPhones don't: Apple's own talk says "Hidden SSIDs are not supported" for Wi-Fi codes.
So if your guests use iPhones, make the guest network visible and leave the hidden switch off. Hiding a network name doesn't add much protection anyway, since the password is what keeps people out.
Should your password be in a code at all
Anyone who scans the code can read the password in plain text with any QR scanner app, and can share it. Treat the code the way you'd treat the password written on a card.
For a home fridge, that's fine. For a shop, an office or a rental, set up a separate guest network on your router and put that one in the code. Your own devices stay on the main network, and you can change the guest password between bookings without touching anything else.
The code is made by your browser on your own device. The network name and password you type are never sent to us.
When a phone won't connect
Scanning works but joining fails, nearly always for one of these reasons:
- A typo in the name or password. Both are case-sensitive.
MyWifiandmywifiare different networks, and a trailing space counts as a character. - The wrong security type. Almost every router today uses WPA2 or WPA3, and both are covered by the WPA / WPA2 / WPA3 option. Pick WEP only if your router's settings say WEP.
- The password changed. The old code still holds the old password. Make a new one and replace the printed copy.
- The network is hidden and the guest has an iPhone (see above).
If the camera doesn't react to the code at all, that's a scanning problem rather than a Wi-Fi one; our guide to why a QR code isn't working goes through contrast, size and glare.
Putting it up
A code on a card by the router or in a welcome book is read from a hand's length away, so it can be small: about 2 cm across works. On a wall people read from a few steps back, it has to grow with the distance; the size calculator gives the number. Print from the SVG, which stays sharp at any size, and write "Scan to join the Wi-Fi" under the code so people know what it does before they lift their phone. Rentals and guest houses have their own placement advice in QR codes for hotels and Airbnb.