Many users are familiar with the situation of needing to connect a new device to a wireless network, but the password has long been forgotten or lost. Fortunately, modern operating systems like Windows and macOS save the credentials of all successful connections by default. This means that if your laptop or desktop computer already has access to the network or has had access in the past, you can extract the security key using built-in tools without the need for third-party software.
There are several proven methods for restoring access, ranging from simply viewing network properties in a graphical interface to using the command line for advanced users. The specific method you choose depends on your operating system version, your administrator account access rights, and your physical connection to the router. In this guide, we'll cover each step in detail.
It's important to understand that password recovery is only possible if the device has previously successfully logged into the network. If the computer has never connected to this Wi-Fi network, it won't be possible to obtain the key remotely "over the air" without hacking (which is illegal). However, if you own the network or have physical access to the router, you can always reset the settings or check the sticker on the device.
Viewing a saved password in Windows 10 and 11
The easiest and most accessible method for most users is to use the operating system's graphical interface. In Windows 10 and 11, the mechanism for storing network profiles remains virtually unchanged, although the path to the settings may vary slightly depending on the build. First, open the network settings, where information about the current connection is stored.
Right-click the Wi-Fi icon in the system tray (near the clock) and select "Network & Internet settings." In the window that opens, find the "Advanced network settings" or "Network and Sharing Center" section. Your active connection will be displayed here. Click the link with your wireless network name to open the status window.
In the dialog box that appears, click the button Wireless network properties. Go to the tab SecurityThis is where you'll find the information you're looking for. By default, the "Network Security Key" field is hidden by asterisks. To see the symbols, check the box next to it. Show entered characters.
⚠️ Note: Displaying your password in this window may require administrator privileges. If the system prompts you for account confirmation (UAC), enter your administrator password or confirm the action. Without these privileges, the button may be disabled.
It's worth noting that this method only works for the network your computer is currently connected to. If you want to find the password for a network you've previously connected to but are currently out of range, this method won't work. In that case, you'll need to use the command line, which we'll discuss below.
Using the Windows Command Prompt (CMD)
For more flexible management of network profiles and access to all connection history, the command line is ideal. This method allows you to see passwords for all Wi-Fi networks ever saved on your computer, even if you're not currently connected to them. This is especially useful when migrating to a new router or setting up guest access.
Run the command prompt as administrator. To do this, enter cmd In Windows Search, right-click "Command Prompt" and select the appropriate option. The first step is to list all saved profiles. Enter the command:
netsh wlan show profiles
The system will return a list of all known networks. Find the exact name of the desired profile (SSID). Then use the following structure to display the details of a specific profile, including the security key. Replace Network_Name to the real name of your Wi-Fi:
netsh wlan show profile name="Network_Name" key=clear
In the Security settings information block, find the line Key content (Key Content). This is where the password will be displayed in clear text. Please note that if the profile was imported from another computer without a key or saved by the system in a special way, this field may be empty. However, in 99% of standard connections, this method works flawlessly.
- 🔹 This method works on all versions of Windows, starting with XP.
- 🔹 Allows you to copy the password directly to the clipboard (in newer versions of CMD).
- 🔹 Does not require a graphical interface, which is convenient when working via remote access.
Restoring access on macOS
Apple computer users can also easily retrieve saved passwords thanks to the integrated key management system. Keychain Access (Keychain). This database stores not only website passwords but also Wi-Fi credentials, certificates, and application keys. The macOS interface provides convenient access to this information.
Open Spotlight Search (Command + Space) and type Bunch of keys or Keychain AccessLaunch the app. In the left menu, select the "System" or "iCloud" category, then find the "Passwords" tab. Find the name of your wireless network in the list on the left or in the general list.
Double-click the network name. In the properties window that opens, check the box. Show passwordThe system will require you to confirm your identity: you'll need to enter your Mac user password or use Touch ID. Once successfully authenticated, the required access code will be displayed in the field.
An alternative method for macOS is to use Terminal, which is functionally similar to CMD in Windows. Open Terminal and enter the command:
security find-generic-password -wa "Network_Name"
The system will also request permission to access the key in a system dialog. After confirmation, the password will be displayed in plain text in the terminal window. This method is often faster for experienced users accustomed to CLI interfaces.
Viewing the password through the router's web interface
If your computer isn't connected to Wi-Fi or the password isn't saved anywhere, the only legal way to access the router's settings is to access the router itself. To do this, you'll need the gateway IP address (usually 192.168.0.1 or 192.168.1.1) and the login information for the admin panel. This information is often found on a sticker on the bottom of the device.
Connect your computer to the router using an Ethernet cable (patch cord) or via Wi-Fi (if the device already knows the password but you want to see it). Open a browser and enter the IP address in the address bar. Enter the administrator login and password. By default, this is often admin/admin or admin/password.
Interface of different manufacturers (TP-Link, ASUS, D-Link, MikroTik) is different, but the logic is the same. Look for the "Wireless," "Wireless Mode," "WLAN," or "Wi-Fi" sections. Within these tabs, there will be a "Security" or "Security Settings" subsection. There, in the field WPA Pre-Shared Key or "Password" the current key will be indicated.
| Manufacturer | Menu section | Subsection | Field name |
|---|---|---|---|
| TP-Link | Wireless | Wireless Security | Password / PSK Password |
| ASUS | Additional settings | Wireless network | Authentication method |
| D-Link | Wi-Fi | Security settings | PSK encryption key |
| Keenetic | My Networks and Wi-Fi | Home network | Wi-Fi network password |
⚠️ Important: If you changed the password for your router's web interface and forgot it, you'll need to reset the device to factory settings. This will completely reset all provider and Wi-Fi settings.
Software and utilities
There are many third-party programs that automate the password extraction process. Popular utilities include WirelessKeyView from NirSoft or WiFi Password Revealer They scan the Windows registry and display a list of all networks and their keys in a convenient format. However, using such software requires caution.
The main risk is that antiviruses often react to such programs as Hacking Tools or potentially unwanted software, as they use the same methods to access system data as stealer viruses. Such utilities should only be downloaded from the developers' official websites.
The advantage of software methods is the ability to quickly export a list of all passwords to a text file or HTML, which is convenient when reinstalling the system or moving. Additionally, some programs allow you to generate QR codes for quick connection to mobile devices.
- 🔸 WirelessKeyView: A lightweight, no-installation utility that displays all WEP/WPA keys.
- 🔸 WiFi Password Decoder: Supports multiple data export formats.
- 🔸 NetPass: A universal tool for recovering network passwords.
☑️ Check before using the software
What to do if none of the methods helped
There are situations where none of the above methods work. This can happen if the network profile is corrupted, access rights are restricted by group policies (often in corporate networks), or if specific corporate encryption (802.1x) is used, where the password is not stored explicitly but a certificate is used.
In the case of corporate networks or educational institutions that use domain login and password authentication, finding the "Wi-Fi password" is technically impossible, as it doesn't exist in the traditional sense. Access is granted through a user account. To connect a new device, you'll need to contact the system administrator.
If you own a home router but can't access the settings or don't remember the password, your last option is a physical reset. There's a hole on the back of the router. ResetPress it with a paperclip and hold it for 10-15 seconds until the lights blink. The router will reset to factory settings, and the password will be the one indicated on the sticker.
Why might my password not be displayed as asterisks?
In some rare cases, especially after Windows updates or using specific drivers, the password field in the network properties may be inactive or missing. This is because Windows stores the key in a secure format accessible only to system services. In such cases, only the command line or third-party software can help.
It's also worth checking whether the WPS function is enabled on your router. If it is, you can connect a new device simply by pressing the button on the router, without entering a password. However, from a security standpoint, it's best to disable this function, as it poses a security vulnerability.
Security measures and network protection
Once you've regained access, it's recommended to consider your network security. A weak password or the use of an outdated encryption protocol (such as WEP or WPA-TKIP) makes your network vulnerable to hacking, even without knowing the password, through brute-force attacks or exploiting protocol vulnerabilities.
It is recommended to use an encryption protocol WPA2-PSK (AES) or the newest WPA3, if your hardware supports it. The password should be complex: contain mixed-case letters, numbers, and special characters, and be at least 12 characters long. This will protect you from brute-force attacks.
Update your router firmware regularly. Manufacturers frequently release patches to fix security holes. You can check for updates in the router's web interface under "System Tools" or "Administration."
Remember that knowing how to get a Wi-Fi password comes with responsibility. Use this knowledge only to regain access to your own networks or networks whose owners have given you explicit permission.
Is it possible to find out the Wi-Fi password on a phone if it is saved?
Yes, on Android (version 10 and above) and iOS (version 16 and above), you can view the password for a saved network. On Android, this is done via a QR code in Wi-Fi settings; on iOS, it's done by tapping the "i" icon next to the network and using FaceID/TouchID authentication.
What is WPS and is it dangerous to use?
WPS (Wi-Fi Protected Setup) allows you to connect to a network by pressing a button or using a PIN code. This is dangerous, as the PIN code is often vulnerable to brute-force attacks. An attacker can crack it in a matter of hours and gain access to your network even without knowing the master password.
Will my Wi-Fi password change if I reset my router?
If you reset the router using the Reset button, the password will revert to the factory default (indicated on the sticker). If you simply rebooted the router (powered it off and then back on), the password will remain the same.
Where are Wi-Fi passwords stored in the Windows registry?
Technically, they are stored in a protected section of the registry and system files in encrypted form. Directly editing the registry to extract them is impossible without special decryption keys, so using commands netsh is a standard and safe method.