Connecting to Wi-Fi via QR code on Android is a quick and convenient way to avoid manually entering complex passwords. This is especially useful for networks with long character combinations or special characters that are easy to mistype. Simply scan the code with your smartphone's camera, and your device will automatically connect to the network.
The technology works on most modern smartphones running Android 10 and later, but there are nuances for different manufacturers (Samsung, Xiaomi, Google Pixel etc.). In some cases, you'll need to install a third-party app if the built-in feature isn't available. We'll cover all the options, from standard tools to alternative solutions.
Important: QR codes for Wi-Fi contain not only the network name (SSID) and password, but also the encryption type (WPA2/WPA3). This ensures that the connection will be error-free. However, Some public networks (for example, in hotels or airports) may require additional authorization through a browser even after scanning the QR code..
1. What data does a Wi-Fi QR code store?
A QR code for connecting to Wi-Fi is an encrypted string in the following format:
WIFI:T:WPA;S:my_network;P:my_password;;
Where:
- 🔹
WIFI:— a prefix indicating the data type. - 🔹
T:— encryption type (WPA,WPA2,nopassfor open networks). - 🔹
S:— network name (SSID). - 🔹
P:— password (absent for open networks). - 🔹
H:- hidden SSID (optional if the network is not broadcast).
This format is supported by all modern Android devices. If the QR code is generated incorrectly (for example, by a third-party service with errors), the smartphone may not recognize it. In this case, manually checking the string using any QR decoder.
2. Standard method: scanning via Android camera
Starting from Android 10The system has a built-in function for recognizing Wi-Fi QR codes via a standard application. CameraThe instruction is valid for Google Pixel, Samsung Galaxy (with shell One UI), Xiaomi (MIUI 12+) and other devices with pure Android.
Open the Camera app
Point the lens at the QR code (distance 10–20 cm)
Wait for the Wi-Fi network notification to appear
Click on the pop-up window to connect-->
Step-by-step instructions:
- Open the app Camera on a smartphone.
- Point the camera at the QR code so that it fits entirely within the viewfinder. Distance: 10–30 cm.
- After 1-2 seconds, a notification will appear at the bottom of the screen with the network name (for example,
Connect to "Home_WiFi"). - Tap the notification and confirm the connection.
If the notification does not appear:
- 🔦 Make sure the QR code is not damaged (no blurriness or scratches).
- 🔦 Check if Wi-Fi is enabled on your device (
Settings → Network & Internet → Wi-Fi). - 🔦 Update the application Camera through Google Play.
3. Alternative scanning methods
If the built-in camera does not recognize the QR code, use one of these methods:
| Way | Application | Pros | Cons |
|---|---|---|---|
| Google Lens | Built into Google Photos or as a standalone app | Recognizes codes even from the screen of another device | Requires internet connection for first launch |
| QR & Barcode Scanner | Gamma Play (for free) | Works offline, supports all QR formats | Advertising in the free version |
| WiFi QR Generator | WiFi QR (for creating and scanning) | Allows you to generate your own QR codes for the network | Interface in English |
Instructions for Google Lens:
- Open Google Photos or application Google Lens.
- Click on the icon Lens (in the form of a circle with a dot inside).
- Point your camera at the QR code.
- A button will appear in the search results.
Connect to Wi-Fi.
What to do if the QR code does not scan?
Try increasing the brightness of the screen on the device you're scanning the code from. Sometimes the issue is insufficient contrast. Also, check that the code isn't obscured by a screen protector or case—even a slight darkening can interfere with recognition.
4. How to create your own QR code for Wi-Fi?
If you want to share access to your network without revealing the password, generate a QR code yourself. This is convenient for guests or devices without a keyboard (e.g., Smart TV).
Generation methods:
- 🌐 Online services: Qifi, QR Code Generator.
- 📱 Mobile apps: WiFi QR, QR Code Reader.
- 💻 Command line (for advanced users):
echo "WIFI:T:WPA;S:my_network;P:my_password;;" | qrencode -o wifi_qr.png -s 10
Where my_network — the name of your network, my_password - password, wifi_qr.png — the name of the output file.
5. Troubleshooting connection issues
If the connection does not occur after scanning the QR code, please check the following:
⚠️ Attention: Some routers block new devices from connecting based on their MAC address. If this is enabled in your router settings,MAC address filter, add your smartphone's address to the whitelist (Router Settings → Wireless Mode → MAC Filter).
| Problem | Cause | Solution |
|---|---|---|
| The QR code is not recognized | Corrupt code or low resolution | Try scanning the code from another device or printing it out. |
| "Unable to connect" | Incorrect password or encryption type | Check the data in the QR code using a decoder (see section 1) |
| There is a connection, but no internet | Router restrictions (e.g. parental controls) | Reboot your router or check your DHCP settings. |
If your smartphone constantly asks for a password after scanning the QR code:
- Remove the network from saved (
Settings → Wi-Fi → Tap on the network → Delete). - Please scan the code again.
- If the problem persists, reset your network settings (
Settings → System → Reset → Reset Wi-Fi settings).
6. Security: Risks of Using QR Codes for Wi-Fi
QR codes simplify connection, but can become a vulnerability if used carelessly. Key risks:
- 🔴 Code substitution: Attackers can replace the original QR code with their own (for example, in a cafe or airport), redirecting you to a phishing network.
- 🔴 Open networks: Some codes contain
T:nopass- this means that the network is not password protected and is vulnerable to a man-in-the-middle attack. - 🔴 Hidden settings: The QR code may include proxy or DNS parameters that redirect traffic through the attacker's server.
How to protect yourself:
- 🛡️ Scan codes only from trusted sources (for example, from a network administrator).
- 🛡️ Before connecting, check the data in the QR code using a decoder (see section 1).
- 🛡️ Use a VPN on public networks, even if you connect via QR.
- 🛡️ Disable automatic connection to open networks (
Settings → Wi-Fi → Advanced → Auto-connect).
⚠️ Attention: If after connecting via QR code your smartphone starts showing suspicious ads or redirecting to unknown sites, immediately forget the network (Settings → Wi-Fi → Tap on the network → Delete) and check your device for viruses.
7. Features for different smartphone manufacturers
The QR code scanning feature for Wi-Fi may vary depending on the Android operating system. Let's look at the nuances for popular brands:
| Manufacturer | shell | Scanning Features | Alternative solution |
|---|---|---|---|
| Samsung | One UI | Recognizes QR codes via camera or Bixby Vision | Application QR Code Reader |
| Xiaomi/Redmi/Poco | MIUI | Built-in feature in the camera, but may require an update | Google Lens or Mi Scanner |
| Huawei/Honor | EMUI/Magic UI | Requires use Huawei Lens or HiVision | Third party scanners from AppGallery |
| Google Pixel | Pure Android | Support via Google Lens or a standard camera | Not required |
On devices Xiaomi With MIUI 11 and later You may need to enable the QR code scanning feature manually:
- Open Camera.
- Tap the three bars in the upper right corner.
- Select
Settings → Scan QR codes. - Activate the switch.
⚠️ Attention: On some budget models (for example, Redmi 9A or Samsung Galaxy A03) QR code scanning via the camera may not be possible due to hardware limitations. In this case, use third-party apps.
FAQ: Frequently Asked Questions
Is it possible to scan a Wi-Fi QR code from another phone's screen?
Yes, but keep two things in mind:
- The brightness of the source screen must be at maximum (otherwise the camera will not recognize the code).
- On some smartphones (eg. Samsung With AMOLED screens) automatic color adjustment may occur, distorting the QR code. In this case, it's best to display the code on another device or print it out.
Why does it say "Saved, but not connected" after scanning the QR code?
This error occurs in three cases:
- 📶 The network is out of range (check the signal strength).
- 🔒 It's enabled in the router settings
MAC address filter, and your device is not whitelisted. - 🔄 The router is overloaded (try connecting in 1-2 minutes).
Solution: Restart your router or check if your network settings (such as your password) have been changed.
How do I connect a device without a camera (like Android TV) to Wi-Fi via a QR code?
For devices without a camera (eg. Nvidia Shield or Xiaomi Mi Box) there are two options:
- Generate a QR code on your phone and scan it with your smartphone, which is already connected to the network. Then manually enter the data on the TV set-top box.
- Use the companion app (For example, Android TV Remote Control), which allows you to transfer network data from your smartphone to your TV.
Some modern Smart TV (For example, Samsung QLED 2022+) support scanning QR codes via the built-in camera.
Is it possible to change the Wi-Fi password without updating the QR code?
No. The QR code contains an encrypted password, so if you change it, you'll need to generate a new one. Otherwise, devices scanning the old QR code will be unable to connect.
Exception: If you use dynamic QR codes (for example, via Unifi Controller for corporate networks), which are updated automatically when the password is changed.
Does this method work on iPhone?
Yes, but with some reservations:
- 🍏 On iOS 11 and later You can scan QR codes for Wi-Fi via standard camera (similar to Android).
- 🍏 To generate a QR code on an iPhone, you will need a third-party application (for example, QR Code Reader), since there are no built-in tools.
Detailed instructions for iPhone: official Apple help.