Wi-Fi QR Code Generator
Let guests connect to your network with a single scan — no password to type, no network name to find.
Enter a network name to generate QR code
What this tool does
A Wi-Fi QR code stores your network name, password, and security type in a standard format that modern phones recognise. When a guest scans it, their device shows a "Connect to network" prompt instead of asking them to type a long password.
The generator runs entirely in your browser as client-side JavaScript. The text, links, and credentials you enter are encoded directly into the QR matrix on your device — the payload is never transmitted to or stored on a server. The encoder selects the densest QR encoding mode that can represent your data (numeric, alphanumeric, or byte mode), applies the error-correction level you choose, and writes the resulting module grid into the canvas preview above. Because the data lives inside the image itself, the finished code is static: it never expires and never depends on a redirect service.
How a Wi-Fi code works, where to use it, and how to test it
How the WIFI: record is read
A Wi-Fi QR code is a single text record, not a network packet. The published form is WIFI:T:WPA;S:NetworkName;P:Password;;. T names the security family, S the network name, and P the passphrase. The trailing double semicolon closes the record. iOS 11 and later, and Android 10 and later, recognise that prefix and show a join prompt instead of raw text. Older phones may only display the string. Characters that also act as separators — semicolon, colon, comma, and backslash — must be escaped with a backslash, or the phone splits the record in the wrong place and the join fails with no useful error. WPA2 and WPA3 both use T:WPA; the format predates WPA3. Hidden networks need an extra flag, because a phone will not invent an SSID the router is not broadcasting.
Where a guest-network code belongs
The useful case is a place where many people need the same guest network and should not be handed a password to type: a café table card, a salon counter, an Airbnb welcome sheet, a hotel room card, a clinic waiting room, or a party entrance. Put the code on a separate guest network that cannot reach your printers, cameras, or file shares. Treat the printed card as the password written in public, because anyone who photographs it can recover the key. Rotate the guest passphrase on a schedule you will actually reprint for — monthly in a busy café, daily for a one-off event. Do not use this format for a network that changes its name often, and do not hide the SSID and expect the code to compensate.
How to test a Wi-Fi code on real hardware
Test with a phone that has never joined the network, or forget the network first, otherwise the phone may connect from memory and hide a bad code. Scan the preview, accept the join prompt, and confirm the phone actually gets an address and loads a page — a successful prompt is not the same as working internet. Repeat on one iPhone and one Android phone; the prompt wording differs and some Android skins still show the raw WIFI: string. Then print a proof on the card stock you will use, under the room’s real lights. Glossy tent cards often reflect a ceiling lamp straight into the lens. If the join fails, compare the SSID character by character, including spaces and case, and check that a special character in the password was not left unescaped. After you rotate the password, the old print must fail — that is the confirmation the new code is the one on the table.
The WIFI: string format
A Wi-Fi QR code encodes a single string in the published WIFI: format: WIFI:T:WPA;S:MyNetwork;P:MyPassword;; — T is the security type, S the network name, P the password, and the double semicolon closes the record. iOS 11+ and Android 10+ read it natively and surface a join prompt. Special characters inside the SSID or password (semicolon, colon, comma, backslash) must be escaped with a backslash or the phone parses the string at the wrong boundary and the join fails silently.
Guest convenience without retyping
The practical win is removing the password-typing step. Guests no longer hunt for the network name or mistype a long key, and the join happens in one tap from a scan notification. That said, the password is embedded inside the image, so anyone who scans or photographs the code can read it — the code does not protect the key, it just types it. Use it on a separate guest network, not your main one, and treat the printed code as equivalent to writing the password on the card.
Material and placement for table cards
Restaurant and café lighting is the real enemy of a Wi-Fi code: warm, dim, and often a single overhead fixture that throws a hotspot straight onto a glossy table tent. Print on a matte or soft-touch card so light scatters instead of reflecting, and size the code at least 3.5–4 cm so guests can scan from across a table without picking the card up. Keep the quiet zone clear of candleholders and glasses, and test the proof under actual dining-room light before committing a full run.
Download your QR code
PNG for screens, SVG for large-format printing, PDF for print shops.
Optimal settings
The WIFI: string is moderately dense, so Level M error correction balances readability with resilience against smudges. Because guests scan from across a table rather than holding the phone directly over the code, print it at least 1.5 inches (3.8 cm) square on a matte card — a glossy finish reflects overhead restaurant and café lighting and can block the camera from reading the pattern.
Worried about sharing your Wi-Fi password in a code?
Read our Wi-Fi QR security guide
How it works
- 1You enter the network name (SSID), the password, and the security type (WPA, WEP, or none).
- 2The generator builds a string in the WIFI: standard format and encodes it into the QR pattern.
- 3On iOS and most modern Android phones, scanning the code shows a notification offering to join the network.
- 4The password is encoded inside the image, so it works offline with no server involved.
When to use it
- Cafés, salons, and waiting rooms offering guest Wi-Fi
- Airbnb and hotel rooms so guests connect without calling the front desk
- Home events and parties — frame the code near the entrance
- Offices and co-working spaces with a shared guest network
Examples of what to encode
Home network
Network: HomeNet · Password: •••••• · WPA2
Café guest Wi-Fi
Network: BrewCafe-Guest · Password: •••••• · WPA2
Open network
Network: Public-Lobby · No password
Inside the WIFI: string
Wi-Fi QR codes follow a format published by the Wi-Fi Alliance: WIFI:T:WPA;S:MyNetwork;P:MyPassword;; — T is the security type, S is the network name, and P is the password. The double semicolon at the end closes the string. Phones running iOS 11+ and Android 10+ recognise it natively; older phones may simply show the raw text.
Special characters are the classic trap. A semicolon, colon, comma, or backslash inside your network name or password must be escaped with a backslash, or the phone parses the string at the wrong place and the connection fails. This generator escapes them for you — but it is worth knowing why a hand-typed version might not work.
WPA2 and WPA3 both use T:WPA in the string — the format predates WPA3, and phones treat them as the same family. WEP appears as an option only because some old hardware still uses it; it is a deprecated standard that can be cracked in minutes, so if your router offers WEP, the real fix is a new router.
Router security and network protocols, explained for QR sharing
The security type you pick in the generator (WPA, WEP, none) is not just a label — it tells the phone which handshake to use when joining. WPA2-Personal (PSK) is the current mainstream: every device shares the same pre-shared key, and the router encrypts traffic with AES. WPA3 adds per-device encryption (SAE) so a compromised password does not let an attacker decrypt old captures, but older phones and IoT hardware may not support it — which is why many routers still run WPA2/WPA3 mixed mode.
The single most effective security move is network separation. Your main network holds laptops, phones, and smart-home gear; a guest network is isolated from it. Encoding the guest network credentials in the QR code means a scanned code never exposes the key to your primary devices. Most consumer routers let you enable a guest network and isolate it (so guests can reach the internet but not each other or your LAN) in a few clicks.
WPS — the push-button or PIN pairing feature — is a known weakness. The PIN variant can be brute-forced in hours, and several routers leak it to anyone on the network. Disable WPS entirely and rely on the QR code to share the password instead; the code just types the key for the guest, it does not weaken the handshake.
SSID hiding is widely misunderstood. A hidden network still broadcasts its name in probe requests from every device that has connected before, so it adds no real secrecy and can drain phone battery faster. A strong password on a visible guest network is more secure than a weak password on a hidden one.
Rotate the guest password on a schedule that matches your risk. A café with daily turnover might rotate monthly; a one-off event can print a fresh code per day. Because the password lives inside the printed QR image, rotating means reprinting the card — so pick a cadence you will actually follow rather than one that sounds rigorous.
Common mistakes to avoid
- Typing the network name in the wrong case — SSIDs are case-sensitive, so "HomeNet" and "homenet" are different networks.
- Embedding your main network password instead of a guest network password — anyone who scans the code can read it.
- Forgetting the hidden-network flag when the router does not broadcast the SSID, leaving guests unable to connect.
- Printing the code too small on a table card — guests scan from across a table, so it needs at least 3–4 cm.
Practical tip
Because the password is embedded in the code, anyone who scans it (or decodes the image) can read it. Use a separate guest network, not your main one, and rotate the password if you ever need to.
Frequently asked questions
Why won't the Wi-Fi code connect on some phones?
The most common cause is an unescaped special character. Semicolons, colons, commas, and backslashes in the network name or password must be escaped with a backslash in the WIFI: string; this generator handles that automatically, but a hand-typed version may not. Also confirm the SSID matches exactly, because network names are case-sensitive.
Is it safe to put my Wi-Fi password in a QR code?
The password is embedded in plain text inside the image, so anyone who scans or photographs the code can read it. Use a separate guest network rather than your main one, and rotate the guest password on a schedule you will actually reprint for. Treat the printed card as equivalent to writing the password in public.
Does the code work for hidden networks?
Hidden networks need an extra H:true flag in the WIFI: string so the phone knows not to expect a broadcast SSID. Without it, the join fails silently. This generator includes the flag when required — but note that hiding an SSID adds little real security and can drain device battery faster.
How this tool handles your data
Everything here runs in your browser. The text, links, passwords, and contact details you enter are encoded into the QR image on your device — they are never uploaded to or stored on a server. Nothing is retained after you leave the page.
Test and check your code
Before you print or publish, use these free tools to make sure your code scans reliably.
Related guides
Learn more about this QR code type and how to get the most out of it.