What's inside a Wi-Fi QR code
A Wi-Fi QR code holds one short line of text in a format phone cameras recognize. For a network called HomeNet with the password correct-horse-battery, the whole code reads WIFI:T:WPA;S:HomeNet;P:correct-horse-battery;; (the two semicolons at the end are part of the format). When a guest scans it, the phone reads the network name and password and offers to join, so nobody has to squint at a router sticker or spell out a password letter by letter.
| Field | Meaning | Example |
|---|---|---|
| T | Security type: WPA, WEP or nopass | T:WPA |
| S | Network name (SSID) | S:HomeNet |
| P | Password, left out for open networks | P:correct-horse-battery |
| H | Added as H:true for a hidden network | H:true |
Five characters have special meaning in this format: backslash, semicolon, comma, colon and double quote. If your network name or password contains one, it needs a backslash in front. The generator adds these automatically: a network named Cafe;Guest is written as S:Cafe\;Guest inside the code.
Choosing the right security type
Match the security setting to what your router uses. You'll find it in the router's admin page or app, usually under wireless or Wi-Fi settings. Most home and small-office routers today use WPA2 or WPA3.
| Router setting | Choose | Notes |
|---|---|---|
| WPA2-Personal, WPA3-Personal or a mixed mode | WPA / WPA2 / WPA3 | The right choice for nearly every network |
| WEP | WEP | An outdated standard with well-known weaknesses; switch the router to WPA2 or WPA3 if you can |
| Open (no password) | None | Anyone in range can join; traffic isn't encrypted |
| Enterprise (asks for a username too) | Not supported | Campus and office logins need a different setup |
If your router is set to WPA3 only, some older phones and laptops can't join at all, with or without a QR code. A WPA2/WPA3 mixed mode lets older devices connect while newer ones use WPA3.
Getting the network name and password exactly right
Network names and passwords are case-sensitive, and spaces count. “HomeNet” and “homenet” are different networks, and a password with a trailing space won't work. The most reliable way to get the name right is to copy it from the Wi-Fi list on a phone that's already connected.
- Watch for look-alike characters on router stickers: 0 and O, 1, l and I, 5 and S.
- Many dual-band routers show two names, such as Home-2G and Home-5G. Make a code for the one guests should use, or one for each.
- Tick Hidden network only if the name doesn't appear in the Wi-Fi list. Hiding a network doesn't make it meaningfully more secure.
- Changed the password? The old code stops working, so print a fresh one the same day.
Placing and testing the code
Put the code where people actually stand when they ask for the password: by the door, on the fridge, on the reception counter. Avoid glossy laminate under bright lights, since glare can hide part of the code. Matte finishes scan more reliably.
Test with both an iPhone and an Android phone before you laminate anything. Current camera apps on both recognize Wi-Fi codes; very old phones may need a separate scanner app. If a phone reads the code but fails to connect, the problem is almost always the details, not the code: check the name, password and security type again. For a general guide to sizing and contrast, see the main QR code generator.
Hosting a wedding, workshop or conference? Print the Wi-Fi code on the table cards or the back of the program. Guests scan it once, and nobody has to queue at the front desk asking how to spell the password.