Where is the Wi-Fi password on your phone: Find it on Android and iOS

It's a common situation to need to connect a new device to the network, but you've forgotten the password, and all you have is a smartphone that's already successfully connected. Fortunately, modern mobile operating systems allow you not only to view the connection status but also, under certain conditions, to retrieve saved access keys. This is especially relevant for owners Android, where security policies have become more flexible in recent years regarding data sharing between devices.

On Apple devices, things are a bit more complicated due to the closed ecosystem. iOSDirect access to the password text string is limited here, but there are workarounds through syncing with macOS or using iCloud Keychain. Understanding where this data is stored in the system and how to securely retrieve it is a useful skill for any advanced user.

In this article, we'll cover the steps for various operating system versions, from Android 10 to the latest iOS versions. You'll learn how to use built-in QR code generation features and when you'll need to resort to more complex methods, such as ADB commands or viewing system files with root rights.

Finding a password on Android 10 and later using a QR code

Starting with the tenth version of the operating system, Google has implemented a native mechanism for sharing Wi-Fi settings via QR codes. This is the simplest and most secure method, requiring no root access. The feature is available in the standard settings menu and works on the vast majority of modern smartphones, including Xiaomi, Samsung, Pixel and Honor.

To access the information, you need to go to the section Settings → Connections → Wi-FiHere you'll see a list of available networks, and the currently active network will be marked with a gear icon or simply highlighted. Clicking on the network name or the gear icon next to it will take you to a menu with detailed connection settings.

At the bottom of the screen, there's often a "Share" button or a QR code icon. Once tapped, the system will require you to verify your identity using biometrics (fingerprint, Face ID) or enter your screen unlock PIN. This is a security measure. security, which prevents password theft in case of device loss.

⚠️ Note: On some Samsung and Xiaomi models, the QR code may be displayed immediately, but the password text underneath will be hidden by asterisks. In this case, take a screenshot and open the image using Google Lens or any other QR code scanner built into the gallery.

If the text is not displayed immediately, use the camera of the second phone or take a screenshot and then recognize it through Google Lens The password is guaranteed to be displayed in plain text above the code image. This method works even if the plain text is hidden in your Wi-Fi settings.

📊 What version of Android are you using?
Android 10-11
Android 12-13
Android 14 and above
I don't know

Using Google Password Manager on Android

An alternative and often more convenient way to store saved passwords is Google's built-in password manager. This service syncs data across all devices linked to your Google account, including Wi-Fi passwords if the backup option is enabled.

To find the key you need, open your phone's settings and type "Passwords" in the search bar at the top or follow the path Settings → Google → Autofill → Autofill from Google → Google PasswordsHere, in the list of saved data, you need to find the "Wi-Fi Passwords" section or find the name of your network in the general list.

After logging in, you'll see your login (usually the network SSID) and a password field hidden by dots. By clicking the eye icon, you can see a text version of the access key. This method is especially useful if you want to copy the password for pasting on another device, as the text can be selected and copied to the clipboard.

  • 🔐 Access to the password manager requires mandatory biometric or PIN code authorization.
  • 🔄 Data is synchronized in real time when there is an internet connection.
  • 📱 The function works regardless of the current Android version, as long as the Google Play service is installed.
  • 🛡️ Passwords are stored encrypted on Google servers.

View saved networks on older versions of Android (Root)

On devices running Android versions below 10 (and on some custom ROMs even higher), the system doesn't allow viewing passwords using standard tools. In this case, the only way is to access the system configuration file, which requires permissions. Root (superuser).

The file containing all networks ever saved is located at /data/misc/wifi/wpa_supplicant.conf (Sometimes WifiConfigStore.xml (on newer versions). To view this file, you need a file manager with root access support, such as Root Explorer, ES File Explorer or MT Manager.

After opening the file, you'll see a text structure where each SSID corresponds to a block of parameters. The password you're looking for will be in the line psk="YOUR_PASSWORD"Be careful when editing this file: any syntax error may cause the phone to stop detecting the Wi-Fi module or to be unable to connect to any network.

network={

ssid="Home_WiFi"

psk="ComplexPassword123"

key_mgmt=WPA-PSK

}

Risks of using root rights

Rooting your device voids the warranty, may break banking apps (due to system integrity issues), and makes your phone vulnerable to malware if you're not careful.

How to find the password on an iPhone (iOS 16 and later)

For a long time, Apple device owners had to put up with the inability to view their saved passwords. However, with the release of iOS 16 The company added the long-awaited feature of viewing Wi-Fi keys directly in Settings. This makes the process similar to Android, albeit with some interface tweaks.

To view your password, go to Settings → Wi-FiIn the list of networks, find the one you need to get the key for and click on the blue information icon (i) To the right of the title. In the menu that opens, find the "Password" field, which is hidden by dots by default.

Click on the field with dots. The system will ask for confirmation in Face ID, Touch ID or a screen passcode. After successful authentication, the dots will turn into readable text that can be copied. This feature only works if the device has previously connected to the network.

iOS version Viewing option Access method Requirements
iOS 16+ Yes (native) Wi-Fi settings Face ID / Touch ID
iOS 15 and below No (direct) Via macOS / iCloud Synchronization of keys
iPadOS 16+ Yes (native) Wi-Fi settings Device passcode
Any iOS Indirect Share command Having another Apple ID

It is important to note that on tablets iPad With iPadOS 16, the functionality is completely identical to the iPhone. If you have an older version of the operating system, the only legal way is to sync with your Mac via iCloud Keychain, where the password can be viewed in the Keychain Access app.

Using ADB to Extract Passwords (Advanced)

For users who do not want to get Root rights, but have technical knowledge, there is a method to extract passwords via USB debugging (ADBThis method works on Android 10 and newer, but requires USB debugging enabled on your phone and a computer with the ADB platform tools installed.

The method works by allowing Android apps (and ADB with the appropriate permissions) to request a QR code for the current network. The command returns a string containing the password in cleartext. This works because the QR code generation process has a higher security priority than simply viewing a configuration file.

Connect your phone to your PC, open a command prompt in the ADB folder, and enter the following command to get current network information:

adb shell cmd wifi get-network-params

In response, you will receive an XML-like data structure, where in the tag PreSharedKey will contain the password you're looking for. If you need to get the password for a specific network by its SSID, the command may vary depending on your Android version, but often it's enough to request the parameters of the active network.

⚠️ Note: The ADB command interface may change with Android updates. If a command doesn't work, check the documentation for your specific OS version. Do not download ADB drivers from untrusted websites; use only the official Android SDK Platform Tools.

☑️ Getting Started with ADB

Completed: 0 / 4

Common errors and problems when searching

Even following the instructions, users may encounter difficulties. Often, the problem lies not in the lack of a feature, but in specific security settings or firmware versions. For example, on corporate devices with MDM (Mobile Device Management) profiles installed, the administrator may prohibit viewing and exporting Wi-Fi passwords.

Another common situation is using guest networks or networks with web-based authentication (Captive Portal). In such cases, a traditional password (WPA2 key) may be missing, as access is provided via login and password from vouchers or via SMS. It's impossible to find this password in the Wi-Fi settings, as it's not saved in the wpa_supplicant system file.

The issue of "forgotten" networks is also worth mentioning. If your phone has previously connected to a network, but you remove it from the list of saved networks ("Forget Network"), the password is immediately erased from memory. It can only be recovered if it was synced with a cloud account (Google or iCloud) before being deleted.

  • 🚫 The absence of a QR code button may indicate restrictions from the telecom operator or manufacturer.
  • 📶 Enterprise networks (WPA2-Enterprise) often use certificates rather than simple passwords.
  • 🗑️ Deleting a network from your phone's memory permanently erases the access key.
  • 🔄 Resetting network settings deletes all saved Wi-Fi passwords and Bluetooth pairings.

FAQ: Frequently Asked Questions

Is it possible to find out the Wi-Fi password if the phone is not connected to it?

No, this is not possible. The phone does not store passwords for networks it has never connected to or for which the connection has been deleted ("Forget Network"). To connect to a new network, you must know the password in advance.

Is it safe to use WiFi Password Viewer apps from Play Market?

Most of these apps on unrooted devices are fake or only show passwords you've previously saved in notes. On rooted devices, they have full access to your data, which can be unsafe. It's better to use built-in system tools.

Where is the password file located on iPhone?

iOS doesn't have access to the user's file system in the traditional sense. Passwords are stored in the encrypted Keychain and can only be accessed through system settings (on iOS 16+) or via syncing with macOS.

What to do if the QR code does not scan?

Try increasing the brightness of the phone screen where the code is displayed. If that doesn't help, take a screenshot, crop the excess edges, and try recognizing the image using Google Lens or the built-in scanner in the gallery. Often, the issue is glare or low screen resolution.

Can a virus steal Wi-Fi passwords from my phone?

Theoretically, yes, especially if the malicious app has permission to read the clipboard or access accessibility features. However, on modern versions of Android and iOS, access to system passwords is strictly limited by the app sandbox. The main threat is phishing apps disguised as "Wi-Fi boosters."