How to find the Wi-Fi password on a connected computer

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 written down on a piece of paper that has since been misplaced. Fortunately, if your computer or laptop is already successfully connected to the router or has been connected previously, the operating system stores this data in its encrypted storage. Restoring access It does not require complex hacking attacks or resetting the router settings, as this is a standard OS security feature.

There are several proven ways to extract saved security keys Directly from the Windows or macOS interface. The choice of method depends on the operating system version, whether you have administrator rights, and your preferred computer work style—whether through a graphical interface or console commands. In this article, we'll cover all the relevant options for modern software versions in detail.

It is important to understand that to complete most of the steps below you will need administrator rights on the device. Without these rights, the system will not allow you to view saved network keys for security reasons. Also, make sure you're trying to access the network the device is currently connected to or has connected to in the past.

Viewing your password through Windows 10 and 11 settings

The easiest and safest way to find a forgotten key is to use the operating system's standard graphical interface. In Windows 10 and 11, this process has become even more intuitive, although Microsoft has slightly changed the layout of network controls in the latest Windows 10 updates. First, open the Network control panel.

Press the key combination Win + R, enter the command ncpa.cpl and press Enter. The "Network Connections" window will open, where you'll need to find your active wireless connection. It's usually labeled "Wireless Network" or "Wi-Fi." Right-click on it and select "Status" from the context menu that appears.

In the dialog box that opens, find the "Wireless Properties" button. Go to the "Security" tab. This is where the information you're looking for is stored. By default, the "Network Security Key" field is hidden by asterisks. To see the characters, check the "Show entered characters" box. The system may ask you to confirm your administrator rights—confirm this.

It is worth noting that in some corporate networks or when using specific encryption protocols 802.1X, this method may not work, since the password is not stored in cleartext, but is generated dynamically. However, for home networks of the standard WPA2-Personal or WPA3 This method works without fail.

Using the command line to extract the key

For users who prefer console commands or don't have access to a graphical interface (for example, when working via Remote Desktop), the Windows command line is the ideal solution. This method not only allows you to view the password for the current network but also displays a list of all previously saved profiles.

Run the command prompt as administrator. To do this, click Start, type cmd, right-click "Command Prompt" and select "Run as administrator." First, it's helpful to know the exact network profile name if it's different from the SSID. Enter the command:

netsh wlan show profiles

Once the list of profiles is displayed, enter the command for a specific network name, replacing "Network_Name" with the actual name of your Wi-Fi:

netsh wlan show profile name="Network_Name" key=clear

In the command output, find the "Security settings" section. The "Key Content" line will contain the password you're looking for in cleartext. This method is especially convenient because you can copy the result to the clipboard by selecting the text in the console.

⚠️ Important: When entering the network name in quotation marks, be sure to maintain capitalization. If the name contains spaces, the quotation marks are required, otherwise the command will return a syntax error.
📊 Which method of entering commands is more convenient for you?
Graphical user interface (GUI)
Command Prompt (CMD)
PowerShell
Third-party utilities

Restoring access on macOS

Apple Macintosh owners can also easily retrieve saved passwords, but the process is slightly different due to the different security architecture. In macOS, all passwords, including Wi-Fi keys, are stored in the system utility Keychain Access. This centralized storage is protected by the user account password.

To find the required key, open Keychain Access via Spotlight (Cmd + Space) or by finding the app 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-click the network name to open its properties.

In the window that opens, check the "Show password" box. The system will ask you to enter your macOS account password (or use Touch ID). After successful authorization, your Wi-Fi password will be displayed in the text field. This method works on all current versions of macOS, including Ventura and Sonoma.

For advanced Mac users, there is the option of using the Terminal command. security find-generic-password -wa "Network_Name" will allow you to display the password directly in the terminal, but it will also require confirmation in the system security window. Using Terminal may be faster when working with a large number of profiles.

Viewing the password through the router's web interface

If none of the client-side methods (PC or phone) work, the "gold standard" is always accessing the router's settings. This method is universal and doesn't depend on the operating system of the device you're accessing from. You'll need a browser and access to the local network.

Open your browser and enter your router's IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1The exact address, as well as the login and password, are usually found on a sticker on the bottom of the device. If you've changed your login information and forgot it, you may need to reset the router to factory settings.

After logging in, find the section responsible for your wireless network. It may be called "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Within this section, under the "Security" or "Basic Settings" subsections, you'll find a "Password/Key/Passphrase" field that you can view or change.

Router brand Typical login address Menu section
TP-Link 192.168.0.1 Wireless -> Wireless Security
ASUS 192.168.1.1 Additional settings -> Wireless network
D-Link 192.168.0.1 Wi-Fi -> Security Settings
Keenetic 192.168.1.1 My Networks and Wi-Fi -> Home Network
What to do if the address 192.168.1.1 does not open?

Make sure your computer is connected to the router via cable or Wi-Fi. If the address isn't responding, the default gateway IP address may have changed. Check your network card's TCP/IP settings: the "Default Gateway" address is the correct IP address.

Comparison of password recovery methods

Choosing the optimal method depends on your situation and level of technical expertise. Each method has its own advantages and limitations. Below is a comparison to help you decide on your next course of action.

  • 🔹 Via Windows settings: The fastest way for the current network, does not require remembering commands, but the interface may differ in different OS versions.
  • 🔹 Command line: A universal method that works even on limited versions of Windows. It allows you to copy the password, but requires precision when entering the syntax.
  • 🔹 Via router: Provides full control (you can change the password), works from any device on the network, but requires knowledge of the router administrator password.

Using third-party programs to crack or recover passwords is often unnecessary and can be risky. Built-in operating system tools provide all the necessary functionality without installing additional software, which may contain malware or advertising modules.

⚠️ Note: Router and operating system interfaces are updated regularly. The layout of menu items may differ slightly from that described depending on the firmware version or Windows/macOS update.

Safety issues and recommendations

While viewing saved passwords is convenient, it also poses a potential risk. Anyone with physical access to your unlocked computer with administrator rights can easily discover your Wi-Fi password. Therefore, it's important to practice basic digital hygiene.

Always use complex passwords when logging into your computer account. If an attacker can't log in, they won't be able to run the command prompt as administrator or access network properties. It's also recommended to regularly update Wi-Fi passwords, especially if many guest devices are connected to the network.

For corporate networks, it is recommended to use separate guest networks isolated from the main infrastructure. This way, even if the guest network password is compromised, the company's core data will remain secure. VLAN or guest mode is available on most modern routers.

☑️ Check your network security

Completed: 0 / 4

Frequently Asked Questions (FAQ)

Is it possible to find out a Wi-Fi password if the computer is not connected to it right now?

Yes, if the computer has connected to this network before. Windows and macOS save profiles of all networks you've ever connected to. You can use the command netsh wlan show profile to view a list of all saved profiles and extract the key from any of them.

What should I do if there is no Security tab in the network properties?

This can happen in two cases: either you do not have administrator rights, or the network is corporate with a special security type (for example, 802.1x), where the password is not stored explicitly, but is issued by the authorization server upon each connection.

Will the router reset if I view the password through the web interface?

No, simply viewing or even changing the password in the router settings does not reset the device. A reset only occurs by physically holding the Reset button on the router for 10-15 seconds or by using the "Restore Factory Defaults" command in the interface.

Why does the command prompt say "Access Denied"?

Team netsh Requires running the console as an administrator. If you simply open cmd from the Start menu without administrator rights, the command will fail. Also, make sure your antivirus software isn't blocking system calls.