This free Wi-Fi QR code generator turns a network name and password into a code that phone cameras scan to join. Download it or print a guest sign. At the defaults, Home-WiFi with a 16-character password makes a version 4 code, 33 modules on each side. Nothing you enter reaches our server.
What the code does
Joins Home-WiFi with WPA/WPA2/WPA3
Scan it with a phone camera to join. The code is version 4, 33 × 33 modules.
Type the network's password and the code to scan appears here.
- What the code does
- Joins Home-WiFi with WPA/WPA2/WPA3
- Security
- WPA/WPA2/WPA3
- Text inside the code (password hidden)
- WIFI:T:WPA;S:Home-WiFi;P:••••••••;;
- Code size
- Version 4, 33 × 33 modules
- Error correction
- M: recovers about 15% damage
How this works
- How it works
- The code holds one line of text in the format phone cameras read for Wi-Fi: WIFI:T:security;S:name;P:password;; with a backslash added before any backslash, semicolon, comma, double quote or colon in the name or password. The QR code itself follows ISO/IEC 18004: byte mode, UTF-8 text, the smallest version that fits, the error correction level you pick, and the mask chosen by the standard's penalty rules. It is drawn black on white with a four-module quiet zone, the minimum the standard sets.
- Not covered
- WPA2/WPA3 Personal, WPA3-only, WEP and open networks only: no Enterprise (802.1X) logins.
- Privacy
- What you enter never reaches our server. It is processed on your device, inside this page.
- Corrections
- Report a wrong result to media@sqmagazine.co.uk; every report is reviewed and confirmed errors are corrected. Include the inputs and the answer you expected. With your permission, we thank you by name on this page.
- Updates
- Published.
- Feedback
- How useful was this tool?
Table of Contents
How to Use the Wi-Fi QR Code Generator
The Wi-Fi QR code generator asks for the details a phone needs to join a network by hand. Name and password are checked against what a router accepts. Its text follows the ZXing format and its pattern follows the ISO QR code standard, both explained below.
- Type the “Network name (SSID)” exactly as it appears in your phone’s Wi-Fi list, capitals and spaces included. The tool refuses a name over 32 bytes.
- Choose the “Security” type to match the router. “WPA2 or WPA3 (most routers)” fits most home routers, and “WPA3 only” is for a router with WPA2 turned off. “WEP (old routers)” and “None (open network)” cover older and open networks. Apple warns against both, and the FTC calls WEP outdated (see below).
- Type the “Password”. For WPA2 and WPA3 it must be 8 to 63 characters, and the WPA2 or WPA3 option also takes a 64-digit hex key. A WEP key is 5 or 13 characters, or 10 or 26 hex digits. Choosing “None (open network)” hides the box.
- Tick “Hidden network (the router does not broadcast its name)” only if your router really hides its name.
- Leave “Error correction” on M unless the sign will be scuffed or partly covered.
- Read the results: “What the code does”, “Security”, “Text inside the code (password hidden)”, “Code size” and “Error correction”.
The code redraws as you type. “Download PNG” and “Download SVG” save it. “Print sign” prints a card with the network name, the code and a line telling guests to point a camera at it. The password goes on that card only if you tick “Print the password on the sign too”. Only “Copy text (includes password)” puts the password on your clipboard. “Copy all details” copies the settings and results without it.
Behind the square sits one line of text.
How a Wi-Fi QR Code Is Built
A Wi-Fi QR code has two layers. One is a line of text that tells the phone how to join; the other is the QR pattern that carries it. Its text follows the format the ZXing barcode project documents under Wi-Fi Network config (Android, iOS 11+). For the example it reads `WIFI:T:WPA;S:Home-WiFi;P:example-password;;`.
- `T` is the security type: `WPA`, `SAE`, `WEP` or `nopass`, set by the “Security” choice.
- `S` is the network name and `P` the password; an open network has no `P`.
- `H:true;` appears only when the hidden-network box is ticked.
- A closing semicolon ends the record.
ZXing says special characters should be escaped with a backslash, so a network called Cafe;Guest goes into the code as `Cafe\;Guest`. Backslash, semicolon, comma, double quote and colon all get escaped, in the name and the password alike. Each escape adds a byte.
The pattern layer follows ISO/IEC 18004:2024, the QR code standard. ISO’s summary says it covers data character encoding methods, symbol formats, dimensional characteristics, error correction rules. ISO sells the full text, so this page describes what the tool does rather than the standard’s clauses.
In practice, the tool encodes the text in byte mode as UTF-8. Then it picks the version just big enough to hold that text at your error correction level. Black modules go on white, inside a four-module quiet zone.
With B as the text length in bytes and v as the QR version:
- B = 5 + (3 + letters in T) + (3 + bytes in the name) + (3 + bytes in the password) + 1. Add 7 if hidden, and one byte per escaped character.
- v = the version just large enough that its byte capacity at your level covers B. DENSO WAVE’s QRcode.com publishes those capacities for Version 1 to Version 40.
- Modules per side = 17 + 4 × v, because Version 1 (21 × 21 modules) is the base size and Each higher version number comprises 4 additional modules per side.
Run the example through those three lines and the tool’s result falls out.
Worked Example: Home-WiFi in a Version 4 Code
On load, the tool shows the network Home-WiFi with “WPA2 or WPA3 (most routers)” and the password example-password. Nothing is hidden, and “Error correction” sits at M.
- Text: `WIFI:T:WPA;S:Home-WiFi;P:example-password;;`. Byte count: 5 + 6 + 12 + 19 + 1 = 43 bytes. Nothing needs escaping, because a hyphen isn’t a special character.
- Version 3 at level M holds 42 bytes in DENSO WAVE’s table. That is one byte short.
- Version 4 at level M holds 62 bytes, so the text fits with 19 to spare.
- Size: 17 + 4 × 4 = 33 modules per side, matching “Code size”.
- With four quiet-zone modules on each side, the printed square is 41 modules across.
“What the code does” then says the code joins Home-WiFi with WPA/WPA2/WPA3. Under “Text inside the code (password hidden)”, the preview swaps the password for eight dots. Always eight. However long the real password is, a screenshot of that preview gives away nothing about it.
One missing byte set that size, and small changes tip it either way.
What the Result Means
Version tells you how dense the code is. At the same print size, a higher version packs smaller modules, so it needs a steadier phone or a bigger print. DENSO WAVE says raising the error correction level improves error correction capability but makes the code larger. It notes that Typically, Level M (15%) is most frequently selected.
Its overview adds that A maximum 30% of codewords can be restored. Recovery may not be fully performed depending on the amount of dirt or damage. The table shows how close the defaults sit to a size boundary.
| Setting | Text (bytes) | Level | Version | Modules per side |
|---|---|---|---|---|
| Default example | 43 | M | 4 | 33 |
| Password without the hyphen | 42 | M | 3 | 29 |
| Default, level L | 43 | L | 3 | 29 |
| Default, level Q | 43 | Q | 4 | 33 |
| Default, level H | 43 | H | 5 | 37 |
| Default, hidden network | 50 | M | 4 | 33 |
| Open network, no password | 27 | M | 3 | 29 |
Source: version 1 to 5 capacities from DENSO WAVE’s QR Code version table; byte counts and sizes computed with the tool’s encoder
Dropping one character from the password takes the default from 33 to 29 modules per side. Picking H pushes it to 37. A password with a semicolon or comma costs an extra byte per character, which can tip a code over the same edge.
A Wi-Fi password QR code also carries the password as plain text. Any scanner app that reads it can display it, so a printed QR code for Wi-Fi is as private as the wall it hangs on. On screen the tool hides the password, but the downloaded or printed code holds it in full. Keep the original somewhere safer, such as the password managers tracked in our password manager statistics.
Three mistakes stop a code from working. One is a network name with the wrong capitals. Another is a “WPA3 only” code for a router in mixed mode, and the last is the hidden box ticked when nothing is hidden.
Security Types for a Wi-Fi QR Code
Pick the option that matches your router, because the code passes that type to the phone. Apple’s router guidance says to Set to WPA3 Personal for better security, or set to WPA2/WPA3 Transitional for compatibility with older devices.
Transitional mode matches “WPA2 or WPA3 (most routers)”. That option writes `T:WPA` into the code and leaves the phone to settle the details when it connects. A router on WPA3 Personal alone matches “WPA3 only”, which writes `T:SAE`.
ZXing’s list of types names WEP, WPA, WPA2-EAP and nopass. It has no WPA3 entry. If a phone won’t join from a “WPA3 only” code, the tool’s own help says to make the code again with “WPA2 or WPA3 (most routers)”. The Wi-Fi Alliance says WPA3 is mandatory for Wi-Fi CERTIFIED devices and that Users of WPA3-Personal receive increased protections from password guessing attempts.
| Security option | Code writes | Password the tool accepts |
|---|---|---|
| “WPA2 or WPA3 (most routers)” | `T:WPA` | 8 to 63 characters, or a 64-digit hex key |
| “WPA3 only” | `T:SAE` | 8 to 63 characters |
| “WEP (old routers)” | `T:WEP` | 5 or 13 characters, or 10 or 26 hex digits |
| “None (open network)” | `T:nopass` | None |
Source: the tool’s Security options and password checks; WPA, WEP and nopass per the ZXing Wi-Fi format, SAE added by the tool for WPA3 only
Apple lists WEP among the weak security settings to avoid on your router, and the FTC calls WPA and WEP outdated and not secure. WEP stays in the tool so an old router still gets a working code. For open networks, Apple warns that turning security off allows anyone to join your network.
Codes here are for personal networks only. ZXing’s format has extra fields for WPA2-EAP logins, such as an identity and an EAP method, and the tool writes none of them. It can’t make a code for an Enterprise (802.1X) network that asks each person for a username.
Hidden Networks and the Hidden Network Box
Ticking “Hidden network (the router does not broadcast its name)” adds `H:true;`, which ZXing defines as True if the network SSID is hidden. That flag tells the phone to look for a network that isn’t announcing itself. It adds 7 bytes to the default text, which still fits version 4.
Apple advises against hiding a network at all. It says Hiding the network name doesn’t conceal the network from detection or secure it against unauthorized access, and that a hidden network might expose information that can be used to identify you. Tick the box to match a router that already hides its name, not to add protection.
Guest Networks and Printed Signs
A Wi-Fi QR code shares your password with everyone who scans it. That makes the FTC’s guest-network advice a good fit for a printed sign. The FTC notes that Many routers let you set up a guest network with a different name and password.
That way, fewer people have your primary Wi-Fi network password. It adds that if a guest’s phone carries malware, it won’t get onto your primary network and your devices.
Make the code for the guest network, print that one, and change its password when the guests have gone. A guest network helps reduce the risk of a shared password reaching your own devices; it is not a guarantee. The same thinking applies to networks you join away from home, covered in our look at public Wi-Fi security risks.
Scan only codes you trust. A QR code can hold a web link as easily as a network. Attackers use that trick, as our guide to how phishing works explains. The camera prompt tells you what a code will do before anything happens, so read it before you tap.
How do I scan a Wi-Fi QR code?
Point the phone’s camera at the code and tap the prompt. On an iPhone, Apple’s steps are to position iPhone so that the QR code appears inside the camera frame, then Tap the link that appears at the bottom of the screen. ZXing documents the same text format for Android phones and for iOS 11 and later.
An iPhone already on the network can make a code too. Apple’s guide says to go to the Wi-Fi network and tap Show Network QR Code, which friends and family can scan to join the network. To see the password without any code, open the Passwords app, choose the network and Tap the Password field.
Does a Wi-Fi QR code expire?
No. A Wi-Fi QR code has no expiry date, so it keeps joining phones until the network name, password or security type changes.
Inside are a security type, a network name, a password and an optional hidden flag; ZXing’s field list has no date field. Changing the password cuts off old guests. Print a new code then, and take the old one down, since it still shows the old password to anyone who scans it.
Sources Used on This Page
- ISO: ISO/IEC 18004, QR code bar code symbology specification (catalog page and abstract).
- ZXing project: Barcode Contents, Wi-Fi Network config.
- DENSO WAVE (QRcode.com): Information capacity and versions of the QR Code.
- DENSO WAVE (QRcode.com): Error correction feature.
- DENSO WAVE (QRcode.com): What is a QR Code?
- Apple: Recommended settings for Wi-Fi routers and access points.
- Apple: Find and share your Wi-Fi password on iPhone.
- Apple: Scan a QR code with your iPhone camera.
- FTC: How To Secure Your Home Wi-Fi Network.
- Wi-Fi Alliance: Wi-Fi security.
Good to Know Before You Use It
The Wi-Fi QR code generator runs in your browser, and nothing you enter reaches our server. It assumes the network name, security type and password you type match the router exactly. It checks only that the password has a length a router accepts, not that it is the right one.
Its method is the ZXing WIFI: text with backslash escaping, encoded in byte mode at the version just big enough for the chosen error correction level. It covers WPA2 and WPA3 Personal, WPA3-only, WEP and open networks. It doesn’t make codes for Enterprise (802.1X) logins, read codes or change any router setting.
SQ Magazine publishes this page for information. A QR code makes sharing a Wi-Fi password more convenient; it promises no security outcome, and anyone who scans the code can read the password inside it.
Conclusion
The default example, Home-WiFi with a 16-character password, is 43 bytes of text and becomes a version 4 code, 33 modules on each side. Make the code for a guest network where you can, and keep level M unless the sign will take wear. Print a new code whenever the password changes. For how often passwords get reused and leaked, see our password statistics.
























































