Forgot your home Wi-Fi password or has the sticker on your router worn off? Don't rush to reset your router or call your ISP. Your Wi-Fi password is stored directly on your computer. — you just need to know where to look. In this article, we'll cover all the working methods for password extraction: from standard tools Windows And macOS to hidden commands and programs for advanced users.
If you've ever connected to this network from your current PC or laptop, the system stores the security key in encrypted form. Simply retrieve it, and you'll be able to connect new devices again. But what if it's not your computer? There are solutions for that, too, but they require administrative privileges or special utilities. Let's take a look at each step.
⚠️ Important: Extracting passwords from someone else's computer without the owner's permission may violate data privacy laws. Use these methods only to restore access to your own networks.
1. The standard method for Windows: "Network Settings"
The easiest method is to use the graphical interface Windows 10/11It doesn't require any knowledge of commands or software installation, but it's only suitable if you're currently connected to the network you're looking for (or have connected before).
Open Windows Settings (keys Win + I) and go to the section Network and Internet → Wi-FiHere you will see a list of available networks. Click on Managing known networks — a list of all saved connections will open.
Select the desired network and click PropertiesIn the window that opens, scroll down to the block Security parameters.Near the field Network security key There will be a hidden password - check the box Show entered characters, and you will see the combination.
Open Settings (Win + I) | Go to Network & Internet → Wi-Fi | Select Manage known networks | Find the desired network and click Properties | Check the box next to Show characters as you type
-->
⚠️ Attention: If the button Properties If the network is inactive or not listed, it means the computer has never connected to it. In this case, try the other methods in this article.
2. Command Prompt: A Universal Method for All Windows Versions
If the graphical interface did not help or you prefer to work through the console, use command lineThis method works even on older versions. Windows 7/8 and does not require administrator rights to view own networks.
Open Command line (Win + R → enter cmd → Enter) and run the command:
netsh wlan show profiles
You'll see a list of all saved networks. Remember the exact name of the one you want (case is important!) and enter:
netsh wlan show profile name="NETWORK_NAME" key=clear
In the execution results, find the line Key content - this is your password.
💡 Advice: If the network name contains spaces, enclose it in quotation marks: name="My Wi-Fi"To copy the result from the command line, right-click on the window and select Select all, then press Enter for copying.
What should I do if the command line says "Access denied"?
This means your account doesn't have administrative privileges. Try running the command prompt as administrator (right-click → "Run as administrator") or use the PowerShell method in the next section.
3. PowerShell: An Alternative for Advanced Users
PowerShell — a more powerful tool than the standard command line. It not only lets you view the password, but also export all saved networks to a file. Open PowerShell as administrator (Win + X → Windows PowerShell (Administrator)) and run:
(Get-NetConnectionProfile | Where-Object { $_.NetworkCategory -Like "Private" } | Select-Object -ExpandProperty Name) | ForEach-Object { (netsh wlan show profile name="$_" key=clear) -Match 'Key contents' }
This command will automatically scan all private networks (home/work) and output their passwords. If you want to save the results to a text file, add the following to the end:
| Out-File -FilePath "C:\wifi_passwords.txt"
File wifi_passwords.txt will appear on the disk C: - open it with any text editor.
4. Where is the Wi-Fi password stored on Mac (macOS)?
On computers Apple Network passwords are stored in the system storage Keychain Access (Keychain). To find them:
- Open
Spotlight(Cmd + Space) and enterBunch of keys. - In the left menu, select
System→Passwords. - In the search bar, enter the name of your Wi-Fi network.
- Double-click on the found result and check the box
Show password. - Enter your account password Mac, if necessary.
⚠️ Attention: On new versions macOS (Sonoma and newer) may require confirmation via Touch ID or Apple Watch, if they are linked to the device.
If you use Terminal, you can extract the password using the command:
security find-generic-password -wa "NETWORK_NAME"
Replace NETWORK_NAME to your Wi-Fi network's real name. The system will ask for your account password—enter it, and the security key will be displayed in the terminal.
5. Third-party programs: when standard methods don’t work
If none of the above methods work (for example, you're not an administrator on the computer or the password is stored in a non-standard location), specialized utilities can help. They can extract passwords even from damaged network profiles or system backups.
Here are the proven programs:
- 🔹 WirelessKeyView (from NirSoft) is a portable utility that doesn't require installation. It displays all saved Wi-Fi passwords in a table format with the ability to export to
.txtor.html. - 🔹 WiFi Password Revealer — a simple program with a Russian-language interface. Supports Windows 7-11 and can restore keys from backups.
- 🔹 Magical Jelly Bean WiFi Password Revealer — in addition to passwords, it shows additional information about the network (encryption type, router MAC address).
⚠️ Attention: Download programs only from the official websites of the developers (NirSoft, Magical Jelly Bean). Password extraction utilities are often counterfeited by attackers by adding viruses to them.
All of the programs listed require administrator rights. Without them, they won't be able to read the system files where passwords are stored.
6. If the computer did not connect to the network: alternative options
What if none of these methods worked? Perhaps the computer has never connected to the network you're trying to connect to, or the password was entered manually and not saved. In this case, try:
- 📱 View on another deviceIf you have a smartphone or tablet that has connected to this Wi-Fi, retrieve the password through the settings Android/iOS (instructions are on our website).
- 🖧 Check your router: On most routers, the password is located on a sticker on the bottom. If it's missing, or the data has been erased, log in to the router's web interface (
192.168.0.1or192.168.1.1) and look at the key in the sectionWirelessorWi-Fi. - 📞 Contact your provider: If the network was configured by an Internet service provider, the default password may be specified in the contract or personal account. Some operators (for example, Rostelecom or Beeline) allow you to reset the security key via SMS.
💡 Helpful tip: If you often forget passwords, create a text file WiFi_passwords.txt and store it in an encrypted archive (for example, .zip (with a password). This way, you can always quickly find the right combination without having to fiddle with the settings.
| Method | Admin rights required | Works without a network connection | Suitable for macOS |
|---|---|---|---|
| Windows Settings | ❌ No | ❌ No | ❌ No |
| Command line | ❌ No (for your own networks) | ✅ Yes | ❌ No |
| PowerShell | ✅ Yes | ✅ Yes | ❌ No |
| Keychain Access (macOS) | ❌ No | ✅ Yes | ✅ Yes |
| Third-party programs | ✅ Yes | ✅ Yes | ❌ No (there are similar apps for Mac) |
FAQ: Frequently asked questions about Wi-Fi passwords on your computer
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 profiles Windows. Use the command line (netsh wlan show profiles) or program WirelessKeyView - They will show all the networks that this PC has ever connected to, even if they are currently out of range.
On macOS passwords are stored in Keychain Access Regardless of the connection date, the main thing is that the network wasn't deleted manually.
What to do if when entering a command netsh It says "No profiles found"?
This means that:
- The computer has never connected to this network.
- The network profile was deleted (for example, after resetting Windows).
- You entered the network name with an error (check your capitalization!).
Try viewing the full list of saved networks with the command netsh wlan show profiles and make sure the network you want is on the list.
Is it possible to find out someone else's Wi-Fi password using a computer?
Technically yes, but:
- This violates the data privacy law (Article 272 of the Criminal Code of the Russian Federation - "Unauthorized access to computer information").
- To extract passwords from someone else's PC, you need administrator rights, which are impossible to obtain without the owner's permission.
- Modern networks with encryption
WPA3are virtually impossible to hack without physical access to the router.
The legal alternative is to ask the network owner for the password or connect via WPS (if the function is enabled on the router).
Why is there no password field in Network Properties?
This is a typical problem for:
- Guest accounts Windows (without administrative rights).
- Networks connected via VPN or corporate proxies.
- Profiles created manually (for example, through
netshwithout saving the password).
Solution: Use PowerShell or third-party utilities with administrator rights.
How to protect your Wi-Fi passwords from being extracted?
If you're worried someone might extract your passwords from your computer:
- Use disk encryption (For example, BitLocker V Windows Pro or FileVault on Mac).
- Remove unnecessary networks from the list of saved ones (
Managing known networksV Windows). - Set up guest account without administrator rights for temporary users.
- Change your Wi-Fi password regularly (you can do this in your router settings).