When you need to connect your laptop to a new Wi-Fi network, manually entering a long password isn't the most convenient task. This is especially true if the password consists of random characters or is written in small print on the back of the router. Fortunately, modern operating systems support this. connecting to Wi-Fi via QR code — it’s faster, easier, and eliminates input errors.
The QR code for connecting to Wi-Fi contains all the necessary information: the network name (SSID), encryption type, and password. Simply scan it with your laptop or smartphone's camera, and the device will automatically connect to the network. In this article, we'll look at how this works. Windows 10/11, macOS And Linux, and we will also consider possible problems and alternative methods if the QR code does not work.
Important: Not all routers generate a QR code for connection by default. If your router doesn't have one on the sticker, you can generate one yourself—we'll cover that below.
What is a Wi-Fi QR code and how does it work?
QR code (or next generation barcode) for a Wi-Fi connection is a graphical representation of network data in a format that can be read by the device's camera. It encodes:
- 📶 Network name (SSID) — What is the name of your Wi-Fi network?
- 🔒 Encryption type - usually
WPA2-PSKorWPA3-PSK; - 🔑 Password — security key for connection;
- 📶 Hidden network (optional) - if the network does not broadcast its name.
When you scan such a code, the operating system automatically extracts this data and connects to the network without any additional steps. This is especially convenient for guest networks, hotels, or public spaces where the password is complex and changes frequently.
The QR code format for Wi-Fi is standardized. It looks like this:
WIFI:T:WPA;S:mynetwork;P:mypassword;;
Where:
WIFI:— a prefix indicating the data type;T:— encryption type (WPA,WEPornopassfor open networks);S:— network name (SSID);P:- password.
Where can I get a QR code to connect to Wi-Fi?
There are several ways to get a QR code for your network:
- Sticker on the router - many modern models (TP-Link, ASUS, Keenetic, Xiaomi) print a QR code directly on the case next to the password. Look for a square black-and-white code with the inscription
Wi-Fi QRorScan to Connect. - Router web interface — Some routers have an option to generate a QR code in their wireless network settings. For example, Keenetic This is in the section
Wi-Fi network → QR code for connection. - Generate it yourself If your router doesn't have a code, you can generate one using online services or apps. More on this in the next section.
- Mobile applications - some programs for managing Wi-Fi (for example, WiFi QR Generator For Android) can generate code based on your network data.
If you rent accommodation or connect to a public network (at a cafe or airport), a QR code is often placed at the reception desk, on your receipt, or on a special stand. Hotels may send it by email after your booking.
How to connect to Wi-Fi via QR code on Windows 10 and 11
Starting from Windows 10 version 1903 (May 2019) and in Windows 11 There's built-in support for connecting to Wi-Fi via QR code. Here's how it works:
Method 1: Via the Camera app
- Open the default application
Camera(find it through the search in the menuStart). - Point your laptop camera at the QR code. Make sure the code fits entirely within the preview frame.
- After 1-2 seconds, a notification will appear: "Connect to Wi-Fi?". Click
Yes. - The system will automatically connect to the network. If prompted, allow access.
Method 2: Via “Settings” (if the camera doesn’t work)
If your laptop doesn't have a camera or it's broken, you can scan the QR code with your smartphone and transfer the data to your PC:
- Scan the code with any QR scanner on your phone (for example, via Google Lens or a standard camera iPhone).
- In the window that appears, select
Share passwordorCopy network data. - On your laptop, open
Settings → Network and Internet → Wi-Fi. - Click
Manage known networks → Add new network. - Enter the network name (SSID) and password copied from the smartphone.
If the QR code is not recognized, please check:
- 🔦 Is there sufficient lighting (the code must be clear);
- 📱 Are there any glare or dirt on the code?
- 🔄 Try a different camera angle.
☑️ Check before scanning the QR code
Connecting to Wi-Fi via QR code on macOS
On MacBook and other devices Apple With macOS Monterey 12.0 and the new QR code connection works even easier thanks to the function Quick Connection (Fast Connect). Here's how to do it:
- Open the app
Camera(or hover over the code inPreview). - Bring it up MacBook to the QR code so that it fits completely within the frame.
- After a couple of seconds, a pop-up window will appear asking you to connect. Click
Join. - If required, confirm the action via
Touch IDor administrator password.
If you have an older version macOS (to Monterey), you can use a workaround:
- Scan the QR code using iPhone or iPad (they support this feature with iOS 11).
- Click
Share passwordand choose yours Mac in the list of devices. - A notification will appear on your laptop – confirm the connection.
Important: On macOS, the QR code must be in the WIFI:... format (as described above). Some routers generate codes in a proprietary format that won't work on a Mac.
Connecting to Wi-Fi via QR Code on Linux
In most distributions Linux (For example, Ubuntu, Fedora, Linux Mint) There's no built-in support for scanning QR codes on Wi-Fi. However, this can easily be fixed with additional utilities.
Method 1: Using qrencode And nmcli
If you have a QR code in the form of a text string (for example, WIFI:T:WPA;S:mywifi;P:12345678;;), you can connect via terminal:
- Install
qrencode(if not already installed): - Decode the QR code using an online service or your smartphone to obtain the connection string.
- Connect to the network via
nmcli:
sudo apt install qrencode # For Debian/Ubuntu
sudo dnf install qrencode # For Fedora
nmcli dev wifi connect "NETWORK_NAME" password "PASSWORD"
Method 2: Application WiFi QR Scanner (GUI)
For a more convenient method, install a graphical utility:
- Install WiFi QR Scanner from repositories or through Flatpak:
- Launch the application and scan the code using your webcam.
- Confirm the connection - the program will automatically transfer the data to
NetworkManager.
flatpak install flathub com.github.bajoja.wifiqr
If you have KDE Plasma, you can use the built-in QR code scanner in KDE Connect (you need to first set up a connection with your smartphone).
What to do if Linux doesn't see the Wi-Fi adapter?
If the network doesn't appear in the list after connecting via QR code, check if the driver for your Wi-Fi adapter is loaded. Enter the following command in the terminal: lspci -k | grep -A 3 -i networkIf the output contains a line with Kernel driver in use: none, the driver is not installed. Solution: Install proprietary drivers via Additional drivers (Ubuntu) or manually from the manufacturer's website.
How to create a QR code for your Wi-Fi network
If your router doesn't have a QR code, you can generate one yourself. To do this, you'll need:
- 📋 Network name (SSID);
- 🔐 Password;
- 🌐 Encryption type (usually
WPA2-PSK).
Method 1: Online generators
Use proven services:
- Qifi.org — a simple open source generator.
- QR Code Generator — select type
Wi-Fi, enter the data and download the code.
Example of filling:
- Network Type:
WPA/WPA2 - SSID:
my_wifi_name - Password:
my_secure_password - Hidden Network:
No(if the network is hidden -Yes)
Method 2: Mobile applications
For Android And iOS There are dozens of apps that generate QR codes for Wi-Fi. Popular ones include:
- 📱 WiFi QR Generator (Android);
- 🍎 QR Code Reader (iOS) - can also create codes.
Method 3: Via Terminal (Linux/macOS)
If you prefer console, use qrencode:
echo "WIFI:T:WPA;S:mywifi;P:mypassword;;" | qrencode -t PNG -o wifi_qr.png
This command will create a file wifi_qr.png with a connection code.
| Service/Application | Platform | Advantages | Flaws |
|---|---|---|---|
| Qifi.org | Web | No registration, open source | No additional settings |
| WiFi QR Generator | Android | Saves code history | Advertising in the free version |
qrencode |
Linux/macOS | Works without internet | Requires knowledge of commands |
| QR Code Reader | iOS | Integration with iCloud |
Limited code settings |
What to do if the QR code doesn't work
Sometimes connecting via QR code doesn't work. Here are the most common causes and solutions:
⚠️ Attention: If the router gives an error Invalid QR code, check if the network password has changed. Some models (TP-Link Archer, ASUS RT-AX) automatically update the QR code when you change your password.
Problem 1: The camera does not recognize the code
Possible reasons:
- 📸 Poor lighting — try holding the code up to a light source;
- 🔍 The code is too small - zoom in or move further away with the camera;
- 📱 The camera is dirty - wipe the lens with a soft cloth;
- 🖼️ The code is corrupted - if it is torn or painted over, generate a new one.
Problem 2: Connection drops or doesn't connect
Check:
- 📡 Wi-Fi signal - perhaps you are too far from the router;
- 🔄 Network mode - if the router only works in
5 GHz, and the laptop does not support this range, switch to2.4 GHz; - 🔒 Encryption type - if specified in the code
WPA3, and the router is configured toWPA2, the connection will not take place; - 🔌 MAC address blocking - if the router has a filter enabled
MAC, add your laptop's address to the whitelist.
Problem 3: The QR code leads to a strange website
This is a sign of fraud! A real Wi-Fi QR code should start with WIFI:If after scanning a website opens (for example, http://free-wifi-login.com), do not enter data there. This could be:
- 🕵️♂️ Phishing page — scammers are trying to steal your data;
- 💰 Paid subscription - some public networks require payment;
- 📡 Advertising pop-up — often found in cafes and airports.
If you suspect that the QR code is fake, do not connect to the network. Instead:
- Check the network name and password with the establishment administrator.
- Use your mobile internet to check reviews of this hotspot.
Alternative ways to connect to Wi-Fi without entering a password
If the QR code doesn't work for some reason, there are other convenient methods:
1. WPS (Wi-Fi Protected Setup)
Many routers support WPS — quick push-button connection technology. How to use:
- Click the button
WPSon the router (usually it is labeled and located on the back panel). - On your laptop, in the list of networks, select your Wi-Fi and click
Connect via WPS. - Please wait 1-2 minutes and the connection will be established automatically.
⚠️ Attention: WPS is considered less secure than QR codes, as it is vulnerable to brute-force attacks. Disable WPS in your router settings after use.
2. Transfer settings from your phone (Android/iOS)
If you already have a device connected to this network, you can transfer settings:
- 📱 Android: Open
Settings → Wi-Fi, select the network, pressShareand scan the QR code from your laptop. - 🍎 iPhone: Bring it up MacBook To iPhone - a connection offer will appear (works with macOS Monterey and newer).
3. USB Wi-Fi dongle (for Windows)
Some routers (ASUS, TP-Link) allow you to export network settings to a USB drive:
- Insert the flash drive into the router.
- In the router's web interface, find the section
USB Application → Wi-Fi Setting. - Export the settings to a flash drive, then connect it to your laptop – the system will automatically establish a connection.
4. Command Prompt (Windows)
If you know the password but don't want to enter it manually, use netsh:
netsh wlan connect name="NETWORK_NAME" ssid="NETWORK_NAME" interface="Wi-Fi"
To save the network, enter:
netsh wlan add profile filename="C:\path\to\file.xml"
Where xml file - exported network profile (can be created via Control Panel → Network and Sharing Center).
FAQ: Frequently asked questions about connecting via QR code
Is it possible to connect to Wi-Fi via QR code if my laptop doesn't have a camera?
Yes. Scan the code with your smartphone, then:
- On Android: click
Shareand choose to send data to your laptop via Bluetooth or messenger. - On iPhone: use the function
Handoff(if the laptop is on macOS) or copy the password manually.
Why doesn't Windows recognize the QR code even though the camera works?
Possible reasons:
- Outdated version of Windows (upgrade to 1903 or newer).
- QR code is not in format
WIFI:..., and in proprietary (for example, from Xiaomi). - QR recognition is disabled in the camera settings (
Settings → Camera → Show related actions).
Is it possible to create a QR code for a network without a password (open)?
Yes. In the QR code generator, select:
- Network Type:
No encryption (nopass) - SSID: The name of your network
- Password: leave blank
The finished code will look like this: WIFI:T:nopass;S:myopenwifi;;
Is it safe to connect to Wi-Fi via QR code in public places?
The QR code itself is secure, but:
- 🛡️ Check that the code starts with
WIFI:- If there is a URL, it could be phishing. - 🔒 Do not enter passwords for important services (banks, email) on public networks.
- 🌐 Use a VPN to encrypt your traffic.
How do I delete a saved network after connecting via QR code?
IN Windows:
- Open
Settings → Network and Internet → Wi-Fi. - Click
Managing known networks. - Select the network and click
Forget.
IN macOS:
- Open
System Preferences → Network. - Select
Wi-Fi → Additional. - Find the network in the list and click
–(minus).