Generator / Format
Wi-Fi QR code format
A Wi-Fi QR code is one line of text: WIFI:T:WPA;S:name;P:password;; Fill in your network below to get the exact string, escaped and ready to copy.
Template, escaped and ready to paste
WIFI:T:WPA;S:NetworkName;P:password;;
Built in your browser; nothing is sent anywhere.
The fields
| Field | Meaning | Values |
|---|---|---|
T: | Security type | WPA, SAE, WEP, nopass |
S: | Network name (SSID) | Up to 32 bytes, escaped. Required. |
P: | Password | Escaped. Omit for open networks. |
H: | Hidden network | true, or leave it out |
The string starts with WIFI:, each field ends with ;, and the whole thing ends with an extra ;. Field order doesn't matter to iPhone or Android. The format began in the open-source ZXing barcode library around 2010 and is now also written into the Wi-Fi Alliance's WPA3 specification, which added the SAE type plus optional fields like R: (transition disable) and I: (identity) that most people never need.
Security types in practice
| Router setting | Use T: |
|---|---|
| WPA2-Personal (AES) | WPA |
| WPA2/WPA3 mixed or "transition" | WPA |
| WPA3-Personal only | SAE (older phones may also accept WPA) |
| WPA (TKIP), very old | WPA |
| WEP | WEP (insecure; upgrade if you can) |
| Open / none | nopass |
WPA2-Enterprise (username + password, 802.1X) is not supported by camera apps' Wi-Fi codes on most phones, so this site doesn't generate it.
Ready-made examples
| Network | String |
|---|---|
| WPA2 home network | WIFI:T:WPA;S:Home;P:correct-horse-42;; |
| WPA3-only router | WIFI:T:SAE;S:Studio;P:lantern-quay-9;; |
| Open café network | WIFI:T:nopass;S:Cafe Guest;; |
| Hidden network | WIFI:T:WPA;S:Attic;P:rafters-and-owls;H:true;; |
| Name with a semicolon | WIFI:T:WPA;S:Bar\;Grill;P:tapas-2026;; |
The passwords are made up. The template people search for, WIFI:S:;T:;P:;;, is the same thing with the fields in another order.
Escaping: the bug behind "Unable to join"
Because ; ends a field and : separates a field's name from its value, a password like pa:ss;word would break the string. The fix is to put a backslash before five characters whenever they appear in the name or password:
| Character | Write it as |
|---|---|
\ backslash | \\ |
; semicolon | \; |
, comma | \, |
: colon | \: |
" double quote | \" |
Backslashes are escaped first so an existing one isn't doubled twice. Our generator does this automatically, and a test suite round-trips every awkward combination through a real QR decoder before each release.
Try it: escaping lab
Type a network name and a made-up password with awkward characters. Untick escaping and watch the phone's reading fall apart.
String inside the QR code 4 escaped
WIFI:T:WPA;S:Bar\;Grill;P:pa\:ss\,word\"1;;
What a phone reads
| Name | Bar;Grill |
|---|---|
| Password | pa:ss,word"1 |
✓ Matches what you typed. Guests will connect.
A parser that ignores backslashes would read the name as Bar\.
Questions
What does WIFI:T:WPA;S:;P:;; mean?
It is the empty template of a Wi-Fi QR code. Fill your network name after S: and your password after P:, for example WIFI:T:WPA;S:Home;P:secret123;; . T:WPA covers WPA, WPA2 and mixed WPA2/WPA3 networks. The order of the fields does not matter, so WIFI:S:;T:;P:;; is the same template.
How do I turn a WIFI: string into a QR code?
Paste or type the values into the builder at the top of this page, or into our generator, which encodes the string for you. Any QR generator that accepts plain text also works, as long as the special characters are escaped.
What is the Wi-Fi QR code format?
A plain-text string: WIFI:T:<type>;S:<network name>;P:<password>;H:<true if hidden>;; The fields can appear in any order and the string ends with two semicolons. It comes from the ZXing barcode project and was later adopted in the Wi-Fi Alliance’s WPA3 specification.
Which characters need escaping?
Backslash, semicolon, comma, colon and double quote. Put a backslash in front of each one inside the network name or password: a;b becomes a\;b and a\b becomes a\\b.
What goes in the T field?
WPA for WPA, WPA2 and mixed WPA2/WPA3 networks; SAE for WPA3-only networks; WEP for WEP; nopass (or leave it empty) for open networks.
Should I put quotes around the network name?
No. Old ZXing notes mention quoting names that look like hex numbers, but modern iPhone and Android scanners take the value literally, so quotes would become part of the name. This generator never adds them.
Ask the Wi-Fi QR troubleshooter
Describe what happens when you scan. Only your question goes to the AI model (via Vercel AI Gateway); your network name and password are never sent. Do not type your password here.
More Wi-Fi QR tools
- WiFi QR code generatorOne network, PNG or SVG, printable card.
- Printable WiFi signTable tents, door signs, several per sheet.
- Bulk generatorPaste a list, print every network at once.
- WiFi QR scannerRead the network and password from a code.
- iPhone guideScan and share Wi-Fi on iOS.
- Android guideScan and share Wi-Fi on Android.
- Airbnb WiFi cardGuest card for rentals and the guidebook.
- Open networksCodes for networks with no password.