Connecting guests or new devices to your home Wi-Fi network often becomes a headache: you have to remember a complex password, enter it on your phone or smart speaker, and figure out how to handle capitalization. QR code for Wi-Fi solves this problem—just scan it with your smartphone's camera, and the device will automatically connect to the network. No input errors, no unnecessary questions.
In this article you will find step-by-step instructions for creating a QR code on any device (Windows, macOS, Android, iPhone), a comparison of free generators, and security tips. We'll also discuss how Bypass iOS restrictions when scanning Wi-Fi QR codes And why some routers can generate codes automatically. If you administer a network in an office or cafe, there are solutions for mass client connections.
Why QR Codes Are Better Than Traditional Password Entry
The benefits are obvious, but let's look at them in more detail:
- ⚡ Connection speed — 2 seconds instead of 2 minutes (especially relevant for smart devices without a keyboard).
- 🔒 Eliminating errors — there is no risk of making a typo in the password or mixing up the letter case.
- 📱 Versatility — works on Android, iOS, smart TVs (Samsung Tizen, LG webOS) and even some printers.
- 🛡️ Security — you can generate a code with a limited validity period (for example, for guests).
There are also hidden benefits. For example, in a cafe or coworking space, a QR code can be printed and placed on a table—clients can connect automatically, without disturbing the staff. And at home, this eliminates the need to dictate the password to every family member or friend who comes over with new devices.
What information is needed to generate a QR code?
To create a working QR code you will need three required parameters your Wi-Fi network:
SSID— network name (what you see in the list of available connections).Password— network password (make sure it is entered correctly!).Encryption— encryption type (usuallyWPA2orWPA3).
Additionally, you can specify:
- 🌐 Hidden network - if your Wi-Fi does not broadcast the name (a flag will be required
hidden=true). - 🔄 Authentication type - For example,
WPA-EAPfor corporate networks (rarely used at home).
Where can I get this data? TP-Link routers, ASUS or Keenetic They are indicated on the sticker on the bottom of the device. If there is no sticker or the password has been changed, log in to the router's admin panel (usually at 192.168.1.1 or 192.168.0.1) and check the settings in the section Wi-Fi or Wireless network.
5 Ways to Create a QR Code for Wi-Fi
Choose a method depending on your device and tasks:
| Way | Device | Pros | Cons |
|---|---|---|---|
| Online generators | Any | No need to install software, works on your phone | Risk of data leakage (use trusted services) |
| Mobile applications | Android/iOS | Fast, often with additional features (code action timer) | Requires app installation |
| Command Prompt (Windows/macOS) | PC | Doesn't depend on the internet, maximum privacy | Requires knowledge of commands |
| Built-in router function | Any | The most secure way is to generate the code on your device. | Not all routers support |
| Python scripts | PC | Flexible customization (you can add a logo and color) | Difficult for beginners |
Let's consider each method in detail.
1. Online generators (the easiest way)
Ideal for those who don't want to install programs. We tested 10 services and selected the top three based on reliability and ease of use:
- 🔹 QiFi - minimalistic interface, supports hidden networks.
- 🔹 QR Code Generator — allows you to add a logo to the center of the code.
- 🔹 WiFi Gesture — generates codes with a limited validity period (useful for guest networks).
Step-by-step instructions using QiFi as an example:
- Go to the website qifi.org.
- Enter
Network Name (SSID)— the name of your network. - Select the encryption type (
WPA/WPA2orWPA3). - Enter the password in the field
Password. - Click
Generate!— The QR code will appear on the right. - Save the image (
PNGorSVG) or print it.
How to check if the QR code works?
Scan it with any smartphone (Android/iOS). If the code is correct, a network connection notification will appear. On an iPhone, manual confirmation may be required (see the iOS section below).
☑️ Check the QR code before use
2. Mobile applications (for Android and iOS)
If you frequently generate QR codes (for example, for customers at a cafe), it's more convenient to use specialized apps. They allow you to save templates, add a code expiration timer, and even track connection statistics.
Best Android Apps:
- 📱 WiFi QR Code Generator - simple interface, support
WPA3. - 📱 QR & Barcode Scanner (from TWMobile) - can both scan and generate codes.
For iOS:
- 🍎 QR Code Reader by Scan — supports generating codes for Wi-Fi and VPN.
- 🍎 WiFi QR — a specialized solution with the export function to
PDF.
How to create code in WiFi QR Code Generator (Android):
- Download the app from Google Play.
- Open it and select
Create WiFi QR Code. - Fill in the fields:
Network Name,Password,Security Type. - Click
Generate QR Code. - Save the code to your gallery or share it via messenger.
3. Command line (for Windows and macOS)
If you prefer not to upload your network data to third-party services, you can generate a QR code locally using PowerShell (Windows) or Terminal (macOS) This method requires minimal command line knowledge but guarantees privacy.
For Windows (PowerShell):
$ssid = "Your_network_name"$password = "Your_password"
$encryption = "WPA" # or "WEP", "nopass" for open networks
$qrData = "WIFI:S:$ssid;T:$encryption;P:$password;;"
Add-Type -AssemblyName System.Web
$qrCode = new-object System.Web.UI.WebControls.Image
$qrCode.ImageUrl = "https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=$([System.Web.HttpUtility]::UrlEncode($qrData))"
$qrCode.RenderControl([System.Web.UI.HtmlTextWriter]::new([System.IO.StringWriter]::new()))
$qrCode.ImageUrl | Invoke-WebRequest -OutFile "wifi_qr.png"
For macOS (Terminal):
brew install qrencode # if not installed
echo "WIFI:S:Your_Network_Name;T:WPA;P:Your_Password;;" | qrencode -o wifi_qr.png
The finished QR code will be saved in the file wifi_qr.png in the current folder. This method does not depend on the internet (except for the first command on macOS for installation) qrencode) and does not transfer data to third parties.
4. Built-in router function (the safest way)
Some modern routers can generate QR codes directly in the web interface. This is the most secure method, as the code is created on the device and is not transmitted over the network. The following routers support this feature:
- 📡 ASUS (series RT-AX, ZenWiFi) - chapter
Guest Network → QR Code. - 📡 TP-Link (models with firmware OneMesh) —
More → Wi-Fi QR code. - 📡 Keenetic —
Home Network → Wi-Fi → QR Code for Connection.
Instructions for ASUS routers:
- Log in to your admin panel at
192.168.1.1(login and password are usuallyadmin/admin, if you haven't changed it). - Go to
Guest network(orWireless Network → QR Codeon new firmware). - Activate the option
Show QR code. - Download or print the code directly from the interface.
5. Python Scripting (for Advanced Users)
If you need to generate hundreds of QR codes (for example, for a hotel chain) or add a company logo to them, you can use a script on Python with the library qrcodeThis method requires basic programming knowledge, but provides maximum flexibility.
Example script:
import qrcodefrom PIL import Image
Wi-Fi data
wifi_data = "WIFI:S:MyNetwork;T:WPA;P:MyPassword;;"
Generating a QR code
qr = qrcode.QRCode(version=1, box_size=10, border=5)
qr.add_data(wifi_data)
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
Adding a logo (optional)
logo = Image.open("logo.png")
logo = logo.resize((50, 50))
pos = ((img.size[0] - logo.size[0]) // 2, (img.size[1] - logo.size[1]) // 2)
img.paste(logo, pos)
Preservation
img.save("wifi_qr_with_logo.png")
To run the script:
- Install Python from the official website.
- Install the libraries:
pip install qrcode[pil]. - Create a file
wifi_qr.py, paste the code above and edit the network details. - Run the script:
python wifi_qr.py.
Connection Features on Android and iOS
QR codes for Wi-Fi are supported by all modern smartphones, but there are some nuances:
Android (version 9 and later)
On most devices (Samsung, Xiaomi, Google Pixel) enough:
- Open camera.
- Point it at the QR code.
- Click on the notification
Connect to a Wi-Fi network.
If the camera does not recognize the code:
- 🔧 Check if the feature is enabled
Scanning QR codesin the camera settings. - 🔧 Use a third-party app, such as Google Lens.
iOS (iPhone and iPad)
Apple added support for Wi-Fi QR codes only in iOS 11, but with limitations:
- ✅ Works via the standard camera (no need to install apps).
- ⚠️ After scanning, you need to manual confirmation connections.
- ❌ Networks with are not supported
WPA3-Enterprise(corporate).
Step-by-step instructions for iPhone:
- Open the app
Camera. - Point the lens at the QR code (keep it at a distance of 20-30 cm).
- A notification will appear at the top of the screen.
Wi-Fi network- click on it. - Confirm the connection in the window that opens.
Security: Risks and How to Avoid Them
Wi-Fi QR codes are convenient, but they can become a vulnerability if used carelessly. The main risks are:
- 🕵️ Traffic interception — if the code falls into the hands of an attacker, they will be able to connect to your network.
- 📡 Evil twin attacks — Fraudsters can create a fake network with the same name and intercept data.
- 🔄 Password leak - Some online generators save the entered data.
How to protect yourself:
- 🔐 Use
WPA3instead ofWPA2(if the router supports it). - 🔄 Change your Wi-Fi password regularly (every 3-6 months).
- 📵 Create a separate network with limited rights for guests.
- 🖼️ Generate codes locally (via your router or command line), not on dubious websites.
Common mistakes and how to fix them
QR code not working? Check these points:
| Problem | Cause | Solution |
|---|---|---|
| The code is not scanned | Low image resolution | Please regenerate the code with a size of at least 200x200 pixels. |
| The connection is interrupted | Invalid encryption type | Check your router settings (WPA2 or WPA3) |
| iPhone won't connect | Confirmation required | Tap the notification at the top of the screen |
| Network not found | Hidden SSID | Add parameter H:true in QR code data |
If your device fails to connect despite a valid QR code, try:
- Reboot the router.
- Make sure Wi-Fi is enabled on your device.
- Check if your antivirus is blocking new connections (relevant for Windows).
How to check if the data in a QR code is correct?
Scan the code with any QR reader (for example, QR & Barcode Scanner). It should show a line like this WIFI:S:MyNetwork;T:WPA;P:MyPassword;;If there is no data or it is corrupted, the code was generated incorrectly.
FAQ: Answers to frequently asked questions
Is it possible to create a QR code for Wi-Fi without a password (open network)?
Yes, to do this, please specify the encryption type in the QR code data nopass. Example line: WIFI:S:MyNetwork;T:nopass;;But remember that open networks are vulnerable to attack—anyone can intercept your traffic.
How to make a QR code with a time limit?
The QR code itself may not have an expiration date, but you can:
- Generate code for guest network on the router and set it to turn off automatically (for example, on ASUS this is done in the section
Guest Network → Schedule). - Use services like WiFi Gesture, which allow you to create a code with a timer (but this only works if the guest scans it at the specified time).
Why does iPhone ask for connection confirmation after scanning a QR code?
This is a security feature. iOSApple prevents automatic connections to networks without the user's knowledge to prevent attacks through fake QR codes. Confirmation is only required the first time you connect; subsequently, your iPhone will connect automatically.
Is it possible to track who has connected via QR code?
The QR code itself does not provide information about connected devices, but you can:
- View the list of connected gadgets in the router admin panel (section
DHCPorConnected devices). - Use routers with this feature
Client isolation(For example, Ubiquiti) to limit the interaction of devices on the network. - Set up notifications about new connections (available on firmware DD-WRT or OpenWRT).
How to print a QR code so that it can be scanned easily?
Follow these guidelines:
- 🖨️ The size of the code on paper is at least 3×3 cm.
- 🎨 Background color is white, code color is black (maximum contrast).
- 📄 Paper - matte (glossy may produce glare).
- 🔍 Check scans from different angles before bulk printing.
For public places (cafes, hotels), use lamination to prevent the code from wearing off.