What a Wi-Fi QR Code Does
A Wi-Fi QR code stores your network name (SSID), password and security type in one small square. A guest points their phone camera at it, taps the “Join network” prompt and is online — no spelling out a 20-character password, no typos. It works on iPhone (iOS 11 and later) and on Android phones through the camera app or Google Lens, with no extra app.
Under the hood there is no magic and no server: the code simply contains a short line of text such as
WIFI:T:WPA;S:MyNetwork;P:MyPassword;;
The phone recognises the WIFI: prefix, reads the fields and offers to join. Because the credentials live inside the image itself, the code works offline, never expires, and keeps working until you change the password.
To create a QR code for your Wi-Fi: open our free generator, choose Wi-Fi, enter the network name and password, pick the security type, and download the PNG or SVG. Everything is generated in your browser — your password is never uploaded.
How to Create a Wi-Fi QR Code (Free)
The generator on our homepage has a dedicated Wi-Fi mode. It runs entirely in your browser, needs no account, and the result is a standard static code that any phone can read.
Step by step
Open the generator and pick Wi-Fi. Go to the homepage generator and click the Wi-Fi tab. Three fields appear: Network Name (SSID), Password and Encryption.
Type the network name exactly. SSIDs are case-sensitive and spaces count — “Home WiFi” and “home wifi” are different networks. Copy it from your phone’s Wi-Fi list or the router label.
Enter the password. Use the password for the network you want guests on (ideally a guest network). For an open network, leave it empty.
Choose the security type. WPA/WPA2 is right for almost every modern router, including WPA2/WPA3 mixed mode. WEP is only for very old equipment. None is for open networks.
Test, then download. Scan the preview with your own phone and make sure it actually joins. Then download PNG for quick printing or SVG if a designer or print shop will scale it.
The web generator produces clean black-on-white codes, which are the most reliable to scan. If your password contains unusual characters or your network is hidden, read the special cases section first — there is a simple workaround.
What Our Wi-Fi Tab Does (and Does Not Do)
Most “my Wi-Fi code won’t connect” problems are really questions about what the generator put inside the code. Here is exactly what ours does when you press Generate in Wi-Fi mode:
| Topic | What the Wi-Fi tab does |
|---|---|
| String it builds | WIFI:T: + security + ;S: + name + ;P: + password + ;; |
| Security options | WPA/WPA2 (writes T:WPA), WEP, None (writes T:nopass) |
| Spaces at the ends | Removed from the name and the password before encoding. Spaces inside are kept. |
Special characters \ ; , : " | Not escaped. The text you type goes into the string unchanged. |
Hidden network flag (H:true) | Not available in the Wi-Fi tab. |
| Accents, emoji, non-Latin letters | Encoded as UTF-8, so they are stored correctly; test on both phone families anyway. |
| Empty password | Allowed. With None selected the string ends ;P:;;, which phones accept for open networks. |
| Error correction and quiet zone | Level M, with a four-module quiet zone included in the PNG and SVG. |
| Where it runs | In your browser. The name and password are not sent to a server. |
In plain terms: for an ordinary network name and password made of letters, digits, spaces and symbols such as - _ # ! @ $ %, the Wi-Fi tab is all you need. If your password or name contains a semicolon, comma, colon, backslash or double quote, or your network is hidden, build the string yourself and paste it into the Text tab. The special cases section shows how, with copy-ready examples.
How Guests Scan and Join
Tell guests it is the normal phone camera — no app needed.
- iPhone / iPad (iOS 11 or later): open Camera, point it at the code, and tap the banner that offers to join the network. Confirm and the phone connects.
- Android: most current phones read Wi-Fi codes from the camera app or Google Lens, and many have a QR icon in the Wi-Fi settings screen. Tap the “Connect” prompt. Menu names vary by manufacturer and Android version.
- Laptops: a Windows or Mac laptop cannot normally join from a code on a wall, so keep the network name and password in small print under the code (see the sign template).
New to scanning? Our guide to how to scan a QR code covers older phones and scanner apps.
Find Your Network Name and Password First
Most failed Wi-Fi codes come down to one wrong character. Get the exact details before you start:
- Router label: many routers print the default network name and key on a sticker. If you or your provider changed them, the sticker is out of date.
- iPhone (iOS 16 and later): Settings → Wi-Fi → tap ⓘ next to the network → Password (Face ID / passcode required). On iOS 18 the Passwords app also lists saved Wi-Fi networks.
- Android (10 and later): Settings → Network / Wi-Fi → the connected network → Share. The phone shows its own Wi-Fi QR code and usually the password beneath it (menu names vary by manufacturer).
- Mac: System Settings → Wi-Fi → the … button next to the network → Copy Password (macOS Ventura and later), or the Passwords app on newer versions.
- Windows: in Command Prompt run
netsh wlan show profile name="YourNetwork" key=clearand read the “Key Content” line. - Security type: shown in your router’s admin page under wireless security. If it says WPA2-Personal, WPA3-Personal or a WPA2/WPA3 mix, choose WPA/WPA2.
The Wi-Fi QR Code Format (WIFI:T:S:P:H)
The WIFI: text format is a de facto convention, popularised by the open-source ZXing barcode project and now understood by the iPhone and Android cameras. It is a list of key:value; fields followed by an extra semicolon:
WIFI:T:<security>;S:<network name>;P:<password>;H:<true|false>;;
| Field | Meaning | Values / example | Needed? |
|---|---|---|---|
| T: | Security type | WPA (WPA/WPA2/WPA3-mixed), WEP, nopass | Recommended |
| S: | Network name (SSID), case-sensitive | S:Cafe Guest | Yes |
| P: | Password | P:sunny-day-42 (omit or leave empty for open networks) | If secured |
| H: | Hidden (non-broadcast) network | H:true | Only for hidden SSIDs |
Rules worth knowing:
- Escape special characters. A backslash must go before
\,;,,,:and"inside the name or password. So the passwordpass;wordis writtenP:pass\;word;. - Order does not matter, but the string must start with
WIFI:and end with;;. - Spaces are significant. A trailing space in a password is part of the password.
// WPA2 home or guest network
WIFI:T:WPA;S:Smith Guest;P:welcome-to-our-home;;
// Open network (no password)
WIFI:T:nopass;S:Library Free WiFi;;
// Hidden network
WIFI:T:WPA;S:Studio-5G;P:Br1ght#Lights;H:true;;
// Password containing a semicolon: pa;ss42
WIFI:T:WPA;S:Office;P:pa\;ss42;;
Hidden Networks, Special Characters and WPA3
Our web generator fills in T, S and P for you. It does not have a hidden-network switch, and it does not add backslash escapes, so two situations need a small manual step.
Hidden networks or passwords with ; , : \ "
Use the generator’s Text mode instead of Wi-Fi mode and type the full string yourself. A QR code that contains the text WIFI:T:WPA;S:Studio-5G;P:Br1ght#Lights;H:true;; is exactly the same as one made in Wi-Fi mode — phones only look at the text. This route lets you add H:true; and escape any special characters. Always test the result before printing.
Manual Wi-Fi string in Text mode
Write the string in a text editor: WIFI:T:WPA;S: + name + ;P: + password + ; (add H:true; for a hidden network) + a final ;.
Put a backslash before any \ ; , : " that appears in the name or password.
Paste it into the Text tab of the generator, scan the preview with two phones, then download.
Worked examples: what to type and what you get
The right-hand column is what goes into the Text tab. Replace the sample names and passwords with your own.
| Your network | String to paste into the Text tab | Wi-Fi tab enough? |
|---|---|---|
Name Home Wifi, password blue-sky-2026, WPA2 | WIFI:T:WPA;S:Home Wifi;P:blue-sky-2026;; | Yes |
Open network Library Free WiFi | WIFI:T:nopass;S:Library Free WiFi;; | Yes (choose None) |
Password with a semicolon: pa;ss42 | WIFI:T:WPA;S:Office;P:pa\;ss42;; | No |
Password with a colon: a:b:c | WIFI:T:WPA;S:Office;P:a\:b\:c;; | No |
Password with a comma: one,two | WIFI:T:WPA;S:Office;P:one\,two;; | No |
Password with a backslash: ab\cd | WIFI:T:WPA;S:Office;P:ab\\cd;; | No |
Password with a double quote: say"hi | WIFI:T:WPA;S:Office;P:say\"hi;; | No |
Name with a semicolon: Joe's Cafe; 5G | WIFI:T:WPA;S:Joe's Cafe\; 5G;P:secret99;; | No |
Hidden network Studio-5G | WIFI:T:WPA;S:Studio-5G;P:Br1ght#Lights;H:true;; | No |
The pattern is always the same: put one backslash in front of each of the five characters \ ; , : " that appears inside the name or password, and leave the structural semicolons and colons alone. Paste the finished string into the Text tab, generate, then scan the preview with an iPhone and an Android phone. If the phone offers to join, the string is right; if it shows plain text, look for a missing WIFI: prefix, a missing final ;; or a stray space.
The format description used by scanner software says a name or password made only of hex digits (0–9, A–F) may be wrapped in double quotes so it is not mistaken for a hex value. Behaviour differs between phones, so this is only a fallback: if a purely numeric password fails to join from a code that looks correct, try P:"12345678"; in the Text tab and test again.
Names or passwords with accents, emoji or non-Latin letters
Plain letters, digits and common symbols work everywhere. If your network name or password contains emoji, non-Latin scripts or accented letters, test the downloaded code on both an iPhone and an Android phone before printing — character-encoding support for these varies between generators and scanners. The simplest fix, if you control the router, is a guest network whose name and password use plain characters.
A note on hidden networks: hiding the SSID does not make a network meaningfully more secure, and phones have to probe for it actively. If you control the router, a visible guest network with a strong password usually gives a smoother scan-and-join experience.
WPA3
Use T:WPA (our “WPA/WPA2” option) for WPA3 networks too. The phone finds the network by name and negotiates WPA2 or WPA3 with the router itself, so T:WPA works for WPA2, WPA3 and the common WPA2/WPA3 transition mode. Some Android phones write T:SAE when they share a WPA3-only network; that value is not read the same way by every scanner, so T:WPA is the safer choice for a printed sign. If a WPA3-only network will not join from the code, switch the router (or a guest network) to WPA2/WPA3 transition mode.
WEP, open and enterprise networks
- WEP is obsolete and easily broken; the option exists for old hardware, but upgrade the router’s security if you can.
- Open networks: choose None (
T:nopass). The code just saves guests from finding the network in a list. - Enterprise (WPA2/WPA3-Enterprise, username + password): the basic
WIFI:format is meant for shared-password networks, and phone support for enterprise logins via QR code is inconsistent. For visitors, set up a separate guest network with a shared password instead.
QR Code Apps for Mac & Safari
Prefer generating codes without opening a browser tab? These two native Apple apps cover both habits — a full generator on the desktop, and a one-click share button inside Safari.
Branded Wi-Fi Signs with Gen QR on Mac
For a home or a quick office printout, the free black-and-white code is all you need. Cafes, hotels, rentals and shops often want the code to match the room: brand colours, a logo in the centre, a neat card for every table. That is what Gen QR – Code Maker is for. It is a native Mac app with a Wi-Fi code type, and it adds:
- Custom foreground and background colours — keep the code dark on a light background for contrast (see QR code colour combinations).
- Logo overlay with error correction adjusted automatically, plus manual L/M/Q/H levels — H leaves the most room for a logo or wear on a laminated card (more in QR codes with a logo).
- Collage export — two or four codes side by side on a printable sheet, handy for a guest network and a staff network, or for several cards on one page.
- Projects with folders and colour tags — keep each location’s codes together so you can regenerate them quickly after a password change.
- Fully offline, with no accounts, tracking or cloud sync — your network passwords stay on your Mac. One-time purchase, no subscription.
Where to Put a Wi-Fi QR Code
- Homes: a small framed card in the hallway or guest room, or on the fridge.
- Holiday rentals and hotels: the welcome folder, the bedside card and near the door. Guests look for Wi-Fi first.
- Cafes and restaurants: table tents, the counter and the menu. Pair it with a menu QR code but label each clearly so people scan the right one.
- Offices and co-working spaces: reception, meeting rooms and the kitchen — for the guest network only.
- Events: on registration desks and slides, sized large enough to scan from a seat.
What to Print on the Wi-Fi Sign
A bare square is easy to ignore. A small card that answers the three questions every guest has works better:
- What is it? A short heading such as “Scan to join our Wi-Fi” above the code.
- Which network? The network name in small print below, so people can check they are joining the right one.
- Plan B. The password in small print for laptops and for phones that cannot read codes.
Download the SVG for the printed card, drop it into your layout at roughly 3–4 cm square or larger, keep the white border around it, and print on matte paper. Laminate with a matte finish if guests will handle the card often, then re-test the laminated copy. For sizes at distance see the QR code size guide; for choosing paper and printers see QR code print resolution.
Wi-Fi QR Code Best Practices and Security
- Use a guest network. Anyone who can see the code can read the password from it. A guest network keeps visitors away from your computers, printers and smart-home devices.
- Size for the distance. About 2×2 cm is fine for a card read at arm’s length; a wall sign read from a couple of metres needs to be much larger. Our QR code size guide has the numbers.
- Add a label and the details in text. “Scan to join Wi-Fi” plus the network name and password in small print helps laptops and people who prefer typing.
- Keep contrast high and surfaces matte. Dark code, light background, no glare from glossy laminate or glass.
- Regenerate after a password change. The password is inside the image, so the old code stops working. Keep your settings (or the Gen QR project) so reprinting takes a minute.
- Watch for stickers. In public places, check now and then that nobody has stuck a different code over yours. Read more in our QR code security guide.
Wi-Fi QR Code Not Connecting? Check These
- The phone scans but shows text instead of “Join”: the string is malformed — usually a missing
WIFI:prefix or final;;in a hand-typed code. - “Unable to join” or wrong password: check case and spaces in the SSID and password, and escape any
; , : \ ". - Network not found: you are out of range, the SSID differs (2.4 GHz and 5 GHz bands sometimes have different names), or the network is hidden and needs
H:true. - Works on one phone but not another: try
T:WPAinstead ofT:SAE, and check that the router is not WPA3-only. - The camera does not react at all: the code is too small, too low-contrast or cropped into the quiet zone. See why a QR code won’t scan.
Create Your Wi-Fi QR Code Now — Free
Enter your network name and password. Generated in your browser, downloaded as PNG or SVG. No account needed.
Frequently Asked Questions
Open the free generator at generateonlineqr.com, choose the Wi-Fi tab, enter your network name exactly as it appears, enter the password, choose WPA/WPA2 (or WEP or None), then test the code with your phone and download it as PNG or SVG. The code is generated in your browser and the password is not uploaded.
The code contains the password in plain text, so anyone who can scan or photograph it can read it. It is as safe as writing the password on a card. Use a guest network for codes on display so visitors cannot reach your own devices.
Yes. iPhones running iOS 11 or later join from the built-in Camera app, and current Android phones join from the camera app or Google Lens. Older phones may need a scanner app.
Yes, if the code includes H:true, for example WIFI:T:WPA;S:Studio;P:secret;H:true;;. Our web generator has no hidden-network switch, so type the full string into its Text mode instead, then test it before printing.
Choose WPA/WPA2, which writes T:WPA. Phones negotiate WPA2 or WPA3 with the router themselves, so T:WPA works for WPA2, WPA3 and WPA2/WPA3 transition mode. If a WPA3-only network will not join, enable transition mode for guests.
The old code stops working because the old password is stored inside it. Generate a new code with the new password and replace the printed copies.
On Android 10 and later, open Wi-Fi settings, tap the connected network and choose Share to show a ready-made QR code. On iPhone with iOS 16 or later, view the saved password under Settings, Wi-Fi, the info button, Password, then enter it into our Wi-Fi generator.
No. The phone decodes the network name and password from the image itself, which is the point: it lets you get online in the first place.
No. The Wi-Fi tab puts your name and password into the string exactly as typed and does not add backslash escapes. If a password or network name contains a backslash, semicolon, comma, colon or double quote, type the full string in the Text tab and put a backslash in front of each of those characters, for example WIFI:T:WPA;S:Office;P:pa\;ss42;;. Test the code before printing.
Not in the way a URL code can be dynamic. A phone only offers to join a network when the code itself contains the WIFI: text, so a code that points to a redirect would open a web page instead. A Wi-Fi code is therefore static: it holds the current password, and you generate and reprint it when the password changes.
T is the security type (WPA, WEP or nopass), S is the network name (SSID), P is the password and H:true marks a hidden network. The string starts with WIFI: and ends with two semicolons, for example WIFI:T:WPA;S:MyNetwork;P:MyPassword;;.