How to Find a Wi-Fi Password from a QR Code: A Complete Guide with Instructions

QR codes for Wi-Fi connections have become a standard solution in cafes, hotels, and even home networks. They simplify the authorization process: just scan the code, and your device automatically connects to the network. But what if you need to find out the password itself, rather than just connecting to Wi-Fi? For example, when you want to connect a device without a camera or manually enter data on a computer.

In this article we will look at All working methods to extract password from Wi-Fi QR code, including methods for smartphones, PCs, and specialized services. You'll learn what data is stored in such code, why not all methods work on iPhones, and how to bypass restrictions without compromising security. We'll also analyze whether this is legal under public network usage regulations.

Important: The procedure differs depending on the type of QR code (standard WPA2 (or the proprietary format of some routers) and operating system. If you are trying to access someone else's network, be aware of the legal consequences. This guide is intended for working with own networks or networks to which you have legal right of access.

What's stored in a Wi-Fi QR code and can you extract the password from it?

A QR code for connecting to Wi-Fi contains an encrypted string in the format WIFI:T:WPA;S:{SSID};P:{password};;, Where:

  • 🔹 WIFI: — a prefix indicating the data type.
  • 🔹 T:WPA — encryption type (usually WPA2-PSK or WPA3).
  • 🔹 S:{SSID} — network name (can be encoded in base64).
  • 🔹 P:{password} - password (sometimes hidden or encrypted).
  • 🔹 H:false — hidden network parameter (optional).

In most cases, the password is stored in clear text, but some routers (for example, ASUS or Keenetic) generate QR codes with additional encryption. It's also worth considering that:

  • 📱 On Android The password can be extracted directly from the scanned code.
  • 🍎 On iPhone (iOS) The system hides the password by default - workarounds will be required.
  • 💻 On Windows/Mac third-party software is needed for decoding.
📊 What type of device do you use to scan the QR code?
Android smartphone
iPhone (iOS)
Tablet
Laptop/PC
Other

If the QR code is generated through the router application (for example, Mi Wi-Fi or TP-Link Tether), it may contain service data that is not recognized by standard scanners. In such cases, you will need manual decoding through online services or programs.

⚠️ Attention: Public networks (in cafes, airports) are often used port authorizations or dynamic passwords. Even if you extract the password from the QR code, it may not work without additional authentication on the login page.

Method 1: Retrieve Android Password (without Root)

On smartphones with Android 10 and later You can view the password directly after scanning the QR code if you use the standard application Camera or Google LensHere are the step-by-step instructions:

Open the Camera app

Point the lens at the Wi-Fi QR code

Wait for the "Connect to network" notification to appear.

Tap and hold the notification

Select "Copy Password" (if available)

-->

If the copy option is missing:

  1. Scan the code via Google Lens (available in Google Photos or as a separate application).
  2. In the scan results, find the line WIFI:... and copy it.
  3. Paste text into any QR decoder (For example, ZXing Decoder) or use the app QR & Barcode Scanner from Gamma Play.
  4. Find the parameter in the decoded data P: - the password will be indicated after it.

On some firmware (for example, MIUI or ColorOS) After connecting via QR, you can see the password in the network settings:

  1. Go to Settings → Wi-Fi.
  2. Click on the connected network and select Share.
  3. Enter your PIN or fingerprint to confirm.
  4. The password will be displayed under the QR code.
⚠️ Attention: On devices with Android 13+ and corporate profile security policies may block the password viewing option. In this case, only manual decoding via third-party tools.

Method 2: How to find a password from a QR code on iPhone (iOS)

Apple restricts access to Wi-Fi passwords for security reasons, so iPhone or iPad It's impossible to extract a password from a QR code using standard tools. However, there are workarounds:

Method 1: Using Shortcuts

Create an automatic shortcut for QR decoding:

  1. Open the app Labels (Shortcuts).
  2. Click +Add action.
  3. Enter in the search Text and select Get text from input.
  4. Add an action Show notification.
  5. Scan the QR code via camera, then click on the notification from the shortcut - there will be decoded text with the password.

Method 2: Online Decoders

If shortcuts don't help:

  1. Take a screenshot of the QR code or save it as an image.
  2. Upload the file to a service like WebQR.
  3. Find the line in the results P:{password}.
Why does iOS hide passwords?

Apple has a privacy policy that stores network passwords in an encrypted keystore (Keychain). Only system processes have access to them, so third-party applications cannot extract them without jailbreaking.

On devices with jailbreak You can use tweaks like WiFi Passwords from the repository Cydia, but this violates the warranty and security of the system.

Method 3: Decoding a QR Code on Windows or Mac

Computers don't have built-in tools for scanning QR codes, but you can use specialized programs or online services. Let's consider both options.

Option 1: Via scanner apps

For Windows:

  • 🖥️ Install QR Code Scanner from Microsoft Store.
  • 📷 Scan the code from another device's screen or upload an image.
  • 🔍 In the results, find the line with P: - this is the password.

For Mac:

  • 🍎 Use the built-in app Preview: Open the QR code image, then select Tools → Show Inspector → QR Code.
  • 📋 Copy the decoded text and find the password parameter in it.

Option 2: Manual Decoding via Python

If you are familiar with programming, you can decode the QR code manually:

import qrcode

from pyzbar.pyzbar import decode

from PIL import Image

Upload a QR code image

img = Image.open('wifi_qr.png')

decoded = decode(img)[0].data.decode('utf-8')

Output the data

print(decoded) # Look for the string "P:your_password"

To do this you will need to install the following libraries:

pip install pyzbar pillow

Method 4: Specialized online services

If the previous methods don't work, use online decoders. They support non-standard QR code formats (for example, from Huawei or ZTE). Popular services:

Service Supported formats Restrictions
ZXing Decoder Standard Wi-Fi QR, base64 Does not recognize proprietary router codes
WebQR Text QR, WPA2/WPA3 File size limit (2 MB)
InLite Barcode Reader QR, Data Matrix, PDF417 Requires registration for large files

How to use:

  1. Take a photo of the QR code or take a screenshot.
  2. Upload the image to the service website.
  3. Copy the decoded text and find it in it P:{password}.
⚠️ Warning: Do not upload QR codes from public networks (hotels, airports) to untrusted services. Some may store data for abuse. Use only trusted platforms with HTTPS.

Method 5: Extracting passwords from saved networks (if QR doesn't work)

If the QR code is damaged or does not contain a password, but you are already connected to the network on one of the devices, you can extract the password from its memory.

On Android (with or without root)

Without root rights:

  1. Install the application WiFi Password Viewer (for example, from Simone Dev).
  2. Open the list of saved networks.
  3. Click on the desired network—the password will appear as asterisks. Click on them to reveal the text.

With root rights:

  1. Use Root Browser or ES File Explorer with access to the root folder.
  2. Go to /data/misc/wifi/.
  3. Open the file WifiConfigStore.xml — all passwords are stored there.

On Windows

Open Command line as administrator and run:

netsh wlan show profile name="NETWORK_NAME" key=clear

Find the line in the results Key content - this is the password.

On Mac

Use Terminal:

security find-generic-password -wa "NETWORK_NAME"

The system will ask for an administrator password and then display the network key.

Legal and ethical aspects

Before extracting a password from a QR code, make sure you have the right to do so. In most countries, unauthorized access to other people's networks is considered a violation of the law:

  • 📜 This is regulated in Russia Article 272 of the Criminal Code of the Russian Federation ("Unauthorized access to computer information").
  • 📜 It is valid in the EU General Data Protection Regulation (GDPR), which prohibits the collection of personal information without consent.
  • 📜 In the US, such actions may be classified as Computer Fraud and Abuse Act (CFAA).

Exceptions:

  • ✅ Your home network.
  • ✅ A network for which you have written permission (for example, in a rented apartment).
  • ✅ Public networks with open access (without password).

Even if you extracted the password from a QR code at a cafe, distributing it or using it to connect multiple devices could be considered abuse. Many establishments limit the number of connections or block devices if the data limit is exceeded.

⚠️ Note: Some routers (eg. Ubiquiti or MikroTik) keep connection logs. The network administrator can track your device's MAC address and block it.

FAQ: Frequently Asked Questions about Wi-Fi QR Codes

Is it possible to find out the password from a QR code if it was generated through a router app (for example, TP-Link Tether)?

Yes, but not all standard scanners recognize these QR codes. Try this:

  1. Scan the code through the router app itself (sometimes there is an option to show the password).
  2. Use specialized decoders like WiFi QR Decoder.

If the code is protected, the password may be stored in encrypted form and access to the router will be required.

Why doesn't the password appear after scanning a QR code on an iPhone?

This is an iOS limitation. The system automatically connects to the network but doesn't reveal the password. Workarounds:

  • Use Shortcuts (see instructions above).
  • Scan the code on your Android device and transfer the password via Airdrop or messenger.
  • Recover your password through your router settings (if you have access).
Is it possible to generate my own QR code for Wi-Fi to share the network without revealing the password?

Yes, this is a secure way to share access. You can generate a QR code:

  • Via online services: QiFi.
  • In the router settings (section QR Code or Guest access).
  • Through apps like WiFi QR Generator (Android/iOS).

This code will only contain the connection data, but will not display the password when scanned.

What should I do if the QR code is damaged and cannot be scanned?

Try:

  1. Increase the contrast of the image in a graphics editor.
  2. Use multiple scanners (eg. QR Code Reader from Kaspersky often copes with damaged codes).
  3. Take pictures of the code from different angles - sometimes changing the lighting helps.

If nothing helps, recover your password through router web interface (usually at the address 192.168.1.1 or 192.168.0.1).

Is it legal to use a QR code password in a cafe or hotel to connect your devices?

Formally, yes, if:

  • The QR code is intended for guests (for example, placed on a table or in a room).
  • You do not share your password with third parties.
  • You do not use the network for illegal activities (torrents, hacker attacks, etc.).

However, some establishments prohibit connecting more than one device per guest. In this case, the administration reserves the right to block your MAC address.