How to Share Your Wi-Fi With a QR Code (and Keep It Secure)

Let guests join your Wi-Fi by scanning a QR code: how the Wi-Fi QR format works, special characters, hidden networks, printing a card and security tips.

Updated September 29, 2026 5 min read

Use the free WiFi QR Code GeneratorMake a QR code guests can scan to join your Wi-Fi network without typing

Reading out a Wi-Fi password is a small daily frustration. "Is that a zero or an O? Capital W?" Guests squint at the sticker on the router, cafés write the password on a chalkboard that nobody can read, and holiday rental owners get the same message every week. A Wi-Fi QR code fixes all of it: guests point their phone camera at the code, tap the prompt, and they are connected.

This guide explains what is actually stored in a Wi-Fi QR code, how to create one correctly (including passwords with special characters and hidden networks), how to display it, and how to keep your network secure while making it easy to join.

What is inside a Wi-Fi QR code

A QR code is just text arranged as a pattern of squares. For Wi-Fi, that text follows a widely supported format:

WIFI:T:WPA;S:OfficeGuest;P:BlueHarbour2024;;
  • T is the security type: WPA (which covers WPA, WPA2 and WPA3 personal networks), WEP, or nopass for an open network.
  • S is the network name, the SSID.
  • P is the password.
  • H:true is added for hidden networks that don't broadcast their name.
  • The string ends with a double semicolon.

When a phone camera recognises this format, it offers to join the network instead of opening a web page.

Special characters need escaping

Because semicolons, colons and commas separate the fields, they must be "escaped" with a backslash if they appear in the network name or password. So must backslashes and double quotes. A password of Sun;set:42 must be stored as Sun\;set\:42. Many hand-made codes fail for exactly this reason. A good generator escapes these characters for you.

Find your network details first

You need the exact network name and password, including capital letters:

  • Router sticker. Many routers print the default network name and password on a label. If you or your provider changed them, the sticker is out of date.
  • Router admin page. The wireless settings page shows the current name, password and security type.
  • A connected computer or phone. On Windows, the network's properties can show the password after you confirm with an administrator account. On a Mac, the Keychain Access app or Wi-Fi settings can reveal saved passwords. Recent iPhone and Android versions can display or share the password of the network you are connected to. Exact menus vary by version.

For the security type, choose WPA for almost any modern network. WEP is only found on very old routers.

Create the QR code with our tool

The WiFi QR Code Generator creates the code in your browser. Your password never leaves your device.

  1. Open the WiFi QR Code Generator.
  2. Enter the Network name (SSID) exactly as it appears in your Wi-Fi list, up to 32 characters.
  3. Choose Security: WPA / WPA2 / WPA3 (most networks), WEP (old routers), or None (open network).
  4. Enter the Password. Use the eye button to show it and check for typos. The tool warns you if a WPA password is shorter than eight characters, since WPA passwords are 8 to 63 characters.
  5. Switch on Hidden network only if your router does not broadcast its name.
  6. Optionally change the QR colour. Dark colours on white scan most reliably.
  7. The code appears on the right. Check the Encoded text below the settings; the password is masked unless you show it.
  8. Download it as PNG or SVG, Copy image, or click Print card for a ready-made card with the network name and password printed under the code.

Test it before you print

Scan the code with at least one iPhone and one Android phone if you can. Open the camera app, point it at the screen, and tap the network prompt. Recent phones handle Wi-Fi codes in the built-in camera; older phones may need a QR scanning app. If you receive the code as an image and want to check its contents, a QR Code Scanner can read it from the file. See also how to scan a QR code from a screenshot.

Displaying the code

  • At home: print the card and stick it inside a cupboard door or on the fridge, rather than in a window facing the street.
  • Holiday rentals: include the card in the welcome folder, and add the network name and password in text too for laptops and devices without cameras.
  • Cafés and offices: frame it at the counter or in meeting rooms. A size of a few centimetres is enough for scanning from arm's length; larger if people scan from further away.
  • Events: put the code on name badges or table cards.

Security considerations

A Wi-Fi QR code contains your password in plain text. Anyone who scans it, or photographs it, has your password. So:

  • Use a guest network. Most routers can run a separate guest network that isolates visitors from your computers, printers and smart devices. Put the guest network in the QR code, not your main one.
  • Use a strong password. Because guests never type it, the password can be long and random. Generate one with a Password Generator.
  • Change it periodically. For businesses and rentals, change the guest password from time to time and print a new card.
  • Don't post it publicly on social media or review sites.
  • Hidden networks are not a security feature. Hiding the SSID only stops it appearing in lists; the network is still discoverable with basic tools.

Other ways to share Wi-Fi

Phone-to-phone sharing. Recent iPhones can offer to share a password with a nearby contact, and many Android phones can display a Wi-Fi QR code for the connected network from the Wi-Fi settings. These are great for one-off sharing between phones; a printed code is better for many guests or laptops that can't scan.

WPS button. Some routers support pairing with a button press. It is convenient but has had security weaknesses, and many modern devices no longer support it.

General QR codes. A general QR Code Generator is fine for links and text, but it will not format and escape Wi-Fi details for you.

Frequently asked questions

Do guests need an app to scan a Wi-Fi QR code?

Usually not. The built-in camera on recent iPhones and Android phones recognises Wi-Fi codes. Older devices may need a scanner app.

Is my Wi-Fi password sent to your server?

No. The QR code is generated in your browser, and the password is never uploaded.

Why does the QR code say it cannot connect?

Most often the password or network name has a typo or the wrong capitalisation. Check the Encoded text, and make sure the security type matches your router.

Does the QR code expire?

No. It stores the network details directly, so it works until you change the network name or password.

Can I make a QR code for a hidden network?

Yes. Switch on Hidden network so phones know to look for a network that is not broadcast.

Try it now: WiFi QR Code Generator

Loading tool…