Forgot your home Wi-Fi password, but your computer is connected to the network? This situation is familiar to many: a professional set up your router, a neighbor shared your access, or you simply haven't manually entered the password in a while. Luckily, Wi-Fi password is stored in the Windows system and can be retrieved without resetting the router.
This article covers all the proven methods for viewing your network security key on a PC. From standard tools Windows 10/11 to specialized utilities. The methods work regardless of the router model (TP-Link, ASUS, Keenetic etc.) and do not require administrator rights (with one exception).
⚠️ Important: You can only extract the password for the network to which the computer is connected. already connectedIf the connection is broken or the network is hidden, alternative solutions will be required (see the section on third-party programs).
Why does a computer "know" the Wi-Fi password?
When you first connect your PC to Wi-Fi, the system saves network security key (password) in a special storage. This is done to ensure automatic connection in the future—you won't have to enter the combination every time you turn on the device.
The data is stored in two places:
- 📁 Windows Registry — encrypted entries in the branch
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WlanSvc. - 🗄️ Configuration files — in the folder
C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces(available only to administrator).
Standard OS tools allow you to extract a password in a readable form, but you need to know where to look. Below are all the current methods, from simple to complex.
Method 1: View your password through Windows Settings
The easiest method is to use the built-in network management menu. Suitable for Windows 10/11 and does not require installation of additional software.
Instructions:
- Open
Start → Settings (⚙️) → Network & Internet. - Go to the tab
Wi-Fiand pressManaging known networks. - Find your network in the list and click on its name.
- Click
Properties, then scroll down to the blockSecurity parameters. - Check the box
Show entered characters— the password will become visible in the fieldNetwork security key.
⚠️ Attention: If the button Properties is inactive or the password field is empty, then:
- 🔌 The computer is connected to the network via cable, not Wi-Fi.
- 🔒 You do not have administrator rights (UAC confirmation required).
- 📡 The network is configured via WPS or Enterprise authentication (the password is not saved in the standard way).
☑️ Check your password before viewing it
Method 2: Command Line - A Universal Method
If the graphical interface does not show the password, this will help command line (CMD). This method works even on older versions of Windows (7/8) and does not depend on user rights (if you are already connected to the network).
Follow these steps:
- Launch
Command lineas administrator (clickWin + Xand select the appropriate item). - Enter the command to view all saved networks:
netsh wlan show profilesIn the list, find the name of your network (for example,
MyWiFi_5G). - Display network information by replacing
[NETWORK_NAME]to the current:netsh wlan show profile name="[NETWORK_NAME]" key=clear - Find the line in the results
Key content- this is the password.
Critical detail: If a blank field or message is displayed instead of a password The key is missing, this means the network was configured without a password (open access) or through WPS.
| Command parameter | Description |
|---|---|
key=clear |
Displays the password in clear text (without it, the key will be hidden by asterisks). |
name="..." |
Network name in quotation marks (case important!). |
show profiles |
Shows all saved Wi-Fi networks. |
Method 3: PowerShell - CMD Alternative
PowerShell — a more powerful tool than the command line. It allows you to extract a password with a single command, without intermediate steps.
Instructions:
- Launch PowerShell as administrator (
Win + X → Windows PowerShell (Admin)). - Enter the command (replace
[NETWORK_NAME]):(netsh wlan show profile name="[NETWORK_NAME]" key=clear) | Select-String "Key Contents"
The result will look like this:
Key content: 1234567890abcdef
⚠️ Attention: In some Windows localizations (for example, English) instead of Key content will Key ContentCopy the exact phrase from the command output. netsh wlan show profile.
How to save a password to a file?
Add to the end of the command > wifi_password.txt. The file will appear in the user's folder (for example, C:\Users\UserName\wifi_password.txt).
Method 4: Viewing through the Network and Sharing Center
This method works in Windows 7/8/10 and is suitable if you prefer a graphical interface. Here, the password is hidden by default, but it can be revealed.
Step-by-step instructions:
- Right-click on the Wi-Fi icon in the tray (bottom right) and select
Open Network and Internet settings. - Scroll down and click
Network and Sharing Center. - Click on the name of your network (next to
Connections). - In the window that opens, click
Wireless network properties→ tabSecurity. - Check the box
Show entered characters— the password will appear in the fieldNetwork security key.
🔹 Nuance: IN Windows 11 The path to the Network and Sharing Center has changed. To open it, use the command in the menu. Execute (Win + R):
control.exe /name Microsoft.NetworkAndSharingCenter
Method 5: Third-party password extraction programs
If standard methods don't work, specialized utilities can help. They're handy when you need to:
- 🔍 View passwords from everyone saved networks at once.
- 📤 Export data to a file (for example, for backup).
- 🔧 Recover keys after resetting Windows.
Top 3 proven programs:
| Program | Peculiarities | Link (official) |
|---|---|---|
| WirelessKeyView (NirSoft) | Portable, no installation required. Shows passwords in cleartext. | nirsoft.net |
| WiFi Password Revealer | Simple interface, export to .txt. |
magicaljellybean.com |
| NetPass | Supports Windows 11, shows the connection history. | nirsoft.net |
⚠️ Attention: Download programs only from official websites! Many "Wi-Fi hackers" listed in search engines contain viruses.
🔹 How to use WirelessKeyView:
- Download and unzip the archive (the program does not require installation).
- Run the file
WirelessKeyView.exeon behalf of the administrator. - Find your network in the table - the password will be in the column
Key (Ascii).
Method 6: Extracting Password from Configuration Files (Advanced)
This method is suitable if you understand the Windows structure and are comfortable working with system files. Passwords are stored encrypted in XML files, but they can be decoded.
Instructions:
- Open the folder:
C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces(hidden folder - enable display of hidden files in
Conductor). - Find the file with the name of your network (format
{GUID}.xml). - Open it in Notepad and find the line:
<keyMaterial>...</keyMaterial>The password is encrypted between these tags.
- To decode use PowerShell:
$encoded = "ENCRYPTED_TEXT_FROM_XML"[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($encoded))
⚠️ Attention: Editing files in ProgramData may disrupt network operation. Do not modify or delete files — just take a look!
What to do if none of the methods worked
If you still cannot extract the password, check:
- 🔌 Is the computer connected to the network? via Wi-Fi, and not via cable.
- 🔒 Does your account have administrator rights?
- 📡 Have your router settings been reset? If so, the password will return to the factory default, as indicated on the sticker.
- 🛠️ Are your network adapter drivers updated (via device Manager).
If the problem is not resolved:
- 🔄 Reset the password on your router (button
Resetfor 10 seconds). The new key will be indicated on the device sticker. - 📞 Contact your provider - some operators (eg. Rostelecom, Beeline) link the password to your personal account.
FAQ: Frequently Asked Questions
Is it possible to find out the password for a Wi-Fi network to which the computer is not connected?
No, this is not possible using standard Windows tools. You will need specialized hacking programs (for example, Aircrack-ng), but their use illegally without the permission of the network owner.
Why is there an empty field instead of a password in the command line?
This means that the network was configured without a password (open access) or through WPS. The field may also be empty if the connection was established via Enterprise authentication (for example, in offices).
How to view password on MacOS?
On Mac open Programs → Utilities → KeychainFind your network, double-click it and check the box. Show password (you will need to enter your account password).
Is it possible to extract password from Android phone?
Yes, but only if the device has root rightsWithout them, passwords are stored in encrypted form. Use applications like WiFi Password Viewer (requires root).
How to protect your Wi-Fi from hacking?
Use WPA3 (or WPA2-AES), turn it off WPS, set a complex password (at least 12 characters with numbers and special characters) and regularly update the router firmware.