WIFI:T:WPA;S:MyNetwork;P:mypassword;;About Wi-Fi QR Code Generator
Reading out a Wi-Fi password letter by letter for guests is tedious and error-prone. This tool encodes your network name, security type, and password into a QR code locally in your browser, using the standard format phone cameras recognize (WIFI:T:WPA;S:name;P:password;;), so guests just scan to join. For example, SSID MyHome with password 12345678 produces a WIFI:S:MyHome;P:12345678;; QR code your phone can scan to join.
The code carries a configuration string with fixed fields, and field order plus escaping decide whether it is understood. It typically holds the network name, security type and passphrase joined by fixed separators, and any separator or escape character inside the name or passphrase must be escaped or parsing breaks at the wrong place. Check for special characters before generating.
Making network configuration into a code brings obvious convenience and equally obvious risk. Anyone holding the code can join the network, so printing it in a public area publishes the passphrase, and a screenshot may be forwarded beyond the intended audience. It suits low-sensitivity cases such as a guest network; keep the main passphrase out of this form.
The security type field must match the actual setting or the device connects on a wrong assumption. Different schemes map to different values, and a missing or unrecognised one leaves some devices falling back to an unencrypted assumption or failing outright, showing up as no response after scanning or a connection without internet. Confirm the actual scheme rather than the default.
A hidden network name affects usability, an easily missed detail. When the name is hidden, devices cannot discover it from broadcasts and usually need an extra attribute, which some implementations expect in a particular field position. After generating for a hidden network, scan it on the target device rather than confirming only that the text looks right.
Systems understand the content differently, which decides whether extra explanation is needed. Some offer to join the network right after scanning, some show the text first for confirmation, and some built-in cameras do not parse the structure at all without a dedicated app. Attach a short instruction, such as scanning with the camera and choosing to join, to reduce on-site confusion.
Finally, generation parameters affect the real scan rate and deserve verification before printing. Code size, quiet zone and contrast all affect recognition, and screen brightness, capture angle and lens clarity affect it further on site. After producing a batch, test once in the expected environment — light, distance and device — rather than previewing on a small screen and calling it done.
How It Works Internally
The content follows a fixed format: prefix, encryption type, network name, password and hidden flag as separate segments separated by semicolons with special characters escaped. A format error makes scanners treat it as plain text rather than a network profile, and a password containing a semicolon or colon must be escaped or it truncates. A code on a wall also means anyone can join the network.
A password containing a semicolon: ab;cdThe semicolon must be escaped, or the scanner reads it as a separator and the password truncates to abMeasured on This Page
| Payload format | WIFI:T:WPA;S:MyNetwork;P:mypassword;; — field order and the trailing double semicolon match the spec |
|---|---|
| Escaping | An SSID containing ; , : quote and backslash gets each one backslash-escaped: My;Net,work:"x"\y becomes My\;Net\,work\:\"x\"\\y. Miss any escape and the scanner treats the semicolon as a field separator and drops the rest |
| nopass | Choosing no encryption omits the P field entirely rather than emitting an empty password, which some scanners read as a blank-password network |
| Hidden | H:true is added only when the network is marked hidden (not by default, since it hurts compatibility) |
| Encoding | UTF-8 throughout, so Chinese SSIDs scan fine (the convention requires UTF-8) |
These five must-escape characters are the classic wifi-QR trap: the semicolon is the most common, since plenty of SSIDs read like 'Company WiFi;Guest' — unescaped, the payload truncates at the semicolon and the scanned network is either half the name or nothing. The backslash itself must be escaped too (double), or it swallows the next character. Two practical notes: hidden networks need H:true or the scanner cannot know to probe for a non-broadcast SSID, and iPhones only gained wifi-QR scanning in iOS 11 — older devices still need manual entry.
How to Use
- Open "Wi-Fi QR Code Generator"
- Enter the network name and pick WPA, WEP or open
- Type the password and tick hidden network if needed
- The QR code redraws as you change these fields
- Download the PNG, or copy the WIFI: payload text
Use Cases
- Shop signage — Generate a Wi-Fi QR code for a cafe or guesthouse to print on the wall instead of dictating passwords.
- Guest network — Create a dedicated code for a company guest SSID so visitors connect themselves.
- Event hotspot — Turn a temporary hotspot into a QR code on screen at an event so attendees scan to connect.
- Hidden network — Produce a code with the hidden flag so devices can join an SSID that is not broadcast.
- Home sharing — Make a QR for a long, complex home password and stick it on the fridge for family and friends.
- Conference badge — Generate a QR code for the conference Wi-Fi and embed it into digital badge images for attendees.
- IoT device setup — Create a QR code with the 2.4 GHz SSID so IoT gadgets that scan the code join the correct band.
FAQ
What format is inside the QR code?
It uses the WIFI: scheme that mainstream phone cameras support, like WIFI:T:WPA;S:name;P:password;; where T is the security type, S the SSID, and P the password — the trailing semicolons are required.
Is my password sent online?
No. The code is drawn entirely in your browser on a Canvas and the password never leaves your machine. Note the QR itself contains the password in clear text, so print and post it only within trusted areas.
Which security types are supported?
WPA/WPA2 (the most common — use WPA), WEP, and open networks with no password (choose nopass). WPA3 devices usually still read a code marked WPA.
What if the SSID or password has special characters?
Semicolons, commas, colons, and backslashes must be backslash-escaped or parsing fails. This tool handles the escaping automatically, so just type the raw values.
Do both iPhone and Android scan it?
The camera on iOS 11+ and mainstream Android cameras or scanner apps natively support this format; point at the code and a connect prompt appears with no extra app needed.
Scanning the QR code fails to connect to Wi-Fi?
Check in order: passwords containing ; " or \ must be escaped (the tool handles it, manual edits may not); the security type must match (WPA set as WEP fails). The safest fix is re-pasting the password exactly as-is without editing it midway.
iPhone and Android behave differently on the same code?
Both cameras understand the WIFI: format but differ on hidden networks and special characters: iOS often reports it cannot find a hidden SSID unless it was added manually once, while Android is more forgiving about quoting. Also confirm QR detection is enabled in the camera app.
The QR code is too dense to scan — what can I do?
Longer passwords mean denser codes, and at low error correction a smudged printout will not scan. Raise the correction level (slightly larger code) or shorten the password and regenerate. Turning up screen brightness and moving closer helps more than tweaking parameters.