Where Android stores WiFi passwords and how to retrieve them

Android stores WiFi passwords in a file called wpa_supplicant.conf, located in your phone's system files. You can view passwords for networks you've already connected to, but you cannot see passwords for networks you've never joined. The method depends on whether your phone is rooted (has administrative system access) or not.

If your phone is not rooted, you have two practical routes: use the QR code method built into Android 10 and later, or check your Google Account if you saved the password there. If your phone is rooted, you can access the password file directly. Most people fall into the non-rooted category, so start there.

Key Takeaways

  • Android 10 and later phones can display a QR code for any saved WiFi network, which encodes the password in a scannable format.
  • If you signed into your Google Account on your phone, you may be able to view saved passwords through your Google Account settings on a computer.
  • You can only view passwords for networks your phone has already connected to; Android does not store or display passwords for networks you've never joined.
  • Rooted phones can access the password file directly, but rooting voids your warranty and creates security risks.

Using the QR code method on Android 10 and later

Open Settings on your phone, then tap Network & Internet (or Connections on Samsung phones). Select WiFi, then find the network name in the list of saved networks. Tap and hold the network name, then tap Manage or the gear icon. You should see a QR code displayed on the screen.

This QR code contains the network name and password. You can photograph it, or use another device to scan it and read the password from the decoded information. This method works on any Android phone running version 10 or later, regardless of whether the phone is rooted.

Checking your Google Account for saved passwords

If you signed into a Google Account on your Android phone, Google may have stored your WiFi passwords. Go to myaccount.google.com on a computer or tablet, then click Security in the left menu. Scroll down to Your devices and click Manage all devices. Find your Android phone in the list and click it.

Look for a section labeled Saved passwords or WiFi passwords. Not all phones sync this data, and Google only stores passwords for networks you connected to while signed into that account. If the section does not appear, your phone did not sync WiFi passwords to your Google Account.

Accessing the password file on a rooted phone

Rooting your phone gives you administrative access to system files, including the password file. You will need a file manager app that can access system directories — ES File Explorer or Solid Explorer are common choices. Navigate to /data/misc/wifi/ and look for the file wpa_supplicant.conf.

Open this file with a text editor. The file contains network names and passwords in plain text. Search for your network name (called the SSID) and look for the line labeled psk= — the value after that equals sign is the password. Rooting your phone voids your manufacturer warranty and can expose your device to security risks, so this method is only recommended if you have technical experience and understand the trade-offs.

Why you cannot see passwords for networks you have not joined

Android only stores passwords for networks your phone has successfully connected to. The phone does not have access to the password for a network it has never joined — it cannot intercept or retrieve passwords from the air. If you need the password for a network you have never connected to, you must ask the network owner or administrator for it directly.

This is a security feature. It means that even if someone gains access to your phone, they cannot use it to discover passwords for networks in your area that you have never used.

What to do if you forgot the password and cannot access the router

If you have already connected to the network on your Android phone, use the QR code method or Google Account method above to retrieve it. If you have never connected to the network, or if those methods do not work, you will need to reset the router itself. Most routers have a small reset button on the back that you hold for 10 to 15 seconds to restore factory settings.

After a reset, the router will use its default password, which is usually printed on a sticker on the device itself or in the manual. You can then log into the router's admin panel and set a new password. If you do not have physical access to the router, contact the network owner or your internet service provider.

Security considerations when viewing saved passwords

Anyone with physical access to your unlocked phone can use the QR code method to see your WiFi password. If you share your home WiFi with guests or family members, consider whether you want them to be able to retrieve the password from your phone. You can remove a saved network from your phone at any time by going to Settings > WiFi, tapping and holding the network name, and selecting Forget.

If you believe your WiFi password has been compromised, change it through your router's admin panel. Log into your router (usually at 192.168.1.1 or 192.168.0.1 in a web browser), find the WiFi settings, and set a new password. Your phone will forget the old password and ask you to enter the new one the next time you try to connect.

Frequently Asked Questions

Can I see the password for a WiFi network I have never connected to?

No. Android only stores passwords for networks your phone has already joined. To find the password for a network you have never used, ask the network owner or try resetting the router to its factory settings.

What if my phone is older than Android 10?

Phones running Android 9 and earlier do not have a built-in QR code feature. Your best option is to check your Google Account on a computer, or root your phone to access the password file directly. Rooting carries security risks and is not recommended for most users.

Does viewing a saved WiFi password require a PIN or fingerprint?

The QR code method does not require additional authentication on most phones — if your phone is unlocked, anyone can view it. Some phones may ask for your PIN or fingerprint when accessing the WiFi settings menu, depending on your security configuration.

Will resetting my phone erase saved WiFi passwords?

A factory reset will erase all saved networks and passwords from your phone. If you have saved passwords to your Google Account, you can reconnect to those networks after signing back into your account, and Google will restore the passwords automatically.

Is it safe to share the QR code with someone else?

The QR code contains your WiFi network name and password in readable form. Sharing it is the same as telling someone your password directly. Only share it with people you trust to access your network.