How to Find Your Wi-Fi Password on Android

Need to share it but cant remember it? 3 ways to view your passwords

Woman in her kitchen in the morning, posting sticky notes on the fridge

Westend61/Getty Images

When you enter a Wi-Fi password, your device remembers it indefinitely; however, for security reasons, it's never going to share the password willingly. Fortunately, there are ways to display your Wi-Fi password on Android if you have a rooted device. It's possible to access all off your password protected Android folders with a command line tool called ADB.

The information below should apply no matter who made your Android device: Samsung, Google, Huawei, Xiaomi, etc.

How to Find Wi-Fi Passwords on Android Using Solid Explorer

The Solid Explorer app is easily one of the best Android file browsers. Use it to retrieve your Wi-Fi password:

To use any of these methods, you must enable root access to your Android device, which will void the warranty. Be sure to back up your data before attempting to root your smartphone or tablet.

  1. Open the Google Play Store app and search for Solid Explorer.

  2. Tap Solid Explorer File Manager, then tap Install.

    Solid Explorer File Manager in Google Play Store
  3. Open Solid Explorer. The home screen lists your major directories, which are the media folders that you'd typically access on a regular basis.

  4. Tap the stacked lines in the upper-left corner of the screen to open the menu.

  5. Locate Root under the Storages heading, and select it.

  6. Tap data in the root filesystem. When asked, allow Solid Explorer root permissions.

    Menu icon, Root section, data directory on Android
  7. Scroll up through the files, and select misc.

  8. Then, find and tap wifi.

    Grant permissions, misc directory, wifi directory on Android
  9. Tap wpa_supplicant.conf. Pick whichever text editor you prefer. SE Text Editor from Solid Explorer will work fine.

    The wpa_supplicant.conf file contains all of your Wi-Fi configuration information, so don't mess with it.

  10. Look under the network block to find an entry for psk. That's your password.

    wpa_supplicant directory, SE Text Editor, psk in text file on Android

    If you connect to multiple Wi-Fi networks with your device, you'll find a network block for each one. Check the ssid entry in each block for your network name.

  11. Write down your password and store it someplace secure so that you can use it later.

How to See Wi-Fi Passwords on Android Using a Terminal Emulator

If you'd rather not install a new file manager, you can choose to use a terminal emulator on your Android device to access the file storing your WiFi password.

There are a bunch of terminal emulators, but Termux is a clear stand-out. It's much more than just a terminal emulator, as it brings a lot of Linux command line utilities, like SSH, to Android so that you can use your mobile device like a proper Linux distribution.

To view Wi-Fi passwords with Termux:

  1. Search for Termux in the Google Play Store and install the app.

    Termux search field, Open button, Termux app running on Android
  2. Open Termux.

  3. Input the following text in the command line:

    $ pkg install termux-tools
  4. Now, you're going to need root(superuser) permissions. Enter the command below.

    $ su

    When asked, Grant superuser permissions to Termux.

  5. Input the following text on the command line:

    # cat /data/misc/wifi/wpa_supplicant.conf
  6. Look under the network block to find an entry for psk.

    pkg install command, Grant permissions button, psk result on Android

    If you connect to multiple Wi-Fi networks with your device, you'll find a network block for each one. Check the ssid entry in each block for your network name.

  7. Write down your password and store it someplace secure so that you can use it later.

How to Show Wi-Fi Passwords on Android Using ADB

You might prefer to do everything from your computer. If so, the Android Debug Bridge (ADB) is just the tool to do that. Use the ADB to pull your Wi-Fi configuration directly from your phone and view it on your computer:

  1. Start by installing the ADB on your computer. This works best from Linux, but you can absolutely use Windows or Mac.

    Linux

    Open a terminal and run the following command:

    $ sudo apt install android-tools-adb android-tools-fastboot

    Windows

    On Windows, you'll need to download the latest platform tools from Google. After unzipping the compressed file, open the folder and right click inside of it. Select the option to open a terminal window.

    macOS

    Start by downloading the latest Google platform tools for Mac. After unzipping the compressed file, open the Mac Terminal app and run this command:

    $ cd /path/to/android/tools
  2. Connect your Android device to your computer via USB. If you want to copy teh actual configuration file from Android, switch the connection on the device from charging to MTP for file transfer.

  3. Back on the computer, enter the following into your terminal window:

    $ adb devices
  4. A notification will appear on your device asking you to enable USB debugging. Allow it, then run the command above again to see your Android device's serial number appear.

    adb devices command on Android Terminal
  5. Run the following commands from the terminal:

    $ adb shell
    $ su
    # cat /data/misc/wifi/wpa_supplicant.conf

    To copy the configuration, run:

    # cp /data/misc/wifi/wpa_supplicant.conf /sdcard/
    # exit
    $ exit
    $ adb pull /sdcard/wpa_supplicant.conf ~/Downloads/

    Then, you can open the file on your computer and access everything. Ignore step 7.

  6. Look for the network blocks in the file. Locate your network by the ssid. The password is listed under psk.

    psk result on Android Terminal app
  7. Then, exit the shell by typing:

# exit
$ exit

You can safely disconnect your Android device from there.