Forgot your home Wi-Fi password, and the sticker on your router has worn off or is missing? Don't rush to reset your router—the network security key can easily be found directly on your laptop if it's connected to the same access point at least once. In this article, we'll cover all the current methods for retrieving a saved password. Windows 10/11, macOS And Linux, including methods via the graphical interface, command line, and specialized utilities.
It is important to understand that the network security key (aka Wi-Fi password) is stored encrypted in the laptop's system files. Only users with administrator rights can access it. If you're using a work or school laptop with limited rights, some methods may not work. In this case, you'll need to contact your network administrator.
Before searching for the password, make sure your laptop is currently connected to the desired Wi-Fi network (or has connected previously). If the network isn't saved in the list of known connections, none of the methods described below will help—you'll have to find the password on the router itself or reset it.
1. How to find your Wi-Fi password using Network Settings in Windows
The easiest way is to use the built-in settings WindowsIt works on all versions of the system, starting from Windows 7, and does not require installation of additional software. The instructions are relevant for Windows 10 And Windows 11 with the latest updates.
Open the menu Start and go to Settings → Network and Internet → Wi-Fi. In the block Related parameters select Additional network settings. Next, click on the item Additional sharing options — all saved networks are displayed here.
Find the required network in the list, click on its name and select Wireless network propertiesIn the window that opens, go to the tab Security and put a check mark next to Show entered characters. The password will be displayed in the field. Network security key.
- 🔹 Works without administrator rights if you are already connected to the network.
- 🔹 Compatible with all versions of Windows, including Windows 7/8.1.
- 🔹 Does not require installation of third-party programs.
- ⚠️ Will not show the password if the network is not saved in the system.
The laptop is connected to the desired Wi-Fi network|
You have administrator rights (if required)|
Network name known (if multiple networks are saved)|
VPN or proxy are disabled (may interfere with displaying networks)-->
2. Finding the security key via the command line (CMD)
If the graphical interface is unavailable for some reason (for example, due to a crash Windows), the password can be extracted using the command line. This method is universal and works even on damaged systems where Settings won't open.
Open Command Prompt as Administrator: Press Win + X and select Terminal (Administrator) or Command Prompt (Administrator)Enter the following command to see a list of all saved networks:
netsh wlan show profiles
Find the name of the desired network in the list (for example, TP-Link_1234) and run the command to display the password:
netsh wlan show profile name="TP-Link_1234" key=clear
In the execution results, look for the line Key content — this is your password. If you see asterisks or a blank field instead of a password, the network is saved without a key (for example, it's an open access point) or you don't have sufficient permissions.
⚠️ Attention: Teams netsh Only work for networks the laptop has connected to before. If the network isn't saved in the profiles, this method is useless. Also, some antivirus programs (for example, Kaspersky) may block the execution of commands - temporarily disable protection.
| Team | Description | Output example |
|---|---|---|
netsh wlan show profiles |
Shows all saved Wi-Fi networks | User profiles |
netsh wlan show profile name="NETWORK_NAME" key=clear |
Shows network details including password | Security parameters |
netsh wlan export profile name="NETWORK_NAME" folder="C:\" |
Exports network settings to a file .xml |
File Wi-Fi-TP-Link_1234.xml saved in the root of the disk C:\ |
3. Using PowerShell to extract the password
PowerShell — a more powerful tool than the classic command line. It not only lets you find the password but also export all saved networks in a convenient format. This method is useful if you need to transfer Wi-Fi settings to another computer.
Open PowerShell as administrator (click Win + X → Windows Terminal (Administrator)). Run the following command to list all networks:
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key contents\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{PROFILE_NAME=$name;PASSWORD=$pass}} | Format-Table -AutoSize
This command will automatically extract network names And their passwords, displaying them in a table. If you want to save the results to a file, add the following to the end of the command:
| Out-File -FilePath "C:\WiFi_Passwords.txt" -Encoding UTF8
File WiFi_Passwords.txt will appear on the disk C:\ with all saved data. This method is convenient for backing up passwords before reinstalling Windows.
4. Finding the Security Key on macOS (MacBook)
On laptops Apple Wi-Fi passwords are stored in the system storage Keychain Access (Keychain). To see them, open the app. Spotlight (click Cmd + Space) and enter Bunch of keysIn the window that opens:
- In the left column, select
System. - In the search field, enter the name of your Wi-Fi network.
- Double-click on the found entry.
- Check the box
Show password. - Enter your account password macOS, when the system asks for confirmation.
The password will be displayed in the field. Show passwordIf the entry is not found, the network is not saved in the keychain. Try connecting to it again.
An alternative way is to use TerminalOpen it through Spotlight and run the command:
security find-generic-password -wa "NETWORK_NAME"
Replace NETWORK_NAME The name of your Wi-Fi network. The system will ask for an administrator password and then display the security key.
⚠️ Attention: On macOS Wi-Fi passwords are tied to the user account. If you use a guest account or an account with limited rights, access to the keychain will be blocked. Also, some corporate networks (e.g., 802.1X) may not save passwords in the link.
5. Extracting Password on Linux (Ubuntu, Mint, Fedora)
In distributions Linux Wi-Fi passwords are stored in configuration files NetworkManager or wpa_supplicant, depending on the network management system used. Let's consider both options.
Method 1: Via NetworkManager (Ubuntu, Mint, Debian)
Open Terminal (Ctrl + Alt + T) and run the command:
sudo grep psk= /etc/NetworkManager/system-connections/*
The system will prompt for an administrator password, after which it will display a list of networks and their encrypted passwords. To decrypt the password, use the command:
sudo cat /etc/NetworkManager/system-connections/NETWORKNAME.nmconnection | grep psk=
The password will be specified after psk= in the open.
Method 2: Via wpa_supplicant (Arch, Fedora, openSUSE)
Run in terminal:
sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
Look for blocks like:
network={ssid="NETWORK_NAME"
psk="PASSWORD"
}
If the file is empty or missing, then the network is controlled via NetworkManager - use the first method.
What to do if the configuration file is missing?
On some distributions (for example, Fedora With GNOME) Network configurations can be stored in binary format. In this case, use the command:
nmcli -s -g 802-11-wireless-security.psk connection show NETWORK_NAME
If that doesn't work, try connecting to the network again—sometimes passwords aren't saved the first time you connect.
6. Third-party programs for viewing Wi-Fi passwords
If system methods don't work or seem too complicated, you can use specialized utilities. They not only reveal passwords but also allow you to manage saved networks, export them, or transfer them to other devices.
The most popular programs:
- 🔐 WirelessKeyView (from NirSoft) is a free utility for Windows, displays all saved Wi-Fi passwords in one window. No installation required, works with Windows XP to Windows 11.
- 🔐 WiFi Password Revealer — a simple program with the ability to copy passwords to the clipboard. Supports export to
.txt. - 🔐 Magical Jelly Bean WiFi Password Revealer - displays passwords in a user-friendly interface, works on Windows 7-11.
- 🔐 Kismac (For macOS) is a powerful tool for analyzing Wi-Fi networks, including a password extraction function.
When using third-party programs, pay attention to their reputation. Download software only from the developers' official websites (for example, nirsoft.net For WirelessKeyView). Avoid programs with suspicious permissions or that require disabling your antivirus.
⚠️ Attention: Some antiviruses (for example, Avast or ESET) may block password extraction tools, considering them potentially dangerous. This is a false positive—add the program to your antivirus exclusions before using it.
7. What should I do if my password is not displayed?
Sometimes, even after following all the instructions, the password cannot be retrieved. Let's look at the main causes and how to fix them:
| Problem | Possible cause | Solution |
|---|---|---|
| The password field is empty or filled with asterisks. | Network saved without password (open access point) | Check your router settings - the network may actually be unsecured. |
| "Access Denied" error when running commands | Insufficient rights (administrator rights required) | Run command prompt or PowerShell as administrator |
| The network is not displayed in the list of saved networks. | The laptop has never connected to this network. | Connect to the network at least once to save your password. |
Teams netsh don't work |
Damage to system files or antivirus blocking execution | Check the integrity of system files (sfc /scannow) or temporarily disable your antivirus |
If none of the methods worked, there are two options left:
- Reset your router settings - To do this, press and hold the button
Reseton the back of the router for 10-15 seconds. After the reset, the network name and password will return to the factory defaults (indicated on the router sticker). - Contact your provider If the router is rented from an Internet provider, they may provide access to your personal account or provide the password over the phone.
⚠️ Attention: Resetting the router will return all settings to factory defaults, including the network name (SSID), password, settingsPPPoE(if used) and linked devices. After the reset, you will need to reconfigure your internet connection.
FAQ: Frequently Asked Questions About Wi-Fi Security Keys
Is it possible to find out the password for a Wi-Fi network that the laptop has never connected to?
No, this is not possible. Passwords are only stored for networks to which the device has connected at least once. If the network is not stored in the system, the only way is to obtain the password from the router or the network administrator.
Is it safe to use third-party password extraction programs?
Yes, if you download them from the official websites of the developers (for example, NirSoft or Magical Jelly Bean). These programs don't steal data, but simply read information already stored in the system. However, avoid little-known utilities from suspicious sources.
Why are asterisks showing up in the command line instead of a password?
This means the network is saved without a password (an open access point) or the password is hidden due to security policy (for example, on corporate networks). Asterisks may also appear if you do not have sufficient rights to view the network.
Is it possible to find out the Wi-Fi password from a phone if the laptop is not at hand?
Yes, on Android (with root rights) or iPhone (with jailbreak) there are similar methods. On Android Without root rights, the password can only be viewed through configuration files (for example, /data/misc/wifi/WifiConfigStore.xml), but this requires special knowledge. iPhone It is impossible to extract the password without jailbreak.
What is a network security key and how is it different from a password?
Network Security Key (Network Security KeyA Wi-Fi password is the technical term for a Wi-Fi password. It's used to encrypt traffic between a device and a router. In most cases, they're the same thing, but in corporate networks, the key may be a certificate or a complex, automatically generated character string.