Connecting to Wi-Fi via QR Code: Instructions for Android and iPhone

Connecting to Wi-Fi via QR code is the fastest way to access the internet without having to manually enter complex passwords. It's especially convenient when you're visiting someone, visiting a cafe, or working at an office, where the network password consists of 20 random characters. Simply scan the code with your smartphone's camera, and you're online in a few seconds.

This technology works on all modern smartphones, but the connection process differs slightly depending on the operating system. Android The function is built into the standard settings, and iPhone Requires the use of the Camera app or third-party scanners. We'll cover both options in detail, as well as how to create your own Wi-Fi QR code if you want to share your network with friends.

Important: This method only works with networks that support the standards. WPA/WPA2 or WPA3If your router is using an outdated one WEP, it won't be possible to generate a QR code - you'll need to update your router settings.

📊 How often do you connect to new Wi-Fi networks?
Daily
Several times a week
Rarely, only when traveling
Never, I use mobile internet

1. How does Wi-Fi connection via QR code work?

A QR code for Wi-Fi contains encrypted information about the network: its name (SSID), encryption type, and password. When you scan the code, your smartphone automatically recognizes this information and offers to connect without any further action.

The code format is standardized and looks like this:

WIFI:T:WPA;S:my_network;P:my_password;;

Where:

  • 🔹 WIFI: — a prefix indicating the data type
  • 🔹 T:WPA — encryption type (can be WPA2 or WPA3)
  • 🔹 S:my_network — network name (SSID)
  • 🔹 P:my_password - password

Wi-Fi QR codes don't contain any personal user data—only technical information about the network. They're safe to scan even in public places.

The smartphone scanner recognizes this format and prompts you to connect. The entire process takes no more than 10-15 seconds if you already have a code. You can generate it either manually (using online generators) or automatically—directly in the settings of some routers.

2. Connecting on Android: Step-by-step instructions

On most modern smartphones running Android 10 And newer, the Wi-Fi QR code scanning feature is built into the standard Camera or Settings app. Let's look at both options.

Method 1: Via the Camera app

This method works on Samsung Galaxy, Xiaomi, Google Pixel and other popular brands:

  1. Open the app Camera.
  2. Point the lens at the QR code. Make sure the code fits completely within the viewfinder frame.
  3. A notification will appear in 1-2 seconds Connect to Wi-Fi?.
  4. Click on the notification and confirm the connection.

Enable Wi-Fi in Settings

Open the Camera app

Allow location access (if required)

Point the camera at the QR code from a distance of 10–20 cm-->

Method 2: Via “Settings” (if the camera does not recognize the code)

If your camera does not support automatic scanning:

  1. Go to Settings → Wi-Fi.
  2. Tap on the icon QR code (usually in the upper right corner).
  3. Point the camera at the code and wait for recognition.
  4. Confirm the connection.

On some firmware (for example, MIUI on Xiaomi) the path may differ: Settings → Connections → Wi-Fi → Advanced → QR code.

⚠️ Attention: If an error appears after scanning Failed to connect, check that the network is in range and that the router is not blocking new devices through MAC filtering.

3. Connecting on iPhone (iOS)

On iPhone With iOS 11 And the newer QR code connection works a little differently. Apple hasn't added this feature to the default settings, but it can be used through the Camera app or third-party scanners.

Method 1: Using the standard Camera

Apple has supported QR code recognition for Wi-Fi since iOS 11:

  1. Open the app Camera.
  2. Point the lens at the QR code. Hold your smartphone at a distance of 15–20 cm.
  3. A notification will appear in 1-2 seconds Wi-Fi network at the top of the screen.
  4. Tap the notification and confirm the connection.

If the notification does not appear, check that:

  • 🔹 The QR code was generated correctly (you can check it using the online validator)
  • 🔹 Enabled in iPhone settings QR code recognition (Settings → Camera)
  • 🔹 The code is not corrupted (no blurriness or overlapping areas)

Method 2: Via Command Center (for iOS 14+)

In newer versions of iOS, you can quickly open a QR code scanner:

  1. Swipe down from the top right corner of the screen to open Command center.
  2. Tap on the icon QR code (if it is not there, add it via Settings → Command Center).
  3. Point the camera at the code and confirm the connection.
⚠️ Note: You can't create a Wi-Fi QR code on an iPhone using standard tools. You'll need a third-party app (e.g. QR Code Generator) or online service.

4. How to create a QR code for your Wi-Fi network

If you want to share access to your network with guests, you can generate a QR code yourself. This will save them from having to enter the password manually. There are several ways to do this:

Method 1: Through the router settings

Many modern routers (for example, TP-Link, ASUS, Keenetic) can generate a QR code directly in the web interface:

  1. Connect to the router via a browser (usually at 192.168.0.1 or 192.168.1.1).
  2. Log in (using the login and password indicated on the router sticker).
  3. Go to the section Wi-Fi or Wireless network.
  4. Find the option QR code for connection (the name may differ).
  5. Download or print the generated code.

Example path for routers TP-Link: Advanced settings → Wireless mode → Wi-Fi QR code.

Method 2: Using online generators

If your router doesn't support QR code generation, use free services:

  • 🌐 QiFi — a simple generator with a minimalistic interface
  • 🌐 QR Code Generator — supports code design customization
  • 🌐 ZXing Decoder — to check the correctness of the generated code

Generation instructions:

  1. Select data type Wi-Fi.
  2. Enter the network name (SSID) and password.
  3. Specify the encryption type (WPA/WPA2 or WPA3).
  4. Download the resulting QR code in the following format: PNG or SVG.

Method 3: Via mobile apps

For Android And iOS There are apps that generate QR codes directly on your phone:

  • 📱 QR Code Generator (Android/iOS) - supports saving to the gallery
  • 📱 WiFi QR (Android) - a specialized application for Wi-Fi codes
  • 📱 Shortcuts (iOS) - you can create an automatic generation via Labels

Example of work through Shortcuts on iPhone:

  1. Open the app Labels.
  2. Create a new shortcut with an action Generate a QR code.
  3. Add text in the format WIFI:T:WPA;S:my_network;P:my_password;;.
  4. Save and run the shortcut.
⚠️ Warning: Do not share Wi-Fi QR codes in public chats or on social media. Attackers can use them to connect to your network and intercept your traffic.

5. Possible problems and their solutions

Sometimes connecting via QR code may not work. Let's look at the most common errors and how to fix them.

Problem Possible cause Solution
The QR code is not scanned. Poor lighting or blurry code Try moving the camera closer or turning on the flashlight.
An error appears Failed to connect The password in the QR code is incorrect or the network is hidden. Check the code details or temporarily disable hiding SSID in the router
iPhone doesn't recognize the code QR code recognition is disabled in the camera settings. Enable the option in Settings → Camera → QR code scanner
Android asks for a password despite a QR code Outdated Android version or custom firmware Please update your OS or use a third party scanner (eg. Google Lens)

If the problem persists, try:

  • 🔄 Reboot your router (sometimes helps with authentication errors)
  • 📱 Restart your smartphone
  • 🔧 Reset network settings on your phone (Settings → System → Reset → Reset Wi-Fi settings)
What should I do if a QR code leads to a phishing site?

If, after scanning the QR code, you are redirected to a website asking for personal information (usernames, passwords, bank card number), close the page immediately. Legitimate Wi-Fi QR codes NEVER require additional data—they only contain network information. If you suspect a code is counterfeit, do not connect to that network and notify the establishment's administrator (if the code is posted in a public area).

6. Security when connecting via QR code

While Wi-Fi QR codes are convenient, they can become a tool for cyberattacks. Attackers sometimes replace legitimate codes in public places with fake ones that redirect to phishing sites or connect to malicious networks.

Signs of a fake QR code:

  • 🚨 The code is pasted over another (traces of old glue are visible)
  • 🚨 After scanning, a website opens instead of connecting to Wi-Fi
  • 🚨 Network name (SSID) contains random characters or does not correspond to the establishment

How to protect yourself:

  • 🔒 Before connecting, please confirm the network name with the establishment's staff.
  • 🔒 Use a VPN when connecting to public Wi-Fi (e.g. ProtonVPN or Windscribe).
  • 🔒 Disable automatic connection to open networks in your phone settings.

If you're a network administrator (for example, in a cafe or office), monitor the integrity of posted QR codes. Regularly check that they haven't been tampered with, and update Wi-Fi passwords every 2-3 months.

7. Alternative ways to quickly connect to Wi-Fi

If the QR code doesn't work for some reason, there are other ways to quickly connect to the network without manually entering the password.

Method 1: WPS (Wi-Fi Protected Setup)

Many routers support the technology WPS, which allows you to connect to the network by pressing a button on the device itself:

  1. Go to Settings → Wi-Fi on the phone.
  2. Select More → WPS.
  3. Click the button WPS on the router (usually it is labeled and located on the back panel).
  4. Wait for the connection (usually takes 1-2 minutes).

⚠️ Attention: WPS is considered less secure than QR codes, as it is vulnerable to brute-force attacks. Disable this feature in your router settings if you don't use it.

Method 2: Transferring a password from another device (Android)

On Android 10+ You can share your Wi-Fi password from another phone via Nearby Share:

  1. Connect both phones to the same Wi-Fi network.
  2. On the phone that is already connected, open Settings → Wi-Fi.
  3. Tap on the network name and select Share.
  4. Select the second phone via Nearby Share.
  5. Confirm receipt of the password on the second device.

Method 3: Using NFC (if supported)

Some routers (eg. ASUS RT-AX88U) support connection via NFC:

  • 📱 Bring your smartphone with NFC enabled to the special tag on the router.
  • 📱 Confirm the connection in the window that appears.

This method is rare, but works instantly.

FAQ: Frequently asked questions about connecting via QR code

Is it possible to connect to Wi-Fi via QR code if the network is hidden?

Yes, but for this to happen the QR code must contain the correct one. SSID (network name), even if it's not broadcast. The scanner will recognize the data and connect, despite the hidden nature. However, some smartphones may request confirmation to connect to hidden networks.

Why doesn't my iPhone see the Wi-Fi QR code even though the camera works?

Please check the following points:

  1. Make sure that in Settings → Camera the parameter is enabled QR code scanner.
  2. The QR code must be in the format WIFI:T:WPA;S:...Some generators create codes in a non-standard format.
  3. Update iOS to the latest version (QR support for Wi-Fi may not work correctly in older versions).
Is it possible to create a QR code for a network with MAC filtering?

Yes, but only devices whose MAC addresses added to the router's whitelist. The QR code itself will contain only the network name and password, but the router will block the connection if MAC devices not allowed.

How do I disable automatic Wi-Fi connection after scanning a QR code?

On Android:

  1. Go to Settings → Wi-Fi.
  2. Tap on the network name.
  3. Disable the option Auto-connection.

On iPhone:

  1. Open Settings → Wi-Fi.
  2. Tap on the icon i next to the network name.
  3. Turn it off Auto-connection.
Does this method work on older smartphones (Android 8, iOS 10)?

On Android 8 and below There is no built-in QR code support for Wi-Fi. You will need to install a third-party app, such as QR & Barcode Scanner from Gamma Play.

On iOS 10 Scanning QR codes with the camera is not supported. Use the app. QR Reader from the App Store.