Needing to connect a new device to a wireless network or share access with guests occurs regularly, but the keyword is often forgotten. It's stored in memory as an abstract string of characters that we type mechanically, without thinking about its structure. Fortunately, Windows and macOS operating systems store this data in protected profiles, allowing you to restore access at any time without resetting the device.
There are several proven methods for retrieving saved keys, ranging from the GUI settings to using system command line utilities. Administrative rights may be required to perform some operations, especially if you decide to use console commands to display network information. Below, we'll cover each method in detail so you can choose the most convenient one for your current situation.
It's important to understand that the security of a wireless connection directly depends on the strength of the password, so storing it in a secure location is crucial. We'll cover not only standard methods for viewing passwords but also ways to restore access through the router's web interface, which is useful if your computer isn't currently connected to the network.
Viewing your password using standard Windows settings
The simplest and most accessible way to retrieve a saved key is to use the operating system's built-in graphical interface. This method doesn't require knowledge of complex commands and is suitable for most users who rarely need to configure the network in depth. The process takes literally a few seconds if you know which window contains the necessary information.
First, you need to open the Network Control Panel. Press the key combination Win + R, enter the command ncpa.cpl and press Enter. In the window that opens, find your active wireless connection, right-click it, and select "Status." Next, go to the wireless network properties, where you'll find the "Security" tab.
⚠️ Note: If the "Network Security Key" field is hidden by asterisks, be sure to check the "Show entered characters" box to see the real password.
In the same window, you will see the type of encryption that is used on your network, for example WPA2-Personal or WPA3This is an important technical detail, as it determines the compatibility of older devices with your access point. Modern encryption standards ensure reliable protection of data transmitted over the air from unauthorized access.
It's worth noting that the Windows 11 settings interface has undergone significant changes, and the path to the password has become a bit shorter. Now, just go to Settings → Network & Internet → Wi-Fi → Manage known networks, select the desired network, and click the "View" button next to the key field. The system will automatically request account confirmation or biometric verification.
Using the command line to recover the key
For more advanced users or in cases where the graphical interface isn't working correctly, using the command line is the ideal solution. This method allows you to quickly access information about all saved networks and their security settings without any unnecessary clicks. Command line Provides direct access to system registries and configuration profiles.
Launch the terminal as administrator by entering cmd in the search bar and select the appropriate option. The first step is to get a list of all networks your computer has ever connected to. Enter the command:
netsh wlan show profiles
Find your network name (SSID) in the list and use it to display detailed information. The command should look like this, where "Network_Name" is replaced with the actual name:
netsh wlan show profile name="Network_Name" key=clear
☑️ Check before entering commands
After running the command, the "Security settings" section will display the "Key Content" line, which will contain the password you're looking for. This method is universal and works on all versions of Windows starting with XP, making it an indispensable tool in any system administrator's arsenal.
If you are using PowerShell, the command syntax will remain the same, as the utility netsh is a system component. However, PowerShell allows you to use more complex scripts to automatically export all passwords to a text file, which is convenient when migrating to a new computer.
How to view your WiFi password on macOS
Apple computer users can also easily recover forgotten passwords using built-in system tools. In macOS, this information is stored in the Keychain, a centralized repository of passwords, certificates, and encryption keys. Access to it is protected, but an authorized user can view the necessary data.
Open Keychain Access using Spotlight search (Cmd + Space) or find it in the Applications → Utilities folder. In the list on the left, select the "System" or "Login" category, then find the name of your wireless network in the list. Double-clicking the network name will open the properties window, where you should check the "Show password" box.
| Action | Where to find | Requirements |
|---|---|---|
| Network search | Keychain | Network name (SSID) |
| View | Object properties | Check the "Show password" box |
| Authentication | System window | User password or Touch ID |
| Copying | Password field | Selecting text |
The system will ask you to confirm your identity by entering your account password or using Touch ID biometrics. Once verified, the password field will become readable. In newer versions of macOS (Ventura and later), the process has been simplified: you can now view your password directly in System Preferences → Wi-Fiby clicking on the information icon next to the network.
What should I do if Keychain Access won't open?
If the Keychain Access app is unresponsive or displays an error, try restarting the "keychainaccess" process using Activity Monitor. Also, make sure the system drive isn't damaged, as this could be blocking access to the password vault.
Recovering the key via the router's web interface
If your computer doesn't remember the password or you want to find the key for a device that has never connected to the network, the only reliable way is to access the router's settings. To do this, the device must be connected to the router via an Ethernet cable or Wi-Fi (if access is still available). The login address is usually located on a sticker on the bottom of the device.
Open your browser and enter the gateway IP address into the address bar, most often it is 192.168.0.1 or 192.168.1.1After entering the administrator login and password (by default, it's often admin/admin), go to the wireless network section. It may be called Wireless, Wi-Fi or Wireless mode.
⚠️ Warning: Changing security settings or encryption type in this section will disconnect all connected devices. Please exercise caution when making changes.
On the wireless network settings page, you'll see a "Password," "Key," or "WPA Pre-Shared Key" field. This is where the current access key is stored. If the field is hidden, there's usually a "Show" or "Display" button next to it. Write down the character combination or copy it.
In modern routers from manufacturers like Keenetic, Asus or MikroTik The interface may differ, but the logic remains the same. Look for sections related to Security or basic WLAN settings. You can always find or change your password to a new, more complex one there.
Using third-party utilities and applications
There are many programs designed to manage wireless connections and recover forgotten passwords. Utilities such as WirelessKeyView from NirSoft or WiFi Password Decoder, scan system registries, and display the saved data in a convenient format. They're especially useful when you need to quickly export a list of all networks and keys.
However, using third-party software requires caution. Download programs only from the developers' official websites to avoid introducing malicious code. Antivirus programs may flag such utilities as potentially unwanted software, as they access sensitive system data.
The advantage of specialized software is the ability to export data to a text file, HTML, or XML. This is convenient for system administrators setting up an office network and need to share data with colleagues. Additionally, some programs can generate QR codes for quick connection of mobile devices.
Remember that after using such utilities, it's best to delete them or store them in a secure location. Access to saved passwords gives you complete control over the network, so the security of the computer with the utility installed is critical.
What to do if your password is not saved anywhere
In rare cases, a situation may arise where no device remembers the password, and access to the router is impossible due to a forgotten administrator password. In this case, a radical but effective method remains: resetting the router to factory settings. There's a button on the device's body. Reset, often recessed into the body.
To reset the router, turn it on, locate the hole marked "Reset," and press it with a paperclip for 10-15 seconds until the LEDs flash simultaneously. After the reset, the device will return to the factory settings listed on the sticker on the bottom, including the network name and password.
⚠️ Please note: Resetting your router will delete all your personalization settings, including PPPoE, IPTV, and static IP addresses. Make sure you have your ISP details before resetting.
After the reset, you'll need to reconfigure your internet connection using the quick setup wizard. This may require calling your provider or having a contract specifying the technical specifications. Therefore, this method should be considered a last resort after all other options have been exhausted.
Frequently Asked Questions (FAQ)
Is it possible to find out a WiFi password if the computer is not currently connected to this network?
Yes, you can. Windows and macOS save profiles of every network you've ever connected to. You can view the password through the command line or settings, even if you're currently out of range.
Where can I find the router administrator password if it is not the default one?
If the default password (usually admin/admin) doesn't work and you've changed it but forgotten it, it's impossible to recover without a factory reset. You'll need to perform a hard reset using the button on the device's body, which will restore the factory settings.
Is it safe to store passwords in command line or text files?
Storing passwords in plain text is unsafe. If you've retrieved your password through the console, don't copy it into public chats or unencrypted files. It's best to use it immediately to connect and clear your command history.
Why is the password hidden behind asterisks on the security tab?
This is a standard operating system security measure against over-the-shoulder prying. To see the symbols, you must explicitly confirm your action by checking the "Show characters" box and sometimes entering your account password.
Can a virus steal saved WiFi passwords?
Yes, malware that has gained administrator privileges can read saved WiFi profiles. Therefore, it's important to use antivirus software and avoid running suspicious programs that require elevated privileges.