How to make a Wi-Fi QR code so guests can join without typing the password

Updated

A Wi-Fi QR code holds your network name, security type and password. When a guest scans it with the camera on an iPhone or an Android phone, the phone offers to join the network, with nothing to type. You can make one for free in our QR code generator: choose Wi-Fi network, enter the network name exactly as it appears, pick the security type and type the password. The password is stored in the code as plain text, so anyone who scans it can read it. Share the code only with people you would give the password to, and use a separate guest network if your router has one.

Open the QR code generator

What the code contains

The code is a short line of text that phones recognize. For a network called Example Home with the password sample;pass42, it reads:

WIFI:T:WPA;S:Example Home;P:sample\;pass42;;

Here T is the security type, S the network name and P the password. The format is documented by the open-source ZXing barcode project, and the Wi-Fi Alliance defined a compatible version in its WPA3 specification, as its IANA registration notes. Characters such as ; , : " and \ must be escaped with a backslash. Our generator does this for you, so type the name and password exactly as they are.

How to make one, step by step

  1. Open the QR code generator and, under What should the code contain?, choose Wi-Fi network.
  2. In Network name (SSID), type the name exactly as it appears in your phone's list of Wi-Fi networks. Capital letters and spaces count: Example Home and example home are different networks.
  3. Under Security, choose the type your router uses:
    • WPA, WPA2 or WPA3 for almost every home network today.
    • WEP only for a very old router that offers nothing else.
    • No password for an open network.
    The type is in your router's settings, usually on a page called Wireless or Wi-Fi security. If no one changed the router's Wi-Fi settings, the default network name and password are often printed on a label on the router.
  4. In Password, type the Wi-Fi password. Select Show password to check it for typos.
  5. Select Hidden network only if your network does not appear in the list of networks on its own.
  6. Scan the preview with your own phone and confirm it joins. Then choose Download PNG or Download SVG.

All of this happens in your browser. The page's security policy blocks every network connection, so the password never leaves your device, and the image description that screen readers announce names the network but not the password.

How guests scan it

Phones can also show a code for the network they are on. On Android, Google's help page on connecting to Wi-Fi explains how: Settings, Network & internet, Internet, your network, then Share. On an iPhone, Apple's guide to sharing your Wi-Fi password describes Show Network QR Code in the Passwords app. That suits a friend on the couch; a printed code suits the wall or the fridge.

Security: what to know before you print it

Printing and placement

If the code does not work

Common problems with Wi-Fi QR codes, their likely cause and the fix
ProblemLikely causeFix
The network is not foundA typo, a different capital letter or an extra space in the network nameCopy the name exactly from your phone's Wi-Fi list
The network is not found, though the name is rightThe network is hidden and Hidden network was not selectedSelect Hidden network
The phone finds the network but cannot joinA wrong password or security typeCheck the password with Show password, and choose WPA, WPA2 or WPA3 unless the router really uses WEP
The code worked before and stoppedThe password, network name or router changedMake a new code with the current details
Newer phones join, an older device does notThe router is set to WPA3 onlySwitch the router to WPA2/WPA3 Transitional
The camera does not reactThe code is too small or too light, has no margin, or reflects lightPrint it larger, dark on light, with its margin, on matte paper

When you scan codes yourself, our Android app SafeScan QR never shows the password of a Wi-Fi code on screen, and copies only the network name.

Questions and answers

Is a Wi-Fi QR code safe?

It is as safe as the place you put it. The code holds your password in plain text, so treat it like the password itself, and ideally make it for a guest network.

Can someone see my password from the code?

Yes. Many scanning apps display the full contents of the code, password included.

Does it work on iPhone and Android?

Yes. The camera on iPhones and on most Android phones recognizes Wi-Fi codes and offers to join.

What happens when I change the Wi-Fi password?

The old code stops working, because the old password is written into it. Make a new code and replace every printed copy.

Can I make a Wi-Fi QR code without an app?

Yes. Our QR code generator runs in the browser, is free and needs no account.

Does a Wi-Fi QR code expire?

No. The details are written into the code itself, so it works as long as the network name, password and security type stay the same.