How to view your Wi-Fi network security key: all the methods for your PC, phone, and router

Forgot your Wi-Fi password and can't connect to a new device? Or need to share your internet with a guest, but the security key sticker has long since worn off? This situation is familiar to many – according to surveys, 68% of users Have you ever needed to restore access to your network? Fortunately, it's easy to look at your security key (aka Wi-Fi password or network security key) can be done in several ways - without resetting the router and losing settings.

In this article we will look at all current methods for obtaining a password, including little-known tricks for Windows 11/10, macOS, Android and even through the router's web interface. You'll learn how to extract the security key from already connected devices, where password backups are stored in the system, and what to do if none of the methods work. Finally, you'll find a table of method compatibility with various devices and an FAQ with answers to frequently asked questions.

What is a Wi-Fi security key and where is it stored?

Network Security Key (eng. Wi-Fi security key) is a password that protects your access point from unauthorized connections. It can be set manually when setting up the router or generated automatically (for example, on devices from TP-Link or ASUS). Depending on the encryption type, the key may look like this:

  • 🔢 8–63 characters (For WPA2-Personal/WPA3) is the most common option;
  • 🔤 10-digit PIN code (For WPS - a vulnerable method that is best disabled);
  • 📜 16-digit hex code (for obsolete WEP, not used in modern networks).

Where is this key stored?

  • 🖥️ On computers with Windows: in the registry or network connection configuration files;
  • 🍎 On MacBook/iMac: on the keychain Keychain Access;
  • 🤖 On Android: in the file wpa_supplicant.conf (root rights required);
  • 📡 On router: in the web interface or on the sticker (if it has not been changed).
⚠️ Warning: If you use guest network (For example, Mi Wi-Fi on routers Xiaomi), its password may differ from the main one. Make sure you're looking for the key for the correct network.

Method 1: View the key on Windows via the Network and Sharing Center

The easiest method for users Windows 10/11 — use the system's built-in tools. You don't need administrator rights or third-party programs.

Instructions:

  1. Click Win + R, enter ncpa.cpl and press Enter (a list of network connections will open).
  2. Find your Wi-Fi network, right-click on it and select "State".
  3. In the new window, click Wireless Network Properties → go to the tab "Safety".
  4. Check the box "Show input characters" — in the field Network Security Key a password will appear.

If the password field is empty or grayed out:

  • 🔄 Reconnect to the network (sometimes Windows “forgets” saved keys after updates);
  • 🛠️ Check if the service is disabled WLAN AutoConfig (enter in command line sc query wlansvc — the status must be RUNNING).

Network Connections List (ncpa.cpl) is open.

The device is connected to the desired Wi-Fi network

The account has permission to view network settings.

VPN or proxy are disabled (may block access to settings)

-->

This method works for all versions of Windows, starting from Vista, but in Windows 11 The interface has changed slightly: instead of ncpa.cpl you can use the path Settings → Network & Internet → Wi-Fi → Manage known networks.

Method 2: Extracting the password via the command line (CMD)

If the GUI does not show the key (for example, due to a system crash), you can get it via command lineThis method is universal and works even on damaged Windows installations.

Step-by-step instructions:

  1. Open CMD as administrator (click Win + XTerminal (Administrator)).
  2. Enter the command to view all saved networks:
    netsh wlan show profiles

    Remember the name of the network you want (for example, MyWiFi_5G).

  3. Display the security key for a specific network:
    netsh wlan show profile name="MyWiFi_5G" key=clear

    The password you are looking for will be in the section Security Settings (Key content).

Advantages of the method:

  • ⚡ Powered by any versions of Windows (including Windows 7 and server editions);
  • 🔧 Does not require installation of additional software;
  • 📋 You can save all passwords to a text file:
    netsh wlan export profile key=clear folder="C:\WiFi_Passwords\"

    (files will be in format .xml on the way C:\WiFi_Passwords).

⚠️ Warning: If you use corporate network with radius authentication (For example, WPA2-Enterprise), this method will not reveal the password - it is stored on the authentication server, not locally.

Through the Windows graphical interface

Via the command line (CMD)

Through the router settings

Another option-->

Method 3: View the key on Mac (macOS)

On computers Apple Wi-Fi passwords are stored in a secure vault "Bunch of keys" (Keychain Access). To extract them, you don't need to install third-party utilities—standard tools are sufficient.

Instructions for macOS Ventura/Monterey/Big Sur:

  1. Open Spotlight (Cmd + Space) and enter Bunch of keys.
  2. In the left menu, select "System" → On the right side, find the name of your Wi-Fi network.
  3. Double click on the network and check the box. Show password.
  4. Enter your account password Mac (required to confirm rights).

Peculiarities:

  • 🔐 If you forgot your password macOS, access to the keys can only be restored through recovery mode (Cmd + R when loading).
  • 📱 On MacBook with M1/M2 chip passwords are synchronized with iCloud - you can see them on iPhone (V Settings → Wi-Fi → ⓘ next to network).
security delete-internet-password -s "Network_Name", then reconnect to Wi-Fi - the password will be saved automatically.-->

Method 4: How to find out the Wi-Fi password on Android (with or without root)

On smartphones and tablets Android The situation is more complicated: by default, the system does not display saved passwords for security reasons. However, there are workarounds—like for obtaining root rights, and without them.

Without root rights (limited capabilities)

If you have a device on Android 10+ and there is no root, try:

  • 📱 View the network's QR code (on some routers, for example Keenetic or ASUS, it's generated in the web interface). By scanning it with another phone, you'll receive the connection details, including the password.
  • 🔄 Reset the router (last resort): press the button Reset for 10 seconds - the network will return to factory settings, and the password will be on the sticker.

With root rights (full access)

If you have root, use a file manager (for example, Root Explorer):

  1. Follow the path:
    /data/misc/wifi/WifiConfigStore.xml

    or (on older versions of Android):

    /data/misc/wifi/wpa_supplicant.conf
  2. Find the line psk="your_password".

For convenience, you can use applications like WiFi Password Viewer (requires root). They automatically retrieve all stored keys.

⚠️ Attention: On devices with Android 12+ And file system encryption (FBE) even root may not give access to wpa_supplicant.confIn this case, only resetting the router will help.

Method 5: View the key through the router settings

If none of the previous methods worked, there is a universal way - go to router web interfaceThis works regardless of the device (PC, phone, tablet) and operating system.

General instructions:

  1. Find out Router IP address:
    • On Windows: ipconfig → search Main gateway;
    • On Android: Settings → Wi-Fi → ⓘ next to the network → Gateway;
    • On macOS: System Preferences → Network → Advanced → TCP/IP.
  • Enter the address into your browser (usually 192.168.0.1, 192.168.1.1 or 192.168.8.1).
  • Log in (default logins/passwords: admin/admin, admin/password, or see the sticker on the router).
  • Go to the section Wireless Network (Wireless) → "Safety" (Security).
  • Examples of paths for popular brands:

    Manufacturer Model Path to password
    TP-Link Archer C6, TL-WR840N Wireless → Wireless Security → Password (PSK)
    ASUS RT-AX88U, RT-AC68U Wireless Network → General → WPA Pre-Shared Key
    Xiaomi/Redmi Mi Router 4A, AX6000 Wi-Fi → Wi-Fi Settings → Password
    Keenetic Giga, Hero Home Network → Access Point → Network Key

    If you can't log into your router:

    • 🔄 Try resetting it to factory settings (button Reset for 10–15 seconds).
    • 📞 Check your login details with your internet provider (sometimes they block access to settings).
    What should I do if my router displays an "Incorrect Password" error?

    1. Make sure you are entering data in the correct keyboard layout (English).

    2. Check if CAPS LOCK is enabled.

    3. If the password does not work, try the standard combinations for your model (for example, for ZTE this is often admin/zte%1234).

    4. On some routers (for example, Huawei) login and password can match the SSID of the network (Wi-Fi name).

    What to do if none of the methods worked

    If you've tried all the methods and still can't extract the security key, there are some drastic measures left:

    1. Resetting the router to factory settings:
      • 🔄 Click the button Reset on the back panel of the router (hold for 10-30 seconds).
      • 📋 The password will be reset to the factory default (indicated on the sticker).
      • ⚠️ Minus: you will have to configure the network again (SSID, channel, DNS, etc.).
    2. Contact your provider:
      • 📞 Call support and ask them to send you an SMS with your router login information.
      • 📧 Some providers (eg. Rostelecom or Beeline) duplicate the password in your personal account.
  • Use a backup copy of the configuration:
    • 💾 If you previously saved your router settings to a file (for example, .cfg or .bin), you can restore them via the web interface.

    If the router is rented from a provider (for example, MGTS or Dom.ru), resetting may block internet access. In this case:

    ⚠️ Important: Before resetting, check with your provider to make sure the settings aren't tied to your contract. Some operators (e.g., Third Transport Ring) use MAC address binding and will require reactivation after a reset.

    FAQ: Frequently asked questions about Wi-Fi security keys

    Is it possible to find out the password for someone else's Wi-Fi network?

    Technically yes, but that's illegallyHacking into other people's networks is punishable under Article 272 of the Russian Criminal Code ("Unauthorized access to computer information"). If the network is not password-protected (open), connecting to it may also violate provider rules or local laws.

    Why doesn't Windows save my Wi-Fi password?

    Reasons:

    • 🔄 The network is configured as "limited" (without access to local network);
    • 🛠️ Service is disabled WLAN AutoConfig;
    • 📛 Problems with the Wi-Fi adapter driver (check in Device Manager).

    Solution: Delete the network in Settings → Network → Wi-Fi → Manage known networks and reconnect.

    How to change the security key on a router?

    Instructions:

    1. Go to the router's web interface (see Method 5).
    2. Go to Wireless Network → Security.
    3. In the field Password (Password or PSK) enter a new key (minimum 8 characters).
    4. Save the settings and reconnect all devices.

    Recommendations:

    • 🔐 Use a combination of letters, numbers, and symbols (e.g. K7#pL9!mQ2);
    • 📵 Do not use personal information (dates of birth, names);
    • 🔄 Change your password every 3-6 months.
    Is it possible to recover a Wi-Fi password after resetting a router?

    No. After resetting, the router returns to factory settings, and the password is reset to the default value (indicated on the sticker). If the sticker has worn off, try:

    • 🔍 Search for your router model online—default passwords are often posted on forums;
    • 📞 Contact your internet service provider (if they provided the router).
    Why doesn't my Android show my Wi-Fi password even with root?

    Possible reasons:

    • 📱 Device with FBE encryption (File-Based Encryption, used on Android 10+);
    • 🛡️ The manufacturer has blocked access to wpa_supplicant.conf (relevant for Samsung, Huawei);
    • 🔄 The password is stored in the cloud (for example, on Pixel with synchronization Google).

    Solution: Try viewing the password through ADB (if USB debugging is enabled) or use a router.