How to find your Wi-Fi password on your Xiaomi phone: all the ways (including hidden ones)

Why do you need a WiFi password from your phone?

Have you ever faced a situation where you need to connect a new device to your home Wi-Fi, but the password has long been forgotten and the sticker on the router has been erased? Or a friend asks to share the Internet, and you do not remember the combination of characters that were introduced two years ago? With Xiaomi phones (including Redmi and POCO), this problem is solved in a couple of clicks - if you know where to look.

Unlike the iPhone, where network passwords are stored encrypted and not available without jailbreaking, MIUI smartphones (even those with HyperOS shells) allow you to extract stored data in several ways. The main thing is not to try to hack the router or reset its settings: these are unnecessary risks.

In this article you will find:

  • ๐Ÿ” Official methods through Xiaomi settings (without root rights).
  • ๐Ÿ“ Methods with access to the file system (for experienced users).
  • ๐Ÿ› ๏ธ Bypasses if the phone is not connected to the network right now.
  • โš ๏ธ Safety warnings and possible errors.

All instructions are valid for devices on MIUI 12-14 and Android 10-14, including Xiaomi 13/14, Redmi Note 12/11, POCO X5/F5 and others. If your smartphone is running on an older version, some menu items may differ, but the logic remains the same.

๐Ÿ“Š How often do you forget your Wi-Fi passwords?
Often, once a month
Sometimes, six months.
There's always a note next to it.
Never forget.

Method 1: Viewing your password through Wi-Fi settings (the easiest one)

If your Xiaomi is currently connected to the target network, this method will work 90% of the time. It doesn't require superuser rights or installing additional apps. Here's how to do it:

  1. Open the Settings app (the gear icon on the desktop).
  2. Go to the Wi-Fi section (or Connections โ†’ Wi-Fi on some firmware).
  3. Find your network in the list and tap it by its name (not by switch!).
  4. In the window that opens, select Share or Show Password (the name may differ).
  5. Confirm the action with a fingerprint, PIN-code-key.

After that, it will appear on the screen. QR-The code for connecting other devices quickly, and the text password underneath, can be copied or written. MIUI Password can be hidden behind stars - to display tap the icon of the eye (๐Ÿ‘๏ธ).

Check if you are connected to a Wi-Fi network

Update your firmware to the latest version of MIUI

Try an alternative method (see below)

Reboot the phone.-->

โš ๏ธ Note: If your Xiaomi runs on Android 10 and below, this method may not work due to security limitations.

Advantage of the method:

  • โšก Fast - takes less than 30 seconds.
  • ๐Ÿ”’ Secure โ€“ does not require access to system files.
  • ๐Ÿ“ฑ It works on all Xiaomi, Redmi and POCO.

Method 2: View a list of saved networks (if not currently connected)

What if you want to find out the password for a network that your phone isn't connected to right now, but it's connected to before? MIUI has a hidden function to export the list of networks, which is rarely used, but it does save you in these situations.

Instructions:

  1. Open the Settings. โ†’ Wi-Fi.
  2. Stick to three points (โ‹ฎ) in the upper right corner and select Additional (or Advanced Settings).
  3. Find Export Networks or Backup Wi-Fi Networks.
  4. Confirm the export with a password/fingerprint.
  5. The file with the.conf extension will be saved in the Download folder. Open it with any text editor (for example, QuickEdit or Google Docs).

In the file you will see blocks of the form:

network={


ssid= "Name of your network"




psk="your password"




key_mgmt=WPA-PSK




}

Where psk="..." is the password you want. The method is the problem: the file contains all the networks you saved, so you have to manually search for the one you want.

๐Ÿ’ก

If the passwords are encrypted in the file (instead of the text, random characters), then your device has backup encryption enabled. Try disabling it in the Xiaomi account settings or using Method 3.

MethodDo you need a network connection?Need root rights?Difficulty
Through "Share."โœ… Yes.โŒ No.โญ
Exports of networksโŒ No.โŒ No.โญโญ
File systemโŒ No.โš ๏ธ Partially.โญโญโญ
Third-party annexesโŒ No.โŒ No, but permissions are required)โญโญ

Method 3: Removing passwords from system files (for advanced ones)

This is a good method if the first two didn't work and you don't have root permissions, and we're going to use a built-in MIUI Explorer with access to hidden folders. Importantly, don't delete or edit other files in those directories, because that could disrupt the system!

Step-by-step:

  1. Open the standard Files app (or install Solid Explorer from Google Play).
  2. Enable the display of hidden files: in Solid Explorer, this is done through the menu (โ‹ฎ) โ†’ Settings โ†’ Hidden files.
  3. Go to /data/misc/wifi/WifiConfigStore.xml or alternative path (on some firmware): /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml
  4. Open the file with a text editor and find the line: <string name="ConfigKey">your network</string> <string name="PreSharedKey">your password</string>

On Android 12 devices+ and MIUI 13+ This file can be encrypted, and you'll need to either root or use it. ADB-commands (see Method 5).

โš ๏ธ Attention: Getting into the folder /data/ without root rights is possible only on some firmware Xiaomi (for example, on the Internet). POCO F1 If the conductor gives an error "No access", proceed to the Method 4.

What to do if the WifiConfigStore.xml file is empty?
On some versions of MIUI, passwords are stored in binary format or in another file. Try searching in /data/misc/wifi/ files with the.conf or.bin extension. If there is nothing there, use ADB (Method 5) or specialized applications (Method 4).

Method 4: Apps for viewing Wi-Fi passwords

If the system methods didn't work, third-party tools will come to the rescue, and they don't require root rights, but they need special permissions, and we tested a few applications and selected the most reliable ones.

  • ๐Ÿ“ฑ WiFi Password Viewer (from SimoneDev) โ€“ shows passwords of saved networks, runs on Android 10โ€“13.
  • ๐Ÿ”‘ WiFi Key Recovery โ€“ Supports Xiaomi and other brands, but may not see networks added through the QR-code.
  • ๐Ÿ›ก๏ธ Network Info II โ€” In addition to passwords, it also provides detailed information about the network (IP, MAC, signal strength).

How to use (for example, WiFi Password Viewer):

  1. Download the app from Google Play.
  2. When you first start, give access to Wi-Fi connections and storage.
  3. In the main window, select Saved Networks tab.
  4. Slip the name of the network you want - the password will appear in the Password field.

Warnings:

  • โŒ Do not install applications from unknown sources (APK-Files โ€“ they may contain viruses.
  • โš ๏ธ Some utilities require disconnection MIUI Optimization in the developer settings (this can disrupt the stability of the system).
  • ๐Ÿ”„ After using the application, delete it so as not to leave loopholes for data leakage.

๐Ÿ’ก

Third-party apps are the most versatile way, but they may not work on the latest versions of MIUI due to Google and Xiaomiโ€™s tightening security policies.

Method 5: Using ADB (for tech-savvy)

If youโ€™re familiar with Android Debug Bridge (ADB), this method will allow you to extract a password even without root permissions. Youโ€™ll need a computer with Xiaomi drivers installed and USB debugging enabled on your phone.

Instructions:

  1. Turn on Developer Mode on your phone: go to Settings โ†’ About Phone and tap the MIUI version 7 times.
  2. Return to Settings โ†’ Additional โ†’ For developers and activate Debugging over USB.
  3. Connect your phone to your PC and confirm your trust in your computer.
  4. Open the command line (Windows) or terminal (macOS/Linux) and type: adb shell su -c "cat /data/misc/wifi/WifiConfigStore.xml | grep psk" If the command does not work, try: adb shell cmd wifi list-networks

The result will look like this:

id     ssid                    BSSID              flags


0      "MyWiFi"                 any               [WPA2-PSK-CCMP+TKIP]




1      "Office"                 any               [WPA-PSK-CCMP+TKIP]

To see a password for a network with id=0, enter:

adb shell


cmd wifi get-network-info 0

โš ๏ธ Attention: MIUI 14+ Android 13+ team ADB If you see a Permission denied error, your firmware is blocking access.

Method 6: Getting a root-right password (extreme option)

If none of the previous methods worked and the password is urgent, you can exercise the rights of the superuser. This is risky (may lead to loss of warranty or "bricking" the device), but it gives 100% result.

What you need:

  • ๐Ÿ“ฑ Xiaomi phone with unlocked bootloader and installed Magisk or SuperSU.
  • ๐Ÿ’ป PC ADB (Optionally, if you do not want to use the terminal on your phone).
  • ๐Ÿ”ง Root Explorer app or app or FX File Explorer.

Action:

  1. Open Root Explorer and go to /data/misc/wifi/.
  2. Find the WifiConfigStore.xml file and open it.
  3. Or run in the terminal: su cat /data/misc/wifi/WifiConfigStore.xml
  4. Copy the value of the PreSharedKey parameter for the desired network.

Alternatively, the Terminal Emulator is:

su


ls /data/misc/wifi/




cat /data/misc/wifi/WifiConfigStore.xml | grep -A 5 "your network"

โš ๏ธ Note: Using root rights disables some functions MIUI, For example, Find Device and Game Turbo, which can cause problems with banking applications (because of SafetyNet!

Frequent Mistakes and How to Avoid Them

When trying to find out the password from Wi-Fi on Xiaomi, users face typical problems, and here are the most common ways to solve them:

Mistake.Reason.Decision
No share button.Outdated version of MIUI or corporate policy restrictionsUpdate the firmware or use the 2/3 method
No access to the WifiConfigStore.xml fileAndroid 12+ blocks access without rootTry ADB or third-party apps
The app doesn't show passwordsMIUI restrictions for third-party utilitiesUse proven programs (see Method 4)
ADB issues Permission DeniedFirmware blocks commandsTry root or go to method 3.

A few more life hacks:

  • ๐Ÿ”„ If the phone is not connected to the network, but you remember its name, try resetting the network settings (Settings). โ†’ System system โ†’ Reset โ†’ Reset network settings. After that, when you connect to the network, you will be asked to enter a password, at which point you can click "Show password".
  • ๐Ÿ“ก If you have a second Xiaomi phone that is connected to this network, use it to extract your password (by any of the methods described above).
  • ๐Ÿ”ง On some routers (for example, Xiaomi Mi Router) the password can be viewed in the web interface at the address 192.168.31.1 (login/password usually admin/admin).
Can I find out the Wi-Fi password without a Xiaomi phone?
Yes, but the methods depend on the device: On iPhone, jailbreak or iCloud Keychain (if sync is enabled); on other Androids, use applications like WiFi Password Viewer or ADB. On Windows, open the command prompt and type in netsh wlan name="network name" key=clear.
Why is the WifiConfigStore.xml password encrypted?
Starting with Android 10 and MIUI 12, Xiaomi has started encrypting some system files to protect users' data. If you see a set of characters instead of a password, like, a1b2c3d4e5, This means that your firmware uses File-Based Encryption (FBE). To decrypt, you need a key that is generated when you boot the system (available only from root). ADB Specialized utilities (for example, WiFi Password Recovery Pro).
Will Method 1 work on Xiaomi with global firmware?
Yes, but there are nuances: On global and European versions of MIUI, the Share button may be called Share or QR Code. Some firmware (e.g., Xiaomi.eu) requires additional confirmation via Mi Account. If the phone is tied to corporate policy (e.g., via Android Enterprise), the feature may be disabled by the administrator.
Can I get a password from the Wi-Fi guest network?
Not if the guest network is configured on the router as a separate access point, in which case: Its password is stored only in the router settings. You can connect to the main network and go to the router control panel (usually 192.168.0.1 or 192.168.1.1).
What if none of the methods worked?
If all of these methods fail, radical measures remain: Reset the router to the factory settings (reset button on the back). Minus: you have to reconfigure the network. Contact the provider - they may have a default password saved (usually indicated on the router's box), connect the router to the PC via cable and see the password in its web interface. If the router is rented from the provider (for example, Rostelecom or Beeline), the reset can block access to the Internet. In this case, call in support - they will give a password.