Where Android Stores Your WiFi Password
Your Android phone stores WiFi passwords in a find system file, but Android does not give you a straightforward "view password" button in Settings. Instead, you have three working routes: look at the QR code your phone generates for the network, check your router's admin panel, or view the password through your phone's file system if you have enabled developer mode. The easiest path depends on what you need the password for and whether you still have access to your router.
If you just need to share the network with someone else in the room, the QR code method takes 30 seconds. If you need the actual text password or you have forgotten it entirely, you will need either router access or file system access.
Key Takeaways
- The fastest way to share a WiFi password is to generate a QR code on your phone and let someone else scan it, which works without knowing the actual password text.
- To see the password as text, you can log into your router's admin panel using a web browser on any device, usually at 192.168.1.1 or 192.168.0.1.
- If you have enabled Developer Options on your phone, you can navigate to the WiFi password file directly through a file manager, though this requires more steps.
- The password file location is /data/misc/wifi/WifiConfigStore.xml, but accessing it requires either developer mode or a computer connection with USB debugging enabled.
Using the QR Code Method (Fastest)
If someone near you needs to join your WiFi network, this is the quickest solution. Open Settings, go to WiFi, find the network you are connected to, and tap the network name. Your phone will display a QR code. The other person can open their camera app, point it at the code, and tap the notification that appears — their phone will connect automatically without needing the password text.
This method works on Android 10 and newer. The QR code contains the network name, password, and security type all at once, so there is nothing to type. If the other person has an older Android phone or an iPhone, they can still scan the code, but they may need to manually enter the password that appears on their screen.
Checking Your Router's Admin Panel
Your router stores the password in its own settings, and you can view it from any device with a web browser. Open Chrome, Firefox, or Safari on your phone, tablet, or computer and type your router's IP address into the address bar. Most home routers use 192.168.1.1 or 192.168.0.1 — if neither works, check the sticker on the back or bottom of your router, which usually lists the address.
When the login page appears, enter your router's username and password. The default is often admin/admin or admin/password, but if you changed it when you first set up the router, use that password instead. Once you are logged in, look for a section called Wireless, WiFi Settings, or Network. The password field will show your network password in plain text or as dots — most routers have a "show password" checkbox next to it.
If you cannot remember your router login, you can reset the router to factory defaults by holding the reset button (usually a small hole on the back) for 10 to 15 seconds. This will erase all your settings, so you will need to set up the network again from scratch, but you can then log in with the default credentials.
Viewing the Password Through Android's File System
This method requires you to enable Developer Options first, which is a hidden menu in Android Settings. Go to Settings, scroll to About Phone, and tap Build Number seven times in quick succession. You will see a message saying "You are now a developer." Go back to Settings, and you will now see Developer Options near the bottom.
Open Developer Options and turn on USB Debugging. Connect your phone to a computer with a USB cable. On your computer, read Android Debug Bridge (ADB), which is a free tool from Google. Open a command prompt or terminal window, navigate to the ADB folder, and type the command to pull the WiFi configuration file from your phone. The file is located at /data/misc/wifi/WifiConfigStore.xml.
Once you have the file on your computer, open it with a text editor like Notepad or TextEdit. Search for the network name you are looking for — it will appear as the SSID. Just below it, you will see a field called PreSharedKey, which contains your password. The password is stored in plain text in this file, so you can read it directly.
This method is more technical than the others and requires a computer, but it works on any Android version and does not require router access. If you are not comfortable with command-line tools, the router method is simpler.
What to Do If You Cannot Access Your Router
If your router is not responding or you do not have the login credentials, the file system method is your best option. If you have not enabled Developer Options yet, you will need to do that first, which takes a few minutes. Once Developer Options is on, the ADB method will work even if your router is completely inaccessible.
If you have a newer phone and cannot remember your router password, contact your internet service provider. They can often reset your router remotely or send you a replacement with a new default password. Keep in mind that resetting your router will disconnect all devices currently on the network, so do this only when necessary.
Passwords Stored on Your Phone vs. Passwords You Have Forgotten
There is an important difference: these methods only work if your phone has already connected to the network before. Android stores passwords for networks you have joined, but it does not store passwords for networks you have never connected to. If you are trying to find a password for a network your phone has never joined, you will need to access the router itself or contact whoever set up that network.
Also, if you have factory reset your phone since the last time you connected to a network, that password will be gone. Factory reset erases all stored WiFi passwords. In that case, your only option is the router admin panel or contacting your internet service provider.
Frequently Asked Questions
Can I see the WiFi password if I am not connected to the network right now?
No. Android only stores passwords for networks you have previously joined. If your phone is not currently connected and has never connected before, the password is not stored on your device. You will need to access your router or contact the network owner.
Will viewing my WiFi password through these methods affect my connection?
No. Looking at the password in Settings, the router admin panel, or the file system does not change anything about your connection. Your phone will stay connected the entire time.
What if the QR code method does not work on my phone?
The QR code feature requires Android 10 or newer. If you have an older version, use the router admin panel method instead. You can check your Android version in Settings under About Phone.
Is it safe to enable Developer Options?
Developer Options is safe to leave on. It does not harm your phone or security. However, USB Debugging should only be enabled when you are actively using it — turn it off when you are done to reduce the small risk of unauthorized access through a connected computer.
Can I recover a password if I have already factory reset my phone?
No. Factory reset erases all stored WiFi passwords permanently. Your only option is to log into your router and view the password there, or contact your internet service provider for help.