Connecting a laptop to Wi-Fi via a QR code from your phone: instructions for all operating systems

Connecting your laptop to Wi-Fi via a QR code from your phone is a quick and convenient way to avoid manually entering complex passwords. This is especially important if the network is protected by a long encrypted code or if you're in a public place with temporary access. This method works on most modern devices, but requires proper configuration on both your smartphone and laptop.

In this article, we will take a detailed look at how to generate a QR code for Wi-Fi on Android And iPhone, what applications are needed for this, and how to read the code on laptops with Windows 10/11, macOS And LinuxWe'll also look at potential issues and alternative connection methods if the QR code doesn't work.

Why is a QR code more convenient than a traditional connection?

The main advantage of the method is eliminating errors when entering a password. Even if the network uses a complex key like 7F#k9!pL2@qR5$tY, you won't have to retype it manually. Simply scan the code with your laptop's camera or a special app.

Other advantages:

  • Speed: connection takes 10-15 seconds instead of 1-2 minutes with manual entry.
  • 🔒 Security: the password is not displayed on the screen, which reduces the risk of interception by third parties.
  • 📱 Versatility: works on most devices without any additional equipment (only a camera is needed).
  • 🌍 Guest network support: convenient for hotels, cafes or offices with temporary access.

The only drawback is that not all laptops support QR code scanning out of the box. For example, on Windows 7 or older versions Linux You'll need to install additional software. We'll cover that below.

📊 Which Wi-Fi connection method do you use most often?
Manual password entry
QR code from a smartphone
WPS button on the router
Another option

Which devices support QR code connection?

This method works on most modern gadgets, but there are some nuances depending on the operating system. Below is a compatibility table:

Device QR code support Additional terms and conditions
Android (versions 10+) ✅ Yes Built-in feature in Wi-Fi settings or via Google Lens
iPhone (iOS 11+) ✅ Yes The Camera or Shortcuts app is required.
Windows 10/11 ⚠️ Partially You need the Camera app or third-party utilities (for example, WiFi QR Generator)
macOS (Monterey 12+) ✅ Yes Via the Camera or Preview app
Linux (Ubuntu, Fedora) ❌ No Installation required zbar-tools or qrencode

If your device doesn't support this feature out of the box, don't worry. In the following sections, we'll explain how to bypass restrictions using third-party apps.

⚠️ Attention: On some corporate laptops (e.g. with Windows LTSC or custom builds Linux) The QR code scanning function may be disabled by your administrator. In this case, please contact your IT support.

How to Generate a Wi-Fi QR Code on Android

On smartphones with Android 10 And newer, the QR code generation function is built into the system. Here are the step-by-step instructions:

  1. Open SettingsNetwork and InternetWi-Fi.
  2. Click on the name of your network (the one you are already connected to).
  3. Tap on the icon QR code (usually located next to the network name).
  4. Enter your PIN or confirm the action with your fingerprint (if required).
  5. A QR code will appear on the screen; you can scan it from your laptop.

If you have an older version Android or manufacturer (for example, Xiaomi or Huawei) changed the interface, use alternative methods:

  • 📱 Google Lens: Open the app, point the camera at the network information (name and password), then select "Share via QR".
  • 🔧 Third-party applications: WiFi QR Code Generator or QR & Barcode Scanner (available in Google Play).

Turn on Wi-Fi and connect to the desired network

Update your OS to the latest version (recommended)

Make sure the camera is not blocked by other apps

Check permissions for the Settings app (if QR code is not displayed) -->

On some firmware (for example, MIUI from Xiaomi) A QR code can be generated automatically when you tap the "Share" button in the network menu. If you can't find this feature, check the "Advanced" or "More" section in your Wi-Fi settings.

Generating a QR code for Wi-Fi on iPhone (iOS)

On iPhone There is no built-in QR code generation function for Wi-Fi, but it can be implemented through an app Short Commands (Shortcuts) Here's how to do it:

  1. Install the application Shortcuts (if it is not by default).
  2. Download the ready-made command this link (example: "Generate Wi-Fi QR Code").
  3. Open the command, enter the network name (SSID) and password.
  4. Click "Run" and the QR code will appear on the screen.

Alternative methods for iOS:

  • 🌐 Online generators: use services like QR Code Generator (enter SSID and password manually).
  • 📱 Applications: WiFi QR or QR Reader (available in App Store).
⚠️ AttentionWhen using online generators, avoid entering passwords for corporate or banking networks. It's better to create temporary guest access on your router.

If you frequently share Wi-Fi access, save the generated QR code to "Photo" - so you won't have to generate it again.

How to scan a QR code on a Windows 10/11 laptop

On Windows 10 (version 1903 and later) and Windows 11 There is a built-in function for scanning QR codes via the app CameraHere's how to use it:

  1. Open the menu Start and find the application "Camera".
  2. Switch to mode QR code (icon in the upper right corner).
  3. Point your phone's camera at the QR code. If the code is recognized, a notification will appear prompting you to connect to the network.
  4. Click "Connect" — the laptop will automatically connect to Wi-Fi.

If the application Camera does not recognize QR code:

  • 🔧 Update your camera drivers through device Manager.
  • 📥 Install third-party utilities: QR Code Scanner (from Microsoft Store) or WiFi QR.
  • 🖥️ Use an online scanner: open a website like webqr.com in your browser and scan the code using your webcam.

On Windows 7 or old builds Windows 10 There's no built-in function. In this case, you'll have to use third-party programs or enter the password manually.

Connecting via QR code on macOS and Linux

On laptops MacBook With macOS Monterey 12 and newer QR code scanning is supported through the standard application Camera:

  1. Open camera (can be found via Spotlight on click Cmd + Space).
  2. Point the camera at the QR code from your phone.
  3. After recognition, a pop-up window will appear asking you to connect to the network.

For Linux (For example, Ubuntu or Fedora) you will need to install additional packages:

sudo apt install zbar-tools qrencode # For Debian/Ubuntu

sudo dnf install zbar qrencode # For Fedora

After installation, scan the code with the command:

zbarcam --raw | xargs -I {} nmcli dev wifi connect {}

If the terminal returns an error, check:

  • 🔌 Is a camera connected (external or built-in).
  • 📶 Is the package installed? network-manager (sudo apt install network-manager).
  • 🛠️ Do you have access rights to the camera? (sudo usermod -aG video $USER).
What to do if the QR code is not recognized?

1. Check the lighting - dim light interferes with scanning.

2. Enlarge the QR code on your phone screen (spread it with two fingers).

3. Try a different scanner (for example, an online service).

4. Make sure that the code contains the correct encrypted data (SSID and password).

5. Restart the laptop camera (disable/enable it in Device Manager).

Common problems and their solutions

Even with the correct settings, errors can still occur. Here are some situations and how to resolve them:

Problem Possible cause Solution
The QR code is not scanned. Poor lighting or dirty camera Wipe the lens, use bright light
The laptop does not connect to the network Incorrect password in QR code Check your phone's network data and regenerate the code.
The Camera app doesn't see QR codes. Outdated version of Windows/macOS Update your OS or use a third-party scanner
The QR code opens a link instead of connecting The code is generated as a URL, not Wi-Fi. Use specialized generators (for example, WiFi QR Generator)

If the laptop connects to the network, but the Internet does not work:

  • 🔄 Reboot your router (unplug it for 30 seconds).
  • 📡 Check if your phone is distributing internet (if you are using a hotspot).
  • 🛡️ Disable your VPN or firewall (they may be blocking traffic).
⚠️ Attention: On some routers (for example, TP-Link or ASUSGuest networks may block QR code connections. In this case, temporarily disable guest mode or use your main network.

FAQ: Answers to Frequently Asked Questions

Is it possible to connect a laptop without a camera to Wi-Fi via a QR code?

Yes, there are two options:

  1. Connect an external webcam via USB.
  2. Take a photo of the QR code with your phone, save the image and upload it to an online scanner (for example, zxing.org).
Is it safe to share a Wi-Fi QR code with strangers?

The QR code contains the same data as your network password. If you share it with strangers, they will be able to connect to your Wi-Fi. It's best for guests to:

  • Create a separate guest network on the router.
  • Generate a temporary QR code with limited access (for example, for 2 hours).
Why does my laptop ask me to enter a password after scanning a QR code?

This happens if:

  • The QR code was generated incorrectly (for example, via an online service with an error).
  • The network uses WPA3-Enterprise or another non-standard protocol (QR code does not support such networks).
  • The laptop has group policy restrictions (relevant for corporate devices).

Solution: Check the network details on your phone and generate the code again.

How do I connect a Linux laptop to Wi-Fi via a QR code if I don't have zbar-tools?

Alternative methods:

  1. Install qrencode and manually decode the QR code through the terminal.
  2. Use a Python script with a library pyzbar:
pip install pyzbar pillow

python3 -c"from pyzbar.pyzbar import decode; from PIL import Image; print(decode(Image.open('qrcode.png')))"

Where qrcode.png — saved image of the code.

Does this method work to connect to hidden networks (with hidden SSID)?

No, a QR code cannot transmit data to a hidden network because it SSID is not broadcast. In this case:

  1. Temporarily make the network visible in the router settings.
  2. Connect manually by specifying SSID and password.