Wi-Fi QR code generator
There is no protocol behind a Wi-Fi QR code. Inside the square sits one line of text — WIFI:T:WPA;S:Cafe Guest;P:latte-2026;; — and the camera recognises it by the first five characters and the two semicolons that close it off. Android has been writing that same line out of its own network settings since Android 10, which is why a code made here and a code made by a phone are the same thing.
296 × 296 px in the PNG
Where it is used
- A guest network printed on a card by the till, so nobody has to read an eighteen-character password out loud across a busy room
- Holiday lets and spare rooms, where a card taped inside the cupboard door survives the handover better than a line in a booking message
- Meeting rooms on a monthly password rotation: reprinting one card costs less than teaching forty people the new one
How it compares
The competition is the sharing screen already built into the phone, and where it works it wins: Android 10 and later, and iOS between two people who have each other in their contacts, hand the network over device to device with nothing printed at all. It stops working the moment the guest is a stranger, the host has gone home, or the password has to reach forty people before ten in the morning. One-to-many and asynchronous — that is the entire niche a printed code occupies. The string is identical either way; there is no separate print format and nothing is lost by generating it here rather than on the router.
Common mistakes
- Treating the square as though it hid the password. It does not. The string inside is plain text with no encryption anywhere in the format, and anyone who photographs the card on the way past can read the password out of it with a free scanner app. Put the code where you would be content to print the password itself.
- Leaving the security type on WPA/WPA2 for a network that has no password at all. The tag tells the phone to expect a handshake that never comes, and the failure usually arrives worded as a wrong password rather than a wrong type. Open network is a separate choice for exactly this reason, and picking it drops the password field out of the string entirely rather than sending an empty one.
- Forgetting the hidden-network box. When the router does not broadcast its name there is nothing in the air for the phone to match the S: field against, and it will hunt for a network it cannot see. The H:true flag is what tells it to ask for the name directly instead.
- Expecting it to cover a corporate network with individual logins. Anything running 802.1X — a username, a certificate, a RADIUS server behind it — has no representation in the WIFI: string that phones read reliably, and this form does not pretend otherwise.
Frequently asked questions
- Does the password go anywhere when I make the code?
- No. The string is assembled and the symbol is drawn inside the page you already have open, and nothing about the network is sent to a server — there is no request that would carry it. The exposure is the card you print, not the generator.
- What does the string actually look like?
- WIFI:T:WPA;S:network name;P:password;; — security type first, then the name, then the password, closed by two semicolons, with H:true inserted before them for a hidden network. Colons, semicolons, commas, backslashes and quotation marks inside the name or the password are escaped with a backslash, because an unescaped semicolon in a password would end the field early and the phone would try to join with half of it. A name made up only of hex digits gets wrapped in quotation marks on top of that: the format also allows a name to be written as hex bytes, so ABBA without quotes decodes to two bytes rather than four letters.
- Why does the code scan but the phone still not connect?
- Roughly in order of how often it happens: the password picked up a trailing space from wherever it was pasted; the security type does not match what the router runs; the network is hidden and the box was left unticked; or it is a captive-portal guest network, in which case the phone has joined perfectly well and is waiting for somebody to open the sign-in page in a browser.
- Should I choose WEP?
- Only if the router genuinely still runs WEP, which by now means hardware old enough to be a problem in its own right. The option exists because those routers are still sitting in stock rooms and workshops. If you have any say over the network rather than just over the card, change the network instead.
- Does this work on an iPhone?
- Yes, from iOS 11 onwards with the stock Camera app: point it at the code and a banner offers to join. Android reads the same codes and, since Android 10, produces them — the QR behind Share in the Wi-Fi settings is that identical WIFI: line.