Where is your smartphone's Wi-Fi password stored: how to find, save, and restore it

Forgot your home Wi-Fi password, and the sticker on your router has worn off? Or need to connect a new gadget but don't want to mess with the router settings? Wi-Fi network passwords are stored directly on your smartphone. — and they can be retrieved even if you haven't remembered the combination in a while. But where exactly they're hidden depends on the operating system, firmware version, and even the device model.

Many users mistakenly believe that wireless network passwords are stored in the cloud (like Google account logins, for example). In fact, Android and iOS store them locally — in protected system files or keychains. Access to them is not always obvious: iPhone we will have to use workarounds, and Android — dig into the engineering menu or install third-party utilities. However, there are also universal methods that work on most devices.

In this article, we'll cover all the current methods—from standard settings to hidden features not mentioned in the instructions. We'll also explain why passwords sometimes "disappear" after a phone reset and how to prevent this.

1. Where are Wi-Fi passwords physically stored on a smartphone?

Wireless network passwords aren't floating around in the cloud or stored in a plain text file. They're stored in protected memory sections, access to which is strictly controlled by the operating system. Here's how it works on different platforms:

On Android Network data (including passwords) is saved in a file wpa_supplicant.conf - it is in the folder /data/misc/wifi/. However, it is impossible to read it without root rights It's impossible: the system blocks access even through the file manager. An alternative is the database. WiFiConfigStore.xml (on new versions of Android), but it is also protected.

On iPhone And iPad passwords are stored in Keychain — Apple's secure storage, which syncs across devices via iCloud. Only system apps have access to it, so extracting the password directly is impossible. You'll have to use workarounds (discussed below).

Interesting fact: some manufacturers (eg. Xiaomi or Samsung) duplicate passwords across their proprietary cloud services. If you're logged in with the same account on multiple devices, the network may connect automatically—but the password itself still won't be displayed in the settings.

📊 How often do you forget your Wi-Fi passwords?
Often - once a month
Sometimes - once every six months
There is always a sticker from the router nearby.
I never forget

2. How to view your Wi-Fi password on Android (4 ways)

On smartphones with Android There are several ways to retrieve a saved password, from simple to technically complex. The method you choose depends on your OS version and whether you have root access.

Method 1: Via Settings (Android 10+ only)

Starting from Android 10Google has added the ability to view your password directly in your network settings. Here's how:

  1. Open Settings → Wi-Fi.
  2. Click on the name of the connected network.
  3. Tap on the icon Share (or "Share").
  4. Enter your PIN or fingerprint to confirm.
  5. The password will be displayed under the QR code.

⚠️ Attention: On some firmware (for example, MIUI from Xiaomi or One UI from Samsung) this item may be missing. In this case, proceed to the next method.

Method 2: Via the wpa_supplicant.conf file (root required)

If you have root access, you can manually open the file with passwords:

  1. Install a file manager with root support (e.g. Root Explorer or FX File Explorer).
  2. Follow the path /data/misc/wifi/.
  3. Find the file wpa_supplicant.conf and open it with a text editor.
  4. Look for blocks like:
    network={
    

    ssid="Network_Name"

    psk="wifi_password"

    key_mgmt=WPA-PSK

    }

⚠️ Attention: Editing this file without knowledge may result in loss of all saved networks. Do not change its contents!

Method 3: Using ADB (without root)

If you don't have root rights, but your phone is enabled USB debugging, can be used ADB (Android Debug Bridge). Instructions:

Install ADB on your PC (download from the Android Studio website)

Enable USB debugging in your phone settings (Settings → About phone → Build number - tap 7 times)

Connect your phone to your PC via USB and enable debugging.

Open Command Prompt (Windows) or Terminal (macOS/Linux)-->

Next, enter the commands:

adb shell

su

cat /data/misc/wifi/WifiConfigStore.xml | grep -E 'SSID|PreSharedKey'

If the command doesn't work, try this alternative:

adb pull /data/misc/wifi/WifiConfigStore.xml

(The file will be copied to your PC, open it with notepad and find the line PreSharedKey.)

Method 4: Third-party applications

IN Google Play There are utilities that display saved passwords without root access. Popular options:

  • 🔓 WiFi Password Viewer — works on many firmware versions, but requires access to the file system.
  • 📱 WiFi Key Recovery - suitable for devices with Android 9 and below.
  • 🔍 WiFi Password Show — displays passwords as QR codes for quick connection to other devices.

⚠️ Attention: Apps from untrusted sources may contain malicious code. Install only apps with high ratings and numerous reviews.

3. How to find the Wi-Fi password on an iPhone or iPad

Apple strictly controls access to system data, so iPhone There's no direct way to view a Wi-Fi password. However, there are three workarounds:

Method 1: Via Mac (if the devices are on the same network)

If you have MacBook or iMac, connected to the same network:

  1. Open Programs → Utilities → Keychain Access.
  2. Enter the name of the Wi-Fi network in the search bar.
  3. Double-click on the found entry.
  4. Check the box Show password and enter your Mac login/password.

Method 2: Via iTunes Backup (Windows/PC)

You can extract the password from the backup copy. iPhone, created in iTunes:

  1. Connect your iPhone to your PC and create a backup (encrypted!).
  2. Download the utility iBackup Viewer or iExplorer.
  3. Open the backup in the program and find the section Keychain.
  4. Export the data and look for the entry with the name of your Wi-Fi network.

Method 3: Via a router (universal method)

If none of the methods worked, you can go to your router settings:

  1. Find out the IP address of the router (usually 192.168.0.1 or 192.168.1.1).
  2. Enter it into the address bar of your browser.
  3. Log in (login/password usually admin/admin or indicated on the router sticker).
  4. Go to the section Wireless or Wi-Fi - there will be a field there Password or Pre-Shared Key.

⚠️ Attention: If you've changed your router settings, the default login/password may not work. In this case, you'll need to reset the router to factory settings (using the button). Reset on the back panel).

4. Why your Wi-Fi password might disappear from your phone

Sometimes users experience smartphones suddenly "forgetting" saved networks. Here are the main causes:

Cause How does it manifest itself? How to avoid
Reset settings After Hard Reset all networks are erased Save passwords in the cloud (Google Drive, iCloud) or on paper
Firmware update Sometimes an update resets Wi-Fi settings Before upgrading, export passwords (see section 5)
Error in file wpa_supplicant.conf The phone does not connect to any network. Delete the file manually (root required) or reset network settings
Conflict with VPN or firewall The network is saved, but the connection is not working. Disable your VPN or check your firewall settings.

💡 Helpful tip: If your phone stops connecting to Wi-Fi after an update, try forget the network (Settings → Wi-Fi → Tap on the network → Forget) and reconnect.

5. How to export all Wi-Fi passwords from your phone

To avoid losing your passwords when resetting your phone or buying a new one, you can export them. We'll cover the methods for both platforms.

On Android

Use the app WiFi Password Export (root required):

  1. Install the app from Google Play.
  2. Click «Export» and select the format (TXT or CSV).
  3. The file will be saved in your phone's memory - copy it to the cloud.

On iPhone

Export is possible only through Mac:

  1. Open Keychain Access (as in method 1 of section 3).
  2. Select all records with types AirPort (these are Wi-Fi networks).
  3. Click File → Export Elements.
  4. Save the file in the format .keychain.

⚠️ Attention: Store exported passwords encrypted! Never send them in clear text via email or instant messaging.

What should I do if the exported file is corrupted?

If the password file does not open, try:

1. Resave it in a different format (for example, TXT instead of CSV).

2. Use the program Notepad++ to restore encoding.

3. Check the file for viruses (sometimes they damage data).

If nothing helps, you will have to extract the passwords again.

6. Alternative methods: how to connect to Wi-Fi without a password

If you can't retrieve the password but need to connect a new device, there are workarounds:

  • 📱 QR code: On Android 10+ You can generate a QR code for the network in the Wi-Fi settings (section Share). Scan it with another phone.
  • 🔄 WPS: Click the button WPS on the router, and on the phone select "Connection via WPS" in the Wi-Fi settings.
  • 🌐 Guest network: Some routers allow you to create a temporary guest network without a password (settings in the router's web interface).
  • 📡 Repeat Mode: If you have a second phone connected to Wi-Fi, turn it on modem mode and distribute the Internet via Bluetooth or USB.

⚠️ Attention: The WPS method does not work on all routers and is considered unsafe — it can be hacked in a few hours. Use it only for temporary connections.

7. Security: How to protect Wi-Fi passwords on your phone

Saved Wi-Fi passwords are a tasty morsel for hackers. Here's how to protect them:

  • 🔒 Don't store passwords in the cloud in plain text (for example, in Google Keep notes). Use password managers (1Password, Bitwarden).
  • 📱 Disable auto-connection to open networks (Settings → Wi-Fi → Advanced → Auto-connect).
  • 🔄 Change your router password regularly (once every 3-6 months).
  • 🛡️ Use WPA3 instead of WPA2 in the router settings (if supported).

💡 Helpful tip: If you connect to public networks (in cafes, airports), turn on VPN - this will protect your traffic from interception.

FAQ: Frequently asked questions about smartphone Wi-Fi passwords

Is it possible to find out the password for the Wi-Fi connection my phone connected to a year ago?

Yes, if the network is saved in the phone's memory. Android check the file wpa_supplicant.conf (root required) or use apps like WiFi Password ViewerOn . iPhone the password can be extracted from a backup copy iTunes, if it was created at that time.

Why is there no "Share" button to view the password on my Xiaomi?

Manufacturers often modify Android by removing standard features. Xiaomi, Huawei or Samsung may require:

  1. Update the firmware to the latest version.
  2. Use ADB or root access.
  3. Install a third-party application to view passwords.
Is it possible to recover a Wi-Fi password after resetting a phone to factory settings?

No, at Hard Reset All local data (including Wi-Fi passwords) is permanently deleted. The only options are:

  • View the password on another device connected to this network.
  • Go to the router settings (via a browser using the IP address).
  • Restore the backup (if it was created before the reset).
Are Wi-Fi password viewer apps safe to use?

Most of the applications from Google Play safe, but:

  • 🔍 Check the number of downloads and reviews.
  • 🚫 Avoid apps that request unnecessary permissions (such as access to SMS or contacts).
  • 📱 Prefer open source code (e.g. WiFi Key Recovery on GitHub).

On iPhone Such applications are useless - Apple blocks access to system files.

How do I transfer all my Wi-Fi passwords to a new phone?

The methods depend on the platform:

  • Android → Android: Use Google Account Sync (Settings → Accounts → Google → Sync) or export passwords to a file (see section 5).
  • iPhone → iPhone: Turn on sync iCloud Keychain (Settings → [Your name] → iCloud → Keychain).
  • Android → iPhone (or vice versa): You will have to manually extract the passwords (for example, via the router) and enter them on the new device.