Introduction: Why a Computer Might "Know" Your Wi-Fi Password
Have you ever encountered a situation where you need to connect a new gadget to your home network, but the password for it Wi-Fi router Long forgotten? Or friends are visiting and asking for internet access, but the sticker with the factory data on the router has worn off? Luckily, if your computer or laptop is already connected to this network, you can retrieve the saved password in just a few minutes—without resetting the router or losing settings.
The thing is that operating systems Windows And macOS Automatically stores the security keys of all connected networks in encrypted form. This data is stored in system files and can be retrieved through both the graphical interface and the command line. The main thing is to proceed carefully to avoid disrupting the network or putting it at risk of being hacked.
In this article we will look at 5 proven methodsHow to find a computer's Wi-Fi password: from standard OS tools to specialized utilities. We'll also explain why some methods might not work and how to avoid them.
Method 1: View the password through the Network and Sharing Center (Windows)
The easiest method for users Windows 10 And Windows 11 — Use the built-in network management interface. It doesn't require administrator rights (if you're already connected to the network) and works even on older OS versions.
Instructions:
- Right click on the icon Wi-Fi in the lower right corner of the taskbar and select
Open Network & Internet Settings. - In the window that opens, go to the section
Wi-Fi → Manage known networks. - Find your network in the list and click on it, then select
Properties. - Scroll down to the block
Security parametersand put a check mark next toShow entered characters.
Under the field Network security key The current password will be displayed. If the button is inactive or the field is empty, then the network is connected via WPS or another authentication method - try alternative methods.
Check if you are currently connected to the network
Make sure you have administrator rights
Restart your computer and try again.
Try another method (see below)
-->
⚠️ Attention: If you are using a corporate network with 802.1X (for example, in an office or university), this method won't work. Passwords for such networks are stored on domain controllers and are not visible on client devices.
Method 2: Command Prompt - A Universal Method for Windows
If the graphical interface did not show the password or you prefer to work through the console, use command lineThis method works on all versions. Windows from 7 to 11 and does not require installation of additional software.
Open Command line as administrator (click Win + X and select the appropriate item) and enter in sequence:
netsh wlan show profiles
This command will list all saved networks. Find the name of your network (for example, TP-Link_1234) and copy it.
netsh wlan show profile name="TP-Link_1234" key=clear
In the execution results, find the line Key content — this is your password. If you see asterisks or a blank field instead of a password, it means:
- 🔄 Network connected via WPS or PBC (button on the router).
- 🔐 The password is stored in encrypted form (rarely found in home networks).
- 🚫 Your account does not have viewing rights (e.g. guest account).
Method 3: Using PowerShell for Advanced Users
PowerShell — a more powerful tool than the classic command line. It allows you to extract passwords for all saved networks at once, which is convenient if you frequently connect to different access points.
Launch PowerShell as administrator and run the command:
(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
In a few seconds you will get a table with all network names (PROFILE_NAME) and their passwords (PASSWORD). This method is especially useful for:
- 📊 Administrators managing multiple networks.
- 🔍 Diagnosing connection problems (for example, if a password suddenly stops working).
- 📱 Transfer settings to new devices.
⚠️ Warning: Do not save the output of this command to a text file on your desktop or in cloud storage. Cleartext passwords can be stolen by viruses or hackers if your computer is infected.
Method 4: View Password on Mac (macOS)
For users MacBook or iMac you won't have to use the terminal - in macOS There's a convenient graphical interface for managing saved passwords. All data is stored in the app. "Bunch of keys" (Keychain Access).
Instructions:
- Open
Spotlight(clickCmd + Space) and enterBunch of keys. - In the left column, select
System, then in the right part of the window, find your Wi-Fi network (the name will start withairport:). - Double-click on the entry and check the box.
Show passwordand enter the password for your account Mac.
If the network is not listed, check:
- 🔌 Are you currently connected to it (sometimes macOS deletes old entries).
- 🔄 Has it been used? iCloud Keychain for synchronization (the password may have been transferred to another device).
- 🛠️ Have the network settings been reset through
System Preferences → Network.
What should I do if Keychain Access won't open?
If the application does not start or gives an error, try resetting the keychain via Terminal:
1. Open Terminal (Programs → Utilities).
2. Enter the command: security default-keychain -s ~/Library/Keychains/login.keychain-db
3. Restart your Mac.
Method 5: Third-party password extraction programs
If standard methods fail, you can use specialized utilities. They are convenient because they display passwords in a convenient format, support file export, and often offer additional features (such as password strength checking).
Popular programs:
| Program | OS support | Peculiarities | Link (official) |
|---|---|---|---|
| WirelessKeyView | Windows (32/64-bit) | Shows all saved passwords, export to .txt/.html |
nirsoft.net |
| WiFi Password Revealer | Windows 7–11 | Simple interface, copying password to clipboard | magicaljellybean.com |
| Wifi Password | macOS | Integration with Keychain, shows SSID And BSSID | Mac App Store |
| NetSpot | Windows/macOS | Network Analysis + Password Extraction (Paid Version) | netspotapp.com |
Warnings when using third-party software:
- 🛡️ Download programs only from official websites — many "cracked" versions of utilities contain viruses.
- 🔍 Before installation, check the file on VirusTotal.
- 🚫 Do not use programs that require disabling your antivirus.
⚠️ Attention: Some antivirus programs (for example, Kaspersky or ESET) can block WirelessKeyView as "potentially unwanted software." This is a false positive—the utility simply reads system files but doesn't send any data over the network. Add it to your antivirus exceptions.
Via the Network and Sharing Center (Windows)
Command Prompt/PowerShell
Keychain Access (Mac)
Third-party programs
Another option
-->
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 network is connected via WPS or PBC — in this case, the password is not saved on the device, since authentication occurs by pressing a button on the router.
- Enterprise authentication is used (For example, 802.1X with login/password) - such networks are managed by a server, and the password is stored only there.
- The password has been reset on the router. - If someone changed it through the router's web interface, old devices may remain connected, but the new password will not be displayed in the system.
- Access rights issues - If you are using a guest account or a limited account, some methods may be blocked.
Solutions:
- 🔧 Reset your router to factory settings (button
Reseton the back panel) and set up the network again. This will remove all custom settings including network name, password, and MAC address bindings. - 📞 Contact your provider - some operators (eg. Rostelecom or Beeline) can provide the factory password using the contract number.
- 🔍 Check the sticker on your router - it's often listed there
Wi-Fi PasswordorNetwork Key(if the settings have not been changed).
Security: How to protect your password after it's been extracted
After learning the Wi-Fi password, many users make mistakes that can lead to the network being hacked. Here's what you can't do it:
- 📤 Send the password in clear text via email, instant messengers, or social networks.
- 📋 Save it in a notepad on your desktop or in cloud services (for example, Google Docs).
- 🔑 Use simple passwords like
12345678orqwerty- they are easy to pick up.
Safety recommendations:
- 🔒 Change your password after extraction, if it is too simple. Use a combination of
12+ characterswith letters, numbers and special characters (for example,K7#pL9@mQ2$vR1!). - 📱 Set up guest network on your friends' router - this will isolate their devices from your local network.
- 🔄 Update your router firmware regularly—outdated versions are vulnerable to attacks.
- 🛡️ Turn on WPA3 instead of WPA2 (if your router supports it).
If you frequently share Wi-Fi access, consider alternative methods:
- 📲 QR code - many routers (for example, ASUS or Xiaomi) allow you to generate it for quick connection.
- 🔄 WPS - Press the button on the router, and the device will connect without entering a password (but this is less secure).
FAQ: Frequently Asked Questions About Wi-Fi Passwords
Is it possible to find out the password for a Wi-Fi connection I've connected to before but am not connected to now?
Yes, if the network is saved in the system. Windows use netsh wlan show profiles, V macOS — A bunch of keys. However, if the network was removed from the list (for example, through Forget this network), it will not be possible to recover the password.
Why are there asterisks or an empty field instead of a password in the command line?
This means that:
- The network is connected via WPS (password not used).
- You are using enterprise authentication (login/password are requested upon connection).
- Your account does not have viewing rights (e.g. guest account).
Try connecting to the router via cable and view the password in its web interface.
Is it possible to find out someone else's Wi-Fi password if my computer is connected to it?
Technically yes, but that's breaks the law (Article 272 of the Criminal Code of the Russian Federation - unauthorized access to computer information). In addition, many public networks (for example, in cafes) use portal authentication, where the password changes every few hours.
If you're talking about a neighbor's network, it's best to ask for the password directly—many routers allow you to limit the speed for "foreign" devices.
How do I change the password on my router after I know it?
Instructions:
- Connect to the router via cable or Wi-Fi.
- Open your browser and type
192.168.0.1or192.168.1.1(the address is indicated on the router sticker). - Enter login/password (usually
admin/adminoradmin/empty). - Go to the section
Wireless(orWi-Fi), find the fieldPassword/Keyand enter a new password. - Save the settings and reconnect all devices.
Why do old devices continue to work after changing the router password?
This happens if:
- You have changed your password in the settings. Windows/macOS, but not on the router.
- The router supports WPS, and devices are connected through it (without a password).
- The router has the function enabled
Wi-Fi Protected Setup (WPS)with PIN code.
To force disconnect all devices, change the network name (SSID) along with the password.