Reading out a 20-character Wi-Fi password to every guest gets old fast. A Wi-Fi QR code solves it: point a phone camera at it, tap the notification, and you're connected. Both iPhones (since iOS 11) and Android phones (since Android 10) support this natively, with no app required. Here's how to make one that works the first time.
Make it in a minute
- Open the QR Code Generator and choose Wi-Fi.
- Type the network name (SSID) exactly as it appears in your phone's Wi-Fi list. It's case-sensitive.
- Type the password and pick the security type. Almost every home and office network today is WPA/WPA2/WPA3; choose that unless you know otherwise.
- Tick "hidden network" only if your network doesn't broadcast its name.
- Scan the preview with your own phone before printing anything.
The generator runs in your browser, so the Wi-Fi password you type is never sent to a server. Many online QR generators can't say the same, which is a strange risk to take with the key to your network.
What's inside the code
A Wi-Fi QR code is just a line of text in a format that phones recognise:
WIFI:T:WPA;S:Cafe Guest;P:espresso42;;Tis the security type:WPA(also used for WPA2 and WPA3),WEP, ornopassfor open networks.Sis the network name.Pis the password.H:trueis added for hidden networks.- The string ends with two semicolons.
The special-character trap
Because the fields are separated by ; and labelled with :, a password containing those characters breaks the format unless they're escaped with a backslash. The characters that need escaping are \, ;, ,, : and ". A password like pa;ss:word has to be written as pa\;ss\:word.
Get this wrong and the phone shows a "join network" prompt that silently fails with an incorrect password, which is very confusing to debug. Our generator escapes all five automatically. If you build the string yourself, don't forget them.
Printing it so people can actually scan it
- Size:a scanning distance of roughly ten times the code's width works reliably. For a card on a table, 3–4 cm is plenty. For a sign on the wall read from a couple of metres, aim for 15–20 cm.
- Contrast: dark code on a light background. Avoid light-on-dark and pastel colours.
- Quiet zone: leave a blank margin around the code at least four modules wide. Don't let a frame or text touch it.
- Format: download SVG for printing. It stays sharp at any size.
- Label it: "Scan to join our Wi-Fi", and print the network name and password in text underneath for laptops and older phones that can't scan.
- Glossy surfaces: laminated or glossy prints can reflect overhead lights straight into the camera. Matte paper scans more reliably.
Security: think before you post it
Anyone who scans the code has your password, and anyone who photographs it can share it. That's fine for a café or a holiday rental. For a home or office, a few precautions help:
- Use a guest network. Most routers can create one that is isolated from your own devices. Put the guest network's details in the QR code, not your main one.
- Change the password when needed, for example after a rental season or when staff leave, and print a new code. Since the code is static, it simply stops working when the password changes.
- Don't post it publicly online or in windows facing the street unless you intend the network to be public.
Troubleshooting
| Problem | Likely cause |
|---|---|
| Camera doesn't react at all | Code too small, too blurry, low contrast, or no quiet zone. On older Androids, QR scanning may need to be enabled in camera settings. |
| "Unable to join network" | Wrong password, SSID typo or wrong case, or an unescaped special character. |
| Joins, but no internet | Not a QR issue. Check the router, or whether the guest network has internet access enabled. |
| Works on iPhone, not on an old Android | Android 9 and earlier need a QR scanner app (Google Lens works). |