QR Code Guides · 10 min read

How to Connect to Wi-Fi Using a QR Code (Windows 11, Android, iPhone)

By Toolsque Team · July 29, 2026 · Updated October 24, 2026

To connect to Wi-Fi using a QR code, open your phone camera, point it at the code, and tap Join Network. On Windows 11, open the Camera app, switch to barcode mode and scan the code, and Settings asks you to confirm the network. With no camera, take a screenshot and read it with a WiFi QR decoder to get the password.

Whether you are scanning a sticker on a router, a table card at a cafe, or a QR code shared from a friend's phone screen, your device can read the network credentials directly. Here is how to connect across Android, iPhone, Windows, and Mac, plus what to do when your scanner only prints raw text.

How to Scan a QR Code to Connect to Wi-Fi: Quick Steps

  1. Open a scanner. On a phone, open the Camera app. On Android you can also use the Scan QR code tile in Quick Settings. On Windows 11, open the Camera app and switch to barcode mode.
  2. Point it at the code and hold steady until a Wi-Fi banner with the network name appears.
  3. Tap Join, Connect or Join Network. On Windows 11, select the link and confirm the network in Settings.
  4. Check the Wi-Fi icon. If it does not connect within a few seconds, see the troubleshooting answer in the FAQ below.

Connecting to Wi-Fi using a QR code works because the code holds the network name, the security type and the password in a fixed text format, so your device fills them in for you and nothing has to be typed. The sections below cover each device in detail.

How to Connect to WiFi with a QR Code on Android

Android devices running Android 9 and newer scan WiFi QR codes natively without third-party apps. You can connect using three built-in methods:

  1. Using the Camera App: Open your default Camera app, aim the lens at the WiFi QR code, and hold steady for a moment. A notification bubble showing your network name will pop up. Tap Connect to network or Join.
  2. Using Quick Settings QR Scanner: Swipe down twice from the top of your screen to open the Quick Settings panel. Tap the QR code scanner or Scan QR code tile. Point the camera at the code, and tap the network join prompt.
  3. Using WiFi Settings: Go to Settings > Network & internet > Internet (or Wi-Fi). Scroll to the bottom of the network list and tap the QR code icon next to Add network. This opens the dedicated system WiFi scanner that automatically connects and saves the network profile.

If nothing happens when aiming your camera, ensure that Google Lens suggestions or Scan QR codes is turned on in your Camera settings. For full camera troubleshooting steps, review our guide on how to scan QR codes on phones.

How to Connect to WiFi with a QR Code on iPhone and iPad

The iPhone Camera app reads WiFi QR codes on iOS 11 and later:

  1. Open the native Camera app from your Home Screen or Lock Screen.
  2. Hold your device so the QR code appears clearly in the viewfinder.
  3. A yellow banner labelled Join "[Network Name]" Network appears below or above the QR code.
  4. Tap the yellow banner, then tap Join on the confirmation alert. iOS configures the security settings and joins the network immediately.

You can also use the Scan Code control in Control Center. If you do not see it, add it to Control Center first. If the camera ignores the code, make sure Scan QR Codes is enabled under Settings > Camera.

How to Connect to Wi-Fi Using a QR Code on Windows 11

Windows 11 can read a Wi-Fi QR code with its own Camera app and join the network through Settings, with no password to type. Microsoft describes the steps in its support article Connect to a Wi-Fi network in Windows.

  1. Open the Camera app. Type "Camera" in the Start menu search if it is not pinned.
  2. Switch to barcode mode with the barcode button beside the photo and video buttons.
  3. Point the camera at the Wi-Fi QR code until a link appears on screen, then select the link.
  4. Settings opens and asks you to confirm the network. Select Connect, and choose whether the PC should connect automatically when the network is in range.

If there is no barcode button, update Windows and the Camera app from Microsoft Store, then look in the Camera app settings for a barcode or QR scanning option. Older builds of the Camera app do not have one.

No camera, or on Windows 10 or a Mac

A desktop PC without a webcam, or a laptop whose Camera app has no barcode mode, can still join without typing the password from a printout:

  1. Take a screenshot of the QR code (press Win + Shift + S on Windows or Cmd + Shift + 4 on Mac), or take a photo with your phone and send it to your computer.
  2. Open our client-side WiFi QR code decoder in your web browser.
  3. Paste the screenshot or drop the image file into the decoder box. The tool shows the network name (SSID), password and security type, decoded in your browser without uploading anything.
  4. Copy the password, open the Wi-Fi menu from the network icon on the taskbar, select the network name, and paste the password into the security key box.

Share a Windows PC's Wi-Fi with a QR code

Going the other way, a Windows 11 PC that is already connected can show its network so a phone can scan it. Open Settings, then Network & internet, then the connected network's properties, and select Show next to the Wi-Fi password. On recent versions of Windows 11 a QR code appears beside the password for the phone's camera to scan.

For more details on reading passwords from image files on desktop computers, see our step-by-step guide to finding WiFi passwords from QR codes.

What to Do If Scanning a WiFi QR Code Only Shows Raw Text

If you scan a WiFi QR code with a generic barcode reader or an older scanning app, you might see raw text instead of a "Connect" button. The screen usually displays something like:

WIFI:T:WPA;S:CafeNetwork;P:SuperSecretPass;;

This text is not an error; it is the standardized WiFi configuration payload. A QR code only stores characters, and standard phone cameras use a specialized parser to turn that string into a WiFi profile. If your scanner app lacks this parser, here is how to read the fields:

  • T: The authentication type (e.g., WPA, WEP, or nopass). WPA covers WPA, WPA2, and WPA3.
  • S: The exact Network Name (SSID). This is case-sensitive.
  • P: The network password (Pre-Shared Key).
  • H: Indicates whether the network is hidden (true or false).

You can paste that raw string directly into our WiFi QR decoder to isolate the SSID and password cleanly, or read the full syntax in our WiFi QR code format guide.

Understanding the WiFi QR Code Format and Escaped Characters

WiFi QR codes follow the industry-standard MeCard-like format established by ZXing. The entire string starts with WIFI: and terminates with two semicolons ;;.

Four special characters must be escaped with a backslash (\) whenever they appear inside an SSID or password:

  • Semicolon (;): Escaped as \;
  • Colon (:): Escaped as \:
  • Comma (,): Escaped as \,
  • Backslash (\): Escaped as \\

If a password is Pass;word:123, the raw QR payload must encode it as P:Pass\;word\:123;. If escaping is missed, a phone scanner cuts the password short at the first semicolon, passing only Pass to the connection manager and causing an immediate authentication failure. If you need to generate a code with special characters, our free WiFi QR code generator handles all backslash escaping automatically.

How to Connect to Hidden WiFi Networks (H:true)

When a router has SSID broadcast turned off, standard devices cannot find the network by listening to passive beacon broadcasts. A standard WiFi QR code will cause the phone to search for broadcast beacons and eventually time out with an error.

To connect to a hidden network via QR code, the payload must include the H:true; tag, such as WIFI:T:WPA;S:PrivateOffice;P:SecretKey123;H:true;;. The H:true flag instructs the phone operating system to actively probe for the hidden SSID and establish the connection.

Security Best Practices: Is It Safe to Scan Public WiFi QR Codes?

Scanning a WiFi QR code is generally safe because a QR code is simply encoded text that your camera interprets. However, connecting to an untrusted public WiFi network carries standard network risks:

  • Rogue Hotspots: An attacker could place a fraudulent QR sticker over a legitimate cafe code, tricking visitors into connecting to an evil twin access point designed to intercept unencrypted traffic.
  • Plaintext Credentials: Standard WiFi QR codes store passwords in plain text without encryption. Anyone who takes a photo of the printed code can read the password.
  • Verification: If you are unsure about a public QR code, scan it using a safe QR code scanner first to inspect the payload and verify the network name before authorizing your device to connect.

If you encounter persistent connection problems after scanning, work through our checklist of WiFi QR code connection fixes.

Frequently Asked Questions

How do I scan a QR code to connect to Wi-Fi?

Open the default Camera app on your iPhone or Android phone, point the camera at the WiFi QR code, and hold steady. When a notification banner appears with the network name, tap Join or Connect to automatically enter the credentials and connect.

Why does my phone show raw text instead of connecting?

If your scan displays a string starting with WIFI:T:WPA;S:..., your scanner app lacks a native WiFi parser. Use your phone's built-in camera or Settings QR scanner instead, or paste the text into an online WiFi QR decoder to extract the password.

Why won't my phone connect to Wi-Fi after scanning the QR code?

The scan worked if you saw the network name, so the problem is in the details stored in the code or in the network itself. The usual causes are a password that was changed after the code was printed, the wrong security type (WPA written as WEP, or the reverse), an unescaped special character in the password, a hidden network without the hidden flag, or an old saved profile for the same network. Forget the network on your phone and scan again, and if it still fails, read the code with a WiFi QR decoder to check the password it contains. Our guide to WiFi QR codes that do not work covers each fix.

Can I connect a Windows laptop to WiFi using a QR code?

Yes. On Windows 11 with a camera, open the Camera app, switch to barcode mode and scan the code, then select the link: Settings asks you to confirm the network and connects. Without a camera, or on Windows 10, take a screenshot of the code, read it with an in-browser WiFi QR decoder, and paste the password into the Wi-Fi menu.

What if the WiFi password contains special characters?

Semicolons, colons, commas, and backslashes must be escaped with a preceding backslash in the QR code payload (e.g., \; for a semicolon). Without escaping, scanners truncate the password and fail authentication.

Is it safe to scan WiFi QR codes in public places?

The scanning process is safe, but always verify that the network name matches the business you are visiting. Avoid transmitting sensitive personal data over unverified open or public WiFi networks.

By Toolsque Team. Steps checked against Apple Support: Scan a QR code with your iPhone or iPad and Android Help: Connect to Wi-Fi networks and Microsoft Support: Connect to a Wi-Fi network in Windows, October 2026.

Explore more: Browse our complete directory of free QR tools and utilities.

Related guides

How to Find WiFi Password from a QR Code Quick answer: To get the WiFi password from a QR code: Have a picture of the… WiFi QR Code Not Working? Fixes for iPhone and Android You scan the WiFi QR code, and… nothing. No connection prompt, an error, or just raw… WiFi QR Code Format Explained (SSID, Password, WPA2 Example) WiFi QR format, WiFi QR code syntax, WiFi credentials format, WPA3 QR code format, WiFi QR…
About Toolsque
Every tool and guide here is built and tested by hand. QR codes follow ISO/IEC 18004 and barcodes follow the GS1 rules, and every reader is tested with real images and a real scanner before release. Read how we build and test.