Why is a QR code more convenient than a password?
Connecting to Wi-Fi via QR code saves time and eliminates errors when entering complex passwords. Instead of rewriting the 20-character combination from the router or asking a neighbor, simply scan the code with your laptop's camera. This method is especially useful for guest networks in cafes, airports, or coworking spaces, where passwords are frequently changed.
The technology works on most modern laptops running Windows 10/11, macOS (starting from Monterey) and some distributions Linux with support nm-connection-editorThe main requirement is a webcam and the necessary drivers for its proper operation. If the camera is disabled or not recognized by the system, this method will not work.
Wi-Fi QR codes contain encrypted network data: SSID (network name), encryption type (WPA2/WPA3) and a password. These can be generated on the router, in the provider's mobile app, or using online services. Important: the code is only valid for the network for which it was generated.
Laptop and router requirements
Before attempting to connect via QR code, check your hardware compatibility. Here are the minimum requirements:
- 🖥️ Laptop: Windows 10 (version 1903+) or 11, macOS 12+ (Monterey), Linux with
NetworkManager1.22+. This feature may not be available on older operating systems. - 📷 Webcam: Built-in or external, connected via USB. Must be recognized by the system (check in
Device Manageron Windows orSystem informationon macOS). - 📶 Router: Modern models from TP-Link, ASUS, Keenetic, MikroTik (with firmware 6.45+) support QR code generation. Older devices (manufactured before 2018) may not have this feature.
- 🔒 Network type: Encrypted networks only
WPA2-PSKorWPA3-PSKOpen networks (without password) and Enterprise networks (with logins) are not supported.
If your router is not able to generate a QR code, you can create one manually using online services (for example, Qifi or WiFi Explorer). To do this, you will need to know the network name (SSID) and password.
⚠️ Please note: Some public hotspots (in hotels and airports) block QR code connections, requiring authorization through a portal. In this case, this method will not work.
Connection on Windows 10 and 11
In recent versions of Windows, the QR code scanning feature for Wi-Fi is built into the system settings. Here are the step-by-step instructions:
- Open
Parameters(keysWin + I) and go to the sectionNetwork and Internet → Wi-Fi. - Click
Managing known networks, then selectAdd a new network. - In the window that opens, click on the icon QR code (will appear in the upper right corner if the camera is available).
- Point your laptop camera at the QR code on the router screen or printout. Keep the distance between 10 and 30 cm for a clear scan.
- Wait for connection confirmation. If the code is recognized correctly, the laptop will automatically connect to the network.
If the QR code icon is not displayed, update your camera drivers via device Manager or install the latest version of Windows. On laptops with IR cameras (for example, for Windows Hello) you may need to disable the IR filter in the camera settings.
The camera is enabled in Device Manager.
QR code is clear, no blur
The laptop is within the network coverage area.
Windows version not older than 1903-->
Connecting on macOS (Monterey and later)
On MacBook and iMac with macOS 12 In Windows 10 and later, the QR code scanning function for Wi-Fi is integrated into the system menu. Here's how to do it:
- Click on the Wi-Fi icon in the menu bar (upper right corner of the screen).
- Select an item
Other networks.... - A button will appear at the bottom of the window. Scan the QR code - press it.
- Allow access to the camera (if prompted) and point the lens at the QR code.
- After a successful scan, macOS will prompt you to connect to the network. Confirm your action.
On macOS Big Sur (11.x) and later, the function may be missing. In this case, use third-party applications from App Store, For example QR Journal or WiFi QRThey can read codes and automatically connect Macs to networks.
⚠️ Note: On Macs with chips Apple M1/M2 Scanning is faster, but may be blocked by corporate security policies (for example, on office laptops).
Connecting to Linux (Ubuntu, Fedora, Arch)
Most Linux distributions don't have built-in support for QR codes on Wi-Fi, but you can add it using a utility. nm-connection-editor and third-party tools. Instructions for Ubuntu 22.04+ and similar distributions:
- Install the QR code scanning package:
sudo apt install zbar-tools qrencode - Download a script for processing Wi-Fi QR codes (for example, wifi-qr) and make it executable:
chmod +x wifi-qr.sh - Run the script and scan the code using your webcam:
./wifi-qr.sh --scan - Once recognized, the code will automatically add the network to
NetworkManagerConnect to it through the system menu.
For Fedora or Arch Linux replace the installation command with:
- 📦 Fedora:
sudo dnf install zbar qrencode - 📦 Arch:
sudo pacman -S zbar qrencode
If the script doesn't work, check that the service NetworkManager active:
systemctl status NetworkManager
Generate a QR code for your network
If your router doesn't automatically generate QR codes, you can generate them manually. To do this, you'll need:
- 🔑 SSID (network name) - look on the router sticker or in the settings (
192.168.0.1or192.168.1.1). - 🔐 Password - the same one that is used to connect devices.
- 📡 Encryption type - usually
WPA2-PSK(specified in the router settings).
Use one of the proven services:
| Service | Link | Peculiarities |
|---|---|---|
| Qifi | qifi.org | Simple interface, supports hidden networks (hidden SSID) |
| WiFi QR Generator | qr.wifiexplorer.com | Allows you to customize the design of the QR code |
| ZXing Decoder | zxing.org | Supports code validation |
After generation, save the QR code in the format PNG Or print it out. For security reasons, do not transfer files containing the code over unsecured channels (for example, unencrypted instant messaging apps).
How to check if a QR code is working
Scan it with your phone (Android/iOS) using the Camera app or Google Lens. If your phone prompts you to connect to the network, the code is correct.
Common mistakes and their solutions
If your laptop doesn't connect to Wi-Fi via QR code, check the following:
- 🚫 The camera is not working: Check the drivers in
Device Manager(Windows) orSystem information(macOS). On Linux, runls /dev/video*- if there are no devices, the camera is disabled. - 🔄 The QR code is not recognizedMake sure the code is not damaged (no blurring or scratches on the printout). Try scanning it from a different screen or increase the contrast.
- 🔌 The laptop does not connect to the network: Check that the network is not hidden (
hidden SSID) and the router does not block new devices (settingsMAC Filter). - 🔒 Authentication error: Make sure that the encryption type in the code matches the router settings. For example, if the router uses
WPA3, and the code is generated forWPA2, the connection will not take place.
QR codes for Wi-Fi with WEP encryption are not supported by any modern operating system due to vulnerabilities in this standard. If your router is still using WEP, change the encryption type to WPA2-PSK in the settings.
⚠️ Note: On some corporate laptops (with BitLocker or Secure Boot) Connection via QR code may be blocked by security policies. In this case, use the classic password entry method.
FAQ: Answers to frequently asked questions
Is it possible to connect to Wi-Fi via QR code without a camera?
Yes, but you'll need additional software. On Windows and macOS, you can use a screenshot of the QR code: save the image to your laptop, then upload it to an online decoder (e.g., ZXing). On Linux, use the command:
zbarimg /path/to/file.png
After the data is recognized, manually add the network in the Wi-Fi settings.
Why does my laptop scan the QR code but not connect to the network?
There are several reasons:
- The QR code contains incorrect data (for example, an outdated password).
- The router is blocking a new device by MAC address (check the settings)
MAC Filter). - The laptop is out of network coverage area (check the signal strength).
- The network is on
Isolation Mode(clients cannot see each other).
Try connecting to the same network from your phone. If that doesn't work, the problem is with your router.
How to create a QR code for a hidden network (hidden SSID)?
Use the service Qifi and check the box This is a hidden network. Manually add the parameter in the code format H:trueAn example of a QR code structure for a hidden network:
WIFI:S:<SSID>;T:WPA;P:<password>;H:true;;
Please note: not all operating systems correctly handle hidden networks via QR.
Is it safe to connect to public Wi-Fi using QR codes?
QR codes don't encrypt traffic—they simply simplify connection. The risks are the same as with regular password entry:
- 🕵️♂️ On public networks, your traffic may be intercepted (use VPN).
- 🔄 Attackers can replace the QR code with a fake one (check the source of the code).
- 📡 Some codes lead to phishing portals (enter data only on trusted sites).
For security, please disable file sharing in your network settings after connecting.
Can I use a QR code to share Wi-Fi from my laptop?
Yes, but only if your laptop is configured as a hotspot. On Windows:
- Activate mobile hotspot in
Settings → Network & Internet → Mobile Hotspot. - Generate a QR code for the created network via Qifi, specifying the SSID and password from the hotspot settings.
On macOS, use the command:
networksetup -setairportnetwork en0 <SSID> <password>
Then generate the code through the same service.