Printed a code and need to change the link? QR Gen makes codes you can edit later.Edit codes after printing with QR Gen.See QR Gen

Open on your phone

How to make a Wi-Fi QR code guests can scan

Make a Wi-Fi QR code in a minute: the exact WIFI string, the five characters to escape, hidden networks, and where to find a forgotten password.

A Wi-Fi QR code is a short line of text that starts with WIFI: and carries your network name, password and security type. To make one, open the Wi-Fi tab of the generator, type the name and password exactly as your router shows them, pick WPA for most home and shop routers, and download the PNG. A guest points a phone camera at it and joins without typing.

That is the whole job for most people. The rest of this guide covers what the generator is doing underneath, because the three ways a Wi-Fi code fails (a bad character, a hidden network, a mismatched security type) all come from that one line of text. If you are new to the general process, how to make a QR code walks through every kind we support.

What the code stores

Nothing is looked up online. The password sits inside the pattern, in plain text, which is why a Wi-Fi code works with no internet at all and never expires. Here is the exact text our generator writes for a network called Example Home:

WIFI:T:WPA;S:Example Home;P:blue-mango-42;;

One line of text, four parts

  1. WIFI:Marks it as Wi-Fi
  2. T:WPA;Security type
  3. S:Example Home;Network name
  4. P:blue-mango-42;Password
  5. ;End
bytes
43
version
4
modules at M
33 by 33
This is the real code for that text. Nothing is looked up online: the password sits in the pattern.

It is 43 bytes. As this site’s generator draws it, at the default error correction level M, that is version 4, 33 by 33 modules. At level L it drops to version 3 (29 by 29), and at H it grows to version 5 (37 by 37). The format comes from the ZXing project’s Barcode Contents wiki page, which phone cameras follow:

Field Meaning Notes from the ZXing wiki
T Security type WEP, WPA or WPA2-EAP, or nopass for an open network
S Network name (SSID) Required
P Password Ignored when T is nopass; may be left out
H Hidden network Optional; true if the name is not broadcast

Field order does not matter to a reader, and the code ends with two semicolons. Most shops and homes have WPA2 or WPA2/WPA3 on the router, and for both you pick WPA.

Escape these five characters

The semicolon is the field separator, so a password that contains one will cut the password short unless it is escaped with a backslash. The ZXing page lists five characters that need this treatment: the backslash itself, semicolon, comma, double quote and colon.

Take a password that looks harmless to a human: ab;cd:ef,gh"ij. Written without escapes, the code says this:

WIFI:T:WPA;S:Example Home;P:ab;cd:ef,gh"ij;;

A reader that follows the format ends the password at the first semicolon. It tries ab, the router rejects it, and the guest sees “can’t connect” with no hint why. Written correctly, it looks like this:

WIFI:T:WPA;S:Example Home;P:ab\;cd\:ef\,gh\"ij;;

Both versions measure version 4, 33 by 33 at level M, so the picture gives you no warning. The only way to know is to scan the finished code with a phone and check that it joins. Our generator adds the backslashes for you, in the password and in the network name, so type the real password and do not escape anything yourself. Escaping by hand and then pasting into a generator that also escapes gives you double backslashes and a code that fails.

One more edge case from the same wiki page: if a network name is plain ASCII but could be read as hex digits (a name like 12345678), the name should be wrapped in double quotes. Our generator escapes any quote you type, so it cannot produce that form. If your network is named like that, rename it or test the code on two phones before printing.

Hidden networks and open guest networks

A hidden network does not broadcast its name, so a phone cannot find it by looking. Tick the hidden box and the generator adds H:true:

WIFI:T:WPA;S:Example Home;P:blue-mango-42;H:true;;

That is 50 bytes, still version 4 at level M. Hiding the name does not protect the password, though. Anyone holding the QR code already has the name, and the name is not a secret worth defending. It mostly adds friction for guests, so we would leave the network visible and put the effort into a separate guest network.

An open network needs no password at all:

WIFI:T:nopass;S:Example Guest;;

At 31 bytes that is version 3, 29 by 29 at level M, the smallest Wi-Fi code you will make. Open networks are fine for a café that wants friction-free guests, but remember that anything sent over them is readable by others nearby unless the sites use HTTPS. Many sites do now; not all.

WPA3 and old phones

Android’s documentation on WPA3 and Wi-Fi Enhanced Open describes a transition mode, where one router serves WPA2 and WPA3 together: Android 10 and later connect with WPA3, and older phones fall back to WPA2. Android 9 and lower do not support WPA3 at all. If your router offers transition mode, use it, and choose WPA in the generator.

The ZXing wiki lists no WPA3-specific value for T. We have not tested how every phone reads T:WPA against a router set to WPA3 only, so treat that setup as unproven: scan the code on an iPhone and an Android phone before you print, and if one fails, switch the router to transition mode.

Find the password if you forgot it

The code needs the real password, and plenty of people have lost theirs. Pick your device:

Device Where to look
Android (Pixel) Settings, Network & internet, Internet, the settings icon beside your network, then Share. After you verify yourself, the QR code and password show. Google’s Pixel help page has the same steps.
iPhone On iOS 18 and later, open the Passwords app, tap Wi-Fi, choose the network and tap Show Network QR Code (MacRumors walkthrough).
Windows In Command Prompt as administrator, run netsh wlan show profile name="Example Home" key=clear and read the Key Content line. Microsoft documents the key=clear switch for netsh wlan export, which writes the key to a file only when you run it as a local administrator.
Mac Open Keychain Access, find the network name, double-click it, tick Show password, and enter your Mac login.
Any The sticker under the router, or the router’s admin page.

Note the first two rows: modern phones already make a Wi-Fi QR code for you. They are fine for a one-time share across a living room. A printed code from this site earns its place when the code lives on a wall, a table tent or a hotel-style card, because nobody has to dig through phone settings to show it.

Wi-Fi codes are static, which has one consequence you should plan around: change the router password and every printed copy stops working. Keep a source file, either the SVG or the generator’s settings, so a new card takes two minutes. If you expect to change the password often, say for a guest network you rotate monthly, read static vs dynamic QR codes first. A Wi-Fi code cannot be dynamic, since the password has to sit inside it for a phone to join, so rotation means reprinting.

Size is the other decision. A 43 byte code is small and forgiving, so a table tent at about 3 to 4 cm works, but longer passwords make denser patterns: a 63 character password (the longest a WPA passphrase can be) produced version 6, 41 by 41 modules at level M in our test, and version 9 (53 by 53) at level H. What size to print explains how to match the print size to the module count, and error correction levels covers why level M is the sensible default here.

Scan your printed proof with the phones your guests use. Apple’s guide to scanning a QR code shows the Camera app and the Control Centre scanner; Android phones scan from the camera app or Google Lens. If the phone offers to join the network by name, the code is good.

Before you send it to print, run this checklist:

  1. The network name and password match the router’s, including capital letters.
  2. Security is WPA, unless the network is open.
  3. Special characters are typed plainly; the generator escapes them.
  4. Two different phones joined the network from the printed proof.
  5. The card says the network name in words, for guests whose phone cannot scan.

Ready to try it? Free, no sign-up, made in your browser.

Make this code now