How to create a Wi-Fi QR code (and share it safely)
Make a QR code that lets guests join your Wi-Fi without typing the password, using your phone’s built-in sharing or the standard WIFI text format.
Add LearnQRCode as a preferred source on Google
Quick answer
- A Wi-Fi QR code holds your network name and password as text, such as
WIFI:T:WPA;S:MyNetwork;P:MyPassword;;. - Android: Settings > Network & internet > Internet > your network > Share. iPhone (iOS 18): Passwords > Wi-Fi > network > Show Network QR Code.
- Anyone who scans the code can read the password, so use a guest network for printed codes.
Make a Wi-Fi QR code in 3 steps
- 1Find network name and security typeThe name is case-sensitive
- 2Write the WIFI: lineWIFI:T:WPA;S:Name;P:Password;;
- 3Test on a phone not yet joined
In this guide
Guests scan a Wi-Fi QR code, their phone asks to join, and they are online. No squinting at the router.
How a Wi-Fi QR code works
A Wi-Fi code doesn’t open a website. It holds a short line of text describing your network, in a format from the open-source ZXing project that works on Android and iOS 11 and later:
WIFI:T:WPA;S:MyNetwork;P:MyPassword;;
Fields are separated by semicolons and the line ends with two:
| Field | Meaning | Example |
|---|---|---|
T: |
Security type: WPA, WEP, nopass for an open network (or leave it out). ZXing also lists WPA2-EAP for enterprise networks. |
T:WPA |
S: |
Network name (SSID). Required. | S:CafeGuest |
P: |
Password. Leave out for open networks. | P:coffee2026 |
H: |
Optional. true if the network is hidden. |
H:true |
Field order doesn’t matter. The code works offline and nothing is stored on a server.
Method 1: Share from Android
From Google’s Android Help:
- Open Settings.
- Tap Network & internet > Internet.
- Tap your network, then Share.
- Your friend scans the QR code shown.
You may need your fingerprint, face or PIN. Menu names vary slightly by brand. To print it, screenshot and crop, or use Method 3.
Method 2: iPhone (iOS 18)
- Open the Passwords app.
- Tap Wi-Fi (you may need Back or Show Sidebar first).
- Choose the network.
- Tap Show Network QR Code.
iPhones can also share a password with a nearby Apple device without a code. Apple says the sharing iPhone must be unlocked and on the network, both devices within Bluetooth and Wi-Fi range, not using Personal Hotspot, and in each other’s contacts.
Method 3: Build your own Wi-Fi QR code
For a printed sign, most QR code generators (for example QRJiffy’s Wi-Fi QR code generator, made by our publisher, DPR Software Labs) have a Wi-Fi option that writes the WIFI: text for you. Any generator that accepts plain text works too.
- Find your exact network name. It is case-sensitive.
- Check the security type in your router settings. For WPA or WPA2 personal, use
WPA. - Write the line, such as
WIFI:T:WPA;S:Home-WiFi;P:correct horse battery;; - Generate and download, ideally SVG or PDF for print. See how to print QR codes.
- Test on an iPhone and an Android that haven’t joined the network before.
For WPA3, check your generator lists it and test with your guests’ likely devices, since support can differ.
Special characters
ZXing says backslash \, semicolon ;, comma ,, double quote " and colon : should each be escaped with a backslash:
| Your password | How it goes in the code |
|---|---|
pass;word |
P:pass\;word |
a:b,c |
P:a\:b\,c |
back\slash |
P:back\\slash |
A good generator does this for you. If a hand-written code won’t connect, check this first.
Is it safe?
As safe as writing the password on a card: fine for people you trust, risky in public.
- The password is readable as plain text, and many scanner apps show it.
- Use a guest network for public codes, keeping visitors away from your own devices.
- Change the password when it’s widely shared, and print a new code.
- Watch for tampering. Someone could stick their own code over yours. See QR code scams.
Make the sign easy to use
Place it at eye level near seating, print it at least a few centimetres wide (see QR code size), and add “Scan to join our Wi-Fi”. Print the network name and password beneath for laptops and older devices.
Frequently asked questions
- Can I see my Wi-Fi password using a QR code?
- Yes. The password is stored as plain text inside the code, so many scanner apps will display it. That is also why you should only print a Wi-Fi QR code for a network you are happy to share.
- How can I share my Wi-Fi password without a QR code?
- iPhones can share a Wi-Fi password with a nearby friend’s iPhone, iPad or Mac when the devices are close, unlocked and in each other’s contacts. Otherwise you can simply read out or write down the network name and password.
- Does a Wi-Fi QR code stop working?
- It keeps working until you change the network name, password or security type. After a change, make a new code and replace any printed copies.
- Which phones can join Wi-Fi from a QR code?
- Current iPhones and Android phones can join a network by scanning a Wi-Fi QR code with the camera or a scanner. The format has been supported by iPhone since iOS 11.


