How to Share Your WiFi Password with a QR Code

Published 2026-05-25

Every time a friend visits, you spell out your 20-character WiFi password while they mistype it three times. There's a better way.

A WiFi QR code lets anyone scan and connect to your network in under two seconds. No spelling, no retyping, no digging through router settings. You generate the code once, print it, and stick it on the fridge or frame it by the front door. Done forever.

Generate your WiFi QR code free →

How WiFi QR codes work

The QR code isn't magic. It encodes a short text string that follows a standard format recognized by phone operating systems:

WIFI:T:WPA;S:networkname;P:password;;

That string contains three pieces of information: the security type (WPA, WPA2, WPA3, WEP, or none), the network name (SSID), and the password. When your phone's camera reads the QR code, it parses this string and presents a prompt to join the network. Tap "Join" or "Connect" and you're online.

There are a couple of optional fields too. If your network is hidden (meaning it doesn't broadcast its SSID), the string includes an H:true flag so the phone knows to connect even though it can't see the network in its scan list. Special characters like semicolons, colons, and backslashes need to be escaped with a backslash so the parser doesn't choke on them.

The important thing: no app is required on modern phones. The camera app handles it natively. The QR code is just a delivery mechanism for a text string your phone already knows how to interpret.

Device compatibility

Support varies by platform. Here's what works and what doesn't, along with troubleshooting tips for each.

Device / OSCamera App SupportNotes
iPhone (iOS 11+)YesBuilt into the Camera app since 2017. Point the camera at the code, tap the notification banner that appears. If it doesn't appear, check Settings > Camera and make sure "Scan QR Codes" is toggled on. Works on iPad too.
Android 10+YesBuilt into the default Camera app on stock Android. Some manufacturers also add a QR tile in Quick Settings — pull down the notification shade, tap the QR icon, and point. If your camera app doesn't detect the code, try Google Lens from the search bar.
Android 9 and olderNo (needs app)The default camera app on Android 9 and below doesn't scan QR codes. Install Google Lens (free) from the Play Store, or use any QR scanner app. Samsung devices with One UI 1.0+ are an exception — the Samsung camera detects QR codes via Bixby Vision even on Android 9.
Windows laptopNo native camera QRWindows doesn't have a built-in way to scan a QR code from the camera. If you have the code as an image file, you can use a browser-based QR reader or a browser extension. In practice, most people just type the password manually on laptops. The QR is really designed for phones.
MacNo native QR scanningmacOS doesn't have a camera-based QR scanner. If you have an iPhone nearby, use Continuity Camera: right-click in a supported app, select "Import from iPhone," and scan with the phone's camera. Alternatively, use a browser-based QR reader or just type the password.

A general troubleshooting tip: if your phone's camera sees the QR code but doesn't offer to connect, make sure you're running the latest OS version. Occasionally, WiFi QR handling breaks temporarily after an OS update and gets fixed in a point release. If the QR code flat-out won't scan, check the print quality — low-contrast prints or very small codes can be unreadable, especially in dim lighting.

WiFi QR for your Airbnb, restaurant, or office

WiFi QR codes aren't just for your home. They're especially useful in places where you regularly have new people who need network access.

Airbnb and vacation rentals. Print the QR code and include it on the welcome card or the information binder. Guests appreciate not having to ask for the password. Place a framed copy near the main entrance and another in the living room. Laminate the card if it's going to be handled by many guests — lamination also protects against spills and humidity.

Restaurants and cafes. Print the QR code on a table tent or include it on the menu. Customers will scan it instead of asking staff for the password. This saves your team repeated interruptions during busy service. A good print size for table tents is 2.5 to 3 inches square — large enough to scan easily from arm's length, small enough not to dominate the table.

Offices and coworking spaces. Put a framed QR code in the reception area, meeting rooms, and near the coffee machine. For offices with frequent visitors, this eliminates the IT-help-desk bottleneck of distributing WiFi credentials.

Recommended print sizes: For a card or welcome sheet, 1.5 to 2 inches square is plenty — phones read small codes easily when held close. For a framed print on a wall, go 3 to 4 inches square so people can scan from a couple of feet away. For a poster or large sign (conference room, lobby), 5 to 6 inches square works well from across a room.

Set up a guest network

If you're sharing WiFi with people who aren't part of your household or team, set up a separate guest network on your router. Most modern routers support this — it creates a second network with its own name and password, isolated from your main network.

Why this matters: devices on the guest network can reach the internet but can't see or communicate with devices on your main network. That means a guest's compromised phone can't reach your NAS, your printer, your smart home devices, or anything else on your primary network. It's a basic security boundary that costs nothing to set up.

Generate your QR code for the guest network, not your main one. That way you share access freely without exposing your primary network's password or its connected devices.

Security considerations

Sharing your WiFi password via QR code is generally safer than the alternatives. Writing the password on a whiteboard means anyone who walks by can photograph it. Texting it creates a permanent copy in someone's message history. A QR code is at least a physical artifact you control — you decide where it's posted and who has access to the space.

That said, a few things to keep in mind:

Why I built this tool

I got tired of the WiFi-password dance every time someone visited. I wanted a QR code on the fridge, but every generator I found either wanted me to install an app or ran my password through their server. The WiFi QR format is a simple text string — there's no reason this needs a backend. So I built a generator that runs entirely in the browser and produces a printable code in seconds. Your WiFi password never leaves your machine.


Built with vanilla HTML/JS. No frameworks, no backend, loads instantly.

Related tools

Joe — Software engineer with 20+ years of experience. Built ToolRack to provide fast, private tools without the bloat.