About this tool
Enter your network name, security type and password to generate a QR code that joins Wi-Fi when scanned, including hidden networks. Print it for a café, office or rental so guests do not have to type the password.
Typical uses
- Display a scan-to-connect code in a café or restaurant
- Prepare a Wi-Fi card for rental guests
- Share an office guest network quickly
How to use
Fill in the SSID, security and password; optionally reveal the password or mark a hidden network.
Inspect the preview, adjust output settings and download PNG or SVG.
The code contains connection credentials. Size: 256–2048 px, with at least four quiet-zone modules. Wi-Fi QR support varies between receiving devices.
What the code actually contains
A Wi-Fi QR code is just a line of text; a phone offers to join the network when it recognises text that starts with WIFI:. The tool writes the format documented by the ZXing project: T is the security type (WPA, WEP or nopass), S the network name, P the password, and H:true marks a hidden network. Each field ends with a semicolon and the whole string ends with one more. ZXing notes that field order does not matter; the tool always writes T, S, P, H.
| Network name | Password | Security | Hidden | Text written |
|---|---|---|---|---|
| CafeGuest | latte2024 | WPA/WPA2/WPA3 | No | WIFI:T:WPA;S:CafeGuest;P:latte2024;; |
| Bob's "Lab" | a;b,c:d\e | WPA/WPA2/WPA3 | No | WIFI:T:WPA;S:Bob's \"Lab\";P:a\;b\,c\:d\\e;; |
| Lobby | — | Open network | Yes | WIFI:T:nopass;S:Lobby;H:true;; |
| Office | 12345 | WEP | No | WIFI:T:WEP;S:Office;P:12345;; |
| 咖啡店 5G | Mocha-2024! | WPA/WPA2/WPA3 | No | WIFI:T:WPA;S:咖啡店 5G;P:Mocha-2024!;; |
- Under “Security”, WPA/WPA2/WPA3 is written as T:WPA. The enterprise type ZXing also documents, WPA2-EAP (networks that need a user name or certificate), is not offered.
- With “Open network” the password field is hidden and anything typed earlier is left out of the code: WIFI:T:nopass;S:Lobby;;.
- H:true is written only when “Hidden network” is ticked. A hidden network does not broadcast its name, so the name must match exactly, including case and spaces.
- Name and password are written exactly as typed; leading and trailing spaces are kept. “ Lobby ” and “ pw ” give WIFI:T:WPA;S: Lobby ;P: pw ;;. Watch for stray spaces when pasting a password from elsewhere.
How special characters are escaped
Semicolons, colons and a few other characters have a meaning in the format, so when they appear in a name or password they get a backslash in front. The second table row shows it: the name Bob's "Lab" and password a;b,c:d\e become WIFI:T:WPA;S:Bob's \"Lab\";P:a\;b\,c\:d\\e;;, which adds 6 escape bytes to the code.
| Character | Written as | Listed by ZXing |
|---|---|---|
| \ | \\ | Yes |
| ; | \; | Yes |
| , | \, | Yes |
| " | \" | Yes |
| : | \: | Yes |
| ' | ' | No (written unchanged) |
- ZXing lists the backslash, semicolon, comma, double quote and colon as characters to escape. The apostrophe (') is not a separator, so the tool writes it unchanged, without a backslash.
- ZXing also suggests wrapping a name or password in double quotes when it could be read as hexadecimal (only 0–9 and A–F, such as "ABCD"). The tool does not add quotes; it writes the value as typed, so test such names and passwords before printing.
- Non-ASCII characters are written as UTF-8; a Chinese character, for example, takes 3 bytes.
Content length and code size
Wi-Fi text is usually a few dozen bytes, which at the default level M means version 3 to 6. “Error correction” under “Export settings” offers L, M, Q and H; higher levels survive more damage but need more modules for the same text:
| Network name | Bytes | L | M | Q | H |
|---|---|---|---|---|---|
| CafeGuest | 36 bytes | 3 · 29×29 | 3 · 29×29 | 4 · 33×33 | 5 · 37×37 |
| Bob's "Lab" | 44 bytes | 3 · 29×29 | 4 · 33×33 | 4 · 33×33 | 5 · 37×37 |
| 咖啡店 5G | 41 bytes | 3 · 29×29 | 3 · 29×29 | 4 · 33×33 | 5 · 37×37 |
| Home WiFi | 90 bytes | 5 · 37×37 | 6 · 41×41 | 8 · 49×49 | 9 · 53×53 |
- The 63-character password in the last row brings the text to 90 bytes, 41 × 41 modules at M instead of 29 × 29 for an ordinary password, so it needs a larger print.
- For a code on a wall or table card, keep the default M or choose Q. Versions, module counts and print sizes are explained on the QR code generator page.
- For a Wi-Fi code with colours or a logo, copy the text generated here into the text mode of the QR code designer.
No code appears? Checks before printing
| Input | Result |
|---|---|
| Name empty or only spaces | No code; the preview shows “Enter content to generate a QR code” |
| WPA or WEP without a password | No code, as above |
| “Open network” selected | Only the name is needed; no P field is written |
| Special characters in name or password | Escaped automatically, see above |
- After downloading the PNG, read it with the QR image decoder. You should see the full WIFI: text; check the name and password character by character.
- Then scan it with the phones that will actually connect. Support for Wi-Fi QR codes is not identical across devices.
- The password is stored in plain text, so anyone who photographs the code can read it. When you change the router password, the old code stops working and must be regenerated and reprinted.
Sources
Frequently asked questions
Does it work on Android and iPhone?
Most recent phone cameras support Wi-Fi QR codes, but some devices or OS versions may not. Test with the phones your guests use.
Is my password safe?
The code contains the password in plain text, so anyone who sees it can connect. Generation is local and the password is not uploaded.
Which security types are supported?
WPA/WPA2/WPA3, WEP and open networks, plus a hidden-network option.
Suggest an improvement to this tool
Missing an option, something awkward to use, or a wrong result? Let us know.