Why might you need the password for your current Wi-Fi network?
Have you ever found yourself in a situation where you need to connect a new gadget to your home Wi-Fi, but you've long forgotten the password and the sticker with the router's data is missing? Or has a friend asked you to temporarily connect to your network, but you can't remember the password? This is a classic problem faced by every second user.
Luckily, if your computer is already connected to this network, the password can be easily retrieved from the system settings. Windows stores all saved Wi-Fi passwords encrypted, but provides legal ways to view them—both through a graphical interface and the command line. In this article, we'll cover all the current methods, including little-known tricks for complex cases.
Important: These instructions only work for networks that the computer is connected to. already connectedIf you've never entered a password on this PC, you won't be able to retrieve it—you'll have to reset the router or contact your ISP.
Method 1: View your password through Windows Settings (the easiest way)
This is a basic method that works in Windows 10 And Windows 11 No additional software required. Suitable for most users, as long as you have administrator rights.
Instructions:
- Open
Windows Settings(keyboard shortcutWin + I). - Go to the section
Network and Internet → Wi-Fi. - Click
Managing known networks. - Select the desired network and click
Properties. - Scroll down to the block
Security parametersand check the boxShow entered characters.
After this, the password will be displayed in the field Network security keyIf the button is inactive or the field is empty, your account does not have administrator rights.
Method 2: Command Prompt - a universal method for all versions of Windows
This method works even in older versions of the system (for example, Windows 7/8) and doesn't require a graphical interface. Suitable for remote access or if Settings won't open.
Follow these steps:
- Launch
Command lineas administrator (find via search, right-click →Run as administrator). - Enter the command to view all saved networks:
netsh wlan show profiles - Find the name of the desired network in the list (for example,
MyWiFi_5G) and copy it. - Enter the command to extract the password (replace
NETWORK_NAMEto your own):netsh wlan show profile name="NETWORK_NAME" key=clear
In the block Security parameters find the line Key content — this is your password. If the command returns an error The operation failed., check your administrator rights or the correctness of the network name.
What to do if the command doesn't work?
If netsh gives an error, try an alternative command via PowerShell:
(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]@{PSTypeName="WiFiPassword"; Network=$name; Password=$pass}}
This command will output a table with all networks and their passwords.
Method 3: Using PowerShell to Bulk Export Passwords
If you need to save passwords from all saved networks (for example, for backup), it is more convenient to use PowerShellThis method is suitable for IT professionals or if you frequently reinstall Windows.
Open PowerShell as administrator and run the script:
$output = @()$profiles = netsh wlan show profiles | Select-String "All user profiles\W+:\s+(.+)"
foreach ($profile in $profiles) {
$network = $profile.Matches.Groups[1].Value.Trim()
$password = (netsh wlan show profile name="$network" key=clear | Select-String "Key contents\W+\:(.+)" | % {$_.Matches.Groups[1].Value.Trim()})
$output += [PSCustomObject]@{
Network = $network
Password = $password
}
}
$output | Format-Table -AutoSize
$output | Export-Csv -Path "WiFi_Passwords.csv" -NoTypeInformation -Encoding UTF8
The script will output a table with all networks and passwords, and also save it to a file. WiFi_Passwords.csv on the desktop. Be careful with this file - it contains confidential data!
Method 4: View the password through the Network and Sharing Center (Windows 7/8/10)
This method works in all versions of Windows, but in Windows 11 It's been replaced with "Settings." This works well if you're used to the classic interface.
Step-by-step instructions:
- Right-click on the Wi-Fi icon in the tray (bottom right corner of the screen) and select
Open Network and Internet settings. - 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 be displayed in the field. Network security key. If the tab Security absent - means the network does not require a password (open access point).
Make sure your computer is connected to the right network|Check your administrator rights|Close your VPN (may block network commands)|Disable your antivirus (sometimes it interferes) netsh)
-->
Method 5: Third-party programs for viewing Wi-Fi passwords
If system methods fail, you can use specialized utilities. They are convenient because they display passwords in a convenient format and often offer additional features (such as exporting to a file).
Top 3 proven programs:
- 🔹 WirelessKeyView (from NirSoft) is a portable utility that doesn't require installation. It displays all saved passwords in a table with the ability to copy them.
- 🔹 WiFi Password Revealer — a simple program with a Russian-language interface. Supports export to
.txt. - 🔹 Magical Jelly Bean WiFi Password Revealer — displays passwords as a list with the ability to filter by network name.
⚠️ Attention: Download programs only from official websites (NirSoft, MajorGeeks). Many "cracked" versions of utilities contain viruses disguised as legitimate software.
| Program | Windows 11 support | Portable version | Export passwords |
|---|---|---|---|
| WirelessKeyView | ✅ Yes | ✅ Yes | ✅ TXT/HTML/XML |
| WiFi Password Revealer | ✅ Yes | ❌ No | ✅ TXT |
| Magical Jelly Bean | ✅ Yes | ✅ Yes | ❌ No |
Method 6: Extracting Password from Windows Configuration Files (for Advanced Users)
This method is suitable if standard methods fail and third-party programs refuse to install. Wi-Fi passwords are stored encrypted in system files, but they can be decrypted.
Instructions:
- Open Explorer and go to this path:
C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces\{GUID}(Where
{GUID}— unique identifier of the network adapter). - Find the file with the extension
.xml, whose name matches the name of your network. - Open the file in Notepad and find the tag
<keyMaterial>- there will be an encrypted password inside it. - Copy the string between the tags and decrypt it using the command:
powershell -command "$key = 'ENCIPTED_TEXT'; [System.Text.Encoding]::Unicode.GetString([System.Convert]::FromBase64String($key))"
⚠️ Attention: Editing files in ProgramData may disrupt network services. Do not modify or delete files in this folder!
What to do if none of the methods worked?
If you have tried all the methods but still cannot extract the password, the reasons may be as follows:
- 🔌 The computer is connected to the network via a cable, not Wi-Fi (check in
ipconfig /all- if in the sectionWireless LAN adapterThere is no IP address, which means Wi-Fi is not active). - 🔒 Your account does not have administrator rights (try logging in with a different account or temporarily elevating your rights).
- 🛡️ Your antivirus or firewall is blocking access to network settings (disable protection while checking).
- 🖥️ The network is configured via WPS or Enterprise authentication (in this case the password is not saved locally).
If the problem is not solved, radical measures remain:
- Reset the router to factory settings (button
Reseton the back panel). - Call your ISP—many operators store passwords for distributed routers in your personal account.
- Connect to the router via cable and look for the password in its web interface (usually at
192.168.0.1or192.168.1.1).
FAQ: Frequently asked questions about viewing Wi-Fi passwords
Is it possible to find out the password for the Wi-Fi network my computer connected to a year ago?
Yes, if the network is saved in Windows profiles. Use the command netsh wlan show profiles — it will show all the networks this PC has ever connected to. Then extract the password for the desired network as described in Method 2.
Why is the password field blank in Windows Settings?
This happens in three cases:
- Your account does not have administrator rights.
- The network does not require a password (open access point).
- The password was entered through WPS or an external authentication server (for example, in hotels or cafes).
Is it possible to find out the Wi-Fi password on MacOS?
Yes, but the procedure is different. Open Terminal and enter:
security find-generic-password -wa "NETWORK_NAME"
Replace NETWORK_NAME Enter the name of your network. The system will ask for the administrator password.
Is it safe to use programs like WirelessKeyView?
Yes, if you download them from the official website NirSoftThese utilities don't send data to the internet—they simply read information from system files. However:
- Don't use "cracked" versions - they often contain viruses.
- Do not share exported password files with third parties.
How can you protect your Wi-Fi from this type of hack?
To prevent third parties from extracting passwords from connected devices:
- Use WPA3 instead of WPA2 (configured in the router).
- Turn it off WPS - This protocol is vulnerable to hacking.
- Change your password regularly (every 3-6 months).
- Set up
MAC filteringin the router (allow connection only to trusted devices).