Wi-Fi QR code generator
Type your network name and password and get a QR code that phones scan to join, with the exact encoded text shown and a printable card.
Runs entirely in your browser
Works with the common WIFI: format that iOS and Android cameras read. Other Wi-Fi types, such as enterprise logins with a username, are not covered. WPA3 networks are encoded as WPA, which phones accept.
How to make a Wi-Fi QR code
- Enter the network name exactly as it appears on your router, and the password. Choose the security type and tick Hidden network if the name is not broadcast.
- Check the encoded text in the readout and scan the preview with a phone to test it.
- Download the code as PNG or SVG, or download the Wi-Fi card, which prints the network name and optionally the password under the code.
What a Wi-Fi QR code contains
A Wi-Fi QR code is ordinary text in a fixed layout: WIFI:T:WPA;S:name;P:password;;. The letters before each colon are the field: T for the security type, S for the network name, P for the password and H for a hidden network. Phone cameras recognise the WIFI: prefix and offer to join, so the person scanning never types the password.
Because fields are split on semicolons and colons, those characters, plus the backslash, comma and double quote, must be escaped with a backslash when they appear in a name or password. Getting this wrong is the usual reason a code works for a simple password and fails for a complicated one. The readout above shows the final text so you can see what was escaped. For an open network the password field is left out entirely.
The printable card puts the code on a plain white background with the network name beneath it, using the same Archivo typeface as the rest of this site. It is a fixed 900 by 1100 pixel PNG, which prints sharply at about 8 by 10 cm at 280 dots per inch, and larger if you accept a softer edge on the text.
Tips
- Choosing a new password for the router? Generate one with the password generator.
- Need a code for a link, email or phone number instead? Use the general QR code generator.
- Sharing contact details rather than a network? See the vCard QR code generator.
Questions
Is my Wi-Fi password sent anywhere?
No. The network name and password are turned into a code by this page, on your device, and are never uploaded or saved. The password exists only on this page, inside the code you download and, if you choose, on the printed card.
Which security type should I pick for WPA3?
Pick the WPA, WPA2 or WPA3 option. The Wi-Fi code format has one value for all WPA versions, and phones that support WPA3 join with it. Choose WEP only for old routers, and None for an open network, which writes no password.
Why are some characters shown with a backslash?
The format separates fields with semicolons and colons, so a backslash, semicolon, comma, colon or double quote in your name or password is escaped with a backslash. The readout shows the exact text that goes into the code.
Will it work on iPhone and Android?
The built-in camera apps on current iOS and Android versions offer to join the network when they scan this format. Some older Android versions need a QR scanner app. Test with a phone that is not already on the network before printing.
Should I print the password on the card?
Only if the card stays somewhere you trust, since anyone who sees it has the password. Leaving it off still lets people join by scanning; the code carries the password in either case.
What if my password is longer than 63 characters or shorter than 8?
A WPA passphrase is 8 to 63 characters, or exactly 64 hex digits for a raw key. The tool warns when the length is outside that, because the router would not have accepted such a password.