WiFi QR Code Generator
Builds a WIFI QR payload from a network name, security type, optional password and hidden-SSID flag, then renders it as an inline SVG QR image.
Real-time Results
WiFi QR Code
How it works
Turns a network name, security type and password into one QR code you can print or display so guests join without typing credentials. It runs in the browser and outputs an SVG image rather than a saved file.
What happens if the password contains a semicolon or comma?
The generator escapes backslash, semicolon, comma, colon and double quote with a backslash before inserting them into the payload, so those characters do not break the field structure. The SSID is trimmed of leading and trailing whitespace, but the password is used exactly as typed, including spaces. A password that differs only by a trailing space will not match the router.
Does the hidden-network switch change the QR code?
Yes. The H field is set to true or false from the switch, which changes the encoded string and therefore the QR pattern. Some phones ignore the hidden flag and still need the network name entered manually, so test on the devices your guests use. The code is rendered as an SVG data URL at error-correction level M; very long SSIDs or passwords raise the QR version and can eventually exceed the built-in version table, which returns a generation-failed message instead of an image.
Examples and interpretation(2)
How do I make a QR code for a WPA home network?
- Enter SSID Home_WiFi, keep Encryption Type at WPA, enter password 12345678, and leave Hidden SSID Network off.
- The payload becomes WIFI:S:Home_WiFi;T:WPA;P:12345678;H:false;; and is rendered as an SVG QR image at level M.
The image encodes exactly those four fields; scanning it offers to join Home_WiFi. If the router password changes, the old code stops working and must be regenerated.
How do I encode an open network with no password?
- Enter SSID Guest_Open, set Encryption Type to nopass, and leave Hidden SSID Network off; the password field is hidden and not required.
- The payload becomes WIFI:S:Guest_Open;T:nopass;P:;H:false;; with an empty password field.
The code joins an unencrypted network without prompting for a password. Because the network is open, anyone who sees the code can join, so avoid using it for sensitive traffic.
Inputs
| Parameter | Definition & Valid Bounds |
|---|---|
| Encryption Type | WPA/WPA2/WPA3 (Standard / Recommended) · WEP (Older insecure networks) · Unencrypted (Open network / No password) |
Formula
Payload: WIFI:S:escaped SSID;T:WPA or WEP or nopass;P:escaped password;H:true or false;; where backslash, semicolon, comma, colon and double quote are backslash-escaped; the string is encoded as a QR symbol at error-correction level M with a 4-module quiet zone.
How to use
- Enter the SSID exactly as the network broadcasts it, including capitalization and spaces; leading and trailing whitespace is trimmed.
- Choose the Encryption Type matching the router: WPA, WEP, or nopass for an open network.
- For WPA or WEP, type the WiFi Password; the field is hidden and not required when nopass is selected.
- Turn on Hidden SSID Network only if the router does not broadcast its name.
- Scan the resulting WiFi QR Code with a phone camera to test the connection before printing.
Frequently asked questions
Is the password stored or sent anywhere?
The payload is assembled and rendered in the browser; the implementation shown has no upload step. Treat the printed code itself as the secret, since anyone who scans it gets the password.
Why did I get a generation-failed message instead of a code?
The built-in QR version table stops at version 15. If the escaped SSID and password make the payload too long for that table at level M, the tool returns the error text rather than an image; shorten the SSID or password.
Can I use the code for a WEP network?
Yes, choose WEP and enter the key. WEP is listed as an older insecure option, so the code will work but the network protection itself is weak.
Related Calculators
More calculators selected by category and topic.
