Many users are familiar with the situation of needing to find a saved Wi-Fi network password. This may be necessary when connecting a new device, a friend's smartphone, or after reinstalling the operating system. Fortunately, modern operating systems save security keys for automatic connections, and retrieving them is easy.
There are several proven methods that allow restore access To retrieve forgotten data, you can use the Windows or macOS graphical interface, use the command line for a deeper search, or access the router's settings. Each method has its own specific features, which we'll discuss in detail in this article.
It's important to understand that accessing this data usually requires administrator rights on the computer. This is done for security purposes. securityTo prevent malware from easily stealing your credentials, make sure you're logged in to an account with the appropriate privileges before starting the process.
⚠️ Attention: All methods described below are intended solely for recovering passwords for networks you've previously connected to or have legal access to. Using this knowledge to hack other people's networks is prohibited by law.
Viewing your password through network settings in Windows 10 and 11
The simplest and most obvious way to find your Wi-Fi password on your computer is through the operating system's default settings. If your computer is currently connected to the desired network or has connected to it in the past, Windows stores this key in encrypted form, but allows you to view it in plain text through the properties menu.
First, you need to open the Network Control Panel. The path may differ slightly in Windows 10 and 11, but the logic remains the same. Right-click the Wi-Fi icon in the system tray (near the clock) and select Network and Internet settings. Next, find the link to Network and Sharing Center or go to "Advanced network settings." Here you'll see a list of active connections.
Find the desired wireless connection and click on it. In the status window that opens, click the button Wireless network properties. Go to the tab SecurityRight here in the field Network security key, the required symbols are hidden. By default, they are replaced with periods, but you can simply check the box next to the item. Show entered charactersto see the real password.
This method works flawlessly on most Windows builds, but the interface may change depending on the update version. If you can't find the Properties button, try using the search bar in the Start menu and entering ncpa.cpl, which will immediately open a list of network connections.
Using the Command Prompt (CMD) to Extract Keys
For users who prefer a faster, more technical approach, the command line is the ideal solution. This method not only allows you to view the password for the current network but also find saved keys for all networks the computer has ever connected to. This is especially useful if the desired network is currently inactive.
To get started, run Command Prompt as administrator. Click Win + X and select Windows PowerShell (Admin) or Command Prompt (Administrator)The first command you enter will display a list of all saved profiles:
netsh wlan show profiles
Find the name of the desired network in the list. Then enter the command to display the details of a specific profile, adding the parameter key=clearThe syntax is as follows:
netsh wlan show profile name="Network_Name" key=clear
In the report that opens, look for the section Security settings (Security Settings). Line Key Content (The key content) will contain the password you're looking for in cleartext. If the password field is empty or an error message appears, you don't have administrator rights or your profile is corrupted.
☑️ Check before entering commands
Retrieving data via PowerShell
An alternative to the classic CMD is a more powerful tool PowerShellIt offers the same capabilities, but sometimes runs faster and produces more structured output. This method is suitable for those accustomed to working with modern Microsoft scripting languages.
Open PowerShell and enter the command to get all profiles:
netsh wlan show profile
Then use the same logic as in CMD to output the key. The advantage of PowerShell is that you can copy the command directly from the clipboard if you're using newer versions of the terminal. Make sure to enclose the network name in quotation marks if it contains spaces.
If standard commands don't work, you can try requesting information via WMI, although this is a more complex approach:
Get-WmiObject -Namespace root\WMI -Class MSPCIP_80211_WLANConnection
However, for simple viewing of the password the method netsh inside PowerShell remains the most efficient and reliableIt doesn't require any additional software and operates at the core network settings level.
What should I do if the command returns an "Access Denied" error?
The "Access Denied" error most often means you haven't launched the console as an administrator. Try right-clicking the CMD or PowerShell shortcut and selecting the appropriate option. Your antivirus may also be blocking access to system network settings—try temporarily disabling protection or adding an exception.
How to find out your password on macOS
Apple computer users may also need to remember a forgotten passcode. In macOS, this information is stored in the iCloud Keychain. Access to it is protected, but for an authorized user, the process is fairly simple.
Open the app Bunch of keys (Keychain Access). You can find it using Spotlight search (Cmd + Space) by typing the program's name. Select the category in the left panel. PasswordsFind the name of your Wi-Fi network in the list. Double-click it.
In the window that opens, check the box Show passwordThe system will ask you to enter your Mac account password (or use Touch ID) to verify your identity. Once successfully authenticated, your text password will appear in the field.
On newer versions of macOS (Ventura, Sonoma), the process has become even simpler. Go to System Preferences → Wi-FiFind a known network in the list and click the button Read more or the information icon. Next to the password field, there will be a copy or display button, which will also require Face ID or passcode confirmation.
Comparison of access recovery methods
The choice of a specific method depends on your operating system and your comfort level with technical interfaces. Below is a table comparing the main methods by complexity and speed.
| Method | OS | Complexity | Admin rights required |
|---|---|---|---|
| Network Properties (GUI) | Windows 10/11 | Low | No (usually) |
| Command Prompt (CMD) | Windows | Average | Yes |
| PowerShell | Windows | Average | Yes |
| Bunch of keys | macOS | Low | Yes (Mac password) |
As the table shows, the Windows graphical interface is the simplest, but it only displays the password for the current or last active network. The command line provides access to the entire connection history.
For macOS, using Keychain Access is the only native method that works reliably across all operating systems. Third-party software is rarely required.
Viewing the password through the router's web interface
If none of the computer methods work (for example, the drivers were uninstalled or the system was reinstalled), the last reliable source of truth remains—the router itself. Factory settings or any password you changed are stored in the device's non-volatile memory.
To access the control panel, you need to know the gateway IP address. This is usually 192.168.0.1 or 192.168.1.1Enter the address in your browser. You'll need your router administrator login and password (often found on a sticker on the bottom of the device if you haven't changed them).
Interfaces from different manufacturers (TP-Link, ASUS, D-Link, Keenetic) are different, but the logic is the same. Look for the section Wireless, Wireless mode or Wi-Fi Settings. In subsections Wireless Security or Wireless security there will be a field PSK Password or Password.
Here you can not only view the current key but also change it to a new, more complex one. After changing it, all devices will need to be reconnected.
⚠️ Attention: Router interfaces are constantly being updated. The menu layout may differ from what's described. Look for keywords like "Wireless," "Security," or "WLAN." If you haven't changed your router's admin password, check the sticker on the bottom of the device.
Frequently Asked Questions (FAQ)
Is it possible to view a Wi-Fi password if the computer has never connected to this network?
No, the password is not stored locally on the computer unless the device has been authenticated. In this case, the only solution is to log in to the router settings (if you know the administrator password) or ask other users who are already connected.
Why is there an empty field instead of a password in the command line?
You most likely ran the command prompt without administrator privileges. This can also happen if the network profile is corrupted or if you're trying to view the password for a network to which the computer is connected via an Enterprise certificate rather than a WPA2 key.
Is it safe to use third-party password recovery programs?
Using specialized software (such as WirelessKeyView) is acceptable, but requires caution. Antivirus programs often identify such programs as threats (hacktools), as they use the same methods to access system storage as viruses. Download such utilities only from the developers' official websites.
Where can I find the password if I reset the router to factory settings?
After a reset, the router returns to its factory settings. The Wi-Fi password will be the one on the sticker on the device. If the sticker says "No Password" or "Open," the network will be unsecured until you set it up for the first time.
Is it possible to find out a password through an Android phone?
On modern versions of Android (10 and above), whether rooted or not (using a QR code), you can view the saved password. Go to Wi-Fi settings, tap the gear icon next to the network, and select "Share" or "QR code." The QR code often displays the text password below it, or you can scan it with a QR code scanner on another device.