The exact format inside the code
Pattern:
WIFI:T:<WPA|WEP|nopass>;S:<network name>;P:<password>;H:true;; Example:
WIFI:T:WPA;S:Maple Street Guest;P:sunny-porch-42;; The MECARD-style Wi-Fi format catalogued on the ZXing wiki, with backslash escaping for special characters.[1] H:true is added only for hidden networks.
The guest network, minus the sticky note
Every coffee shop, rental and dental office has the same little ritual: someone asks for the Wi-Fi, someone else spells out a password with a zero that might be an O. A Wi-Fi QR code skips it. People scan, their phone asks whether to join the network, and they tap once.[2]
Good places for one:
- Vacation rentals — in the welcome binder and on the fridge.
- Waiting rooms, salons and cafés — on a counter card or table tent.
- Offices and coworking spaces — at reception for visitors, not staff.
- Your own home — a framed card on the guest-room nightstand beats texting the password every holiday.
What's inside the code
The code holds a short line of text in a format first proposed by the ZXing project and now understood by phone cameras:[1]
| Field | Meaning | Example |
|---|---|---|
T: |
Security type: WPA for any WPA, WPA2 or WPA3 password, WEP for very old routers, nopass for an open network |
T:WPA |
S: |
Network name (SSID), exactly as your router broadcasts it | S:Maple Street Guest |
P: |
Password; left out for open networks | P:sunny-porch-42 |
H: |
true only if the network is hidden |
H:true |
The fields end with a double semicolon. Special characters inside a name or password — backslash, semicolon, comma, double quote and colon — get a backslash in front of them so they can't be mistaken for separators.[1] You'll see that in the "What's inside" box if your password has any.
Two details we handle quietly: the field order doesn't matter to readers, so we keep a consistent T, S, P order;[1] and if your password is made only of hex digits (0–9, A–F), we flag it, because some readers may treat a string like that as a raw key rather than a passphrase.[1]
Security: think about who can see the card
A Wi-Fi code is a password in a different font. Anyone who can photograph it can join. That's fine for a guest network and a bad idea for the network your work laptop or security cameras use.
- Put guests on a guest network. Most home and small-business routers can run one alongside your main network.
- Don't post the code where passers-by can scan it — a window facing the street, a public flyer.
- Change the guest password now and then, and print a fresh card when you do.
Because CTQR builds the code inside your browser, the network name and password never travel to us. There's no account and no log; when you close the tab, they're gone.
Getting the network name exactly right
Most "it won't connect" problems come down to the network name. It must match character for character, including capitals, spaces and any trailing characters your router adds, such as "-5G". Copy it from your phone's Wi-Fi list rather than from memory. Then test the printed card on both an iPhone and an Android phone before you laminate a stack of them.
Frequently asked questions
Is my Wi-Fi password sent to CTQR?
No. The code is generated by JavaScript running in your own browser tab. There's no server step — you can load this page, switch off your internet connection, and the generator still works.
Which phones can join from a Wi-Fi QR code?
Android phones and iPhones running iOS 11 or later understand this format.[2] Older phones may need a scanner app, or may only show the text.
My network uses WPA3. Which option do I choose?
Choose WPA / WPA2 / WPA3. The format uses a single WPA value for password-protected networks, and the phone negotiates the actual security mode when it connects.[1]
What if my password has a semicolon or quote in it?
That's handled. Backslash, semicolon, comma, double quote and colon are each escaped with a backslash, so a password like pa:ss;word still reads correctly.[1]
Will the code stop working if I change the password?
Yes. The password is written into the code, so a new password means a new code. Reprinting a card is a small price for never reading a password aloud again.
Sources
- ZXing project wiki. Barcode Contents.
- Wikipedia. QR code.