How to find your computer's Wi-Fi password: complete instructions

Many users are familiar with the situation of needing to connect a new device to their home network but hopelessly forgetting the access key. Often, older laptops or smartphones automatically save the connection, and owners simply forget the password they entered when first setting up the router. Fortunately, Windows and macOS operating systems store this data in protected registries, allowing administrator privileges to access it. restore access to information.

There are several effective methods for solving this problem, ranging from built-in graphical interfaces to console commands. The choice of a specific method depends on the operating system version, the level of access to the device, and whether the computer is currently connected to the network. We'll look at the most reliable options that will help you. regain control over network settings without having to reset the router to factory settings.

It is important to understand that all of the steps described below require physical access to a device that already has an active connection or has previously successfully connected to the target network. Data security In modern operating systems, passwords are implemented quite efficiently, so you can't just "pull" a password out of thin air—you need user or administrator rights. Below, we'll cover each step in detail.

Using built-in Windows tools to view saved networks

Windows 10 and 11 operating systems provide users with a convenient, albeit somewhat hidden, interface for managing network connections. If your computer is currently connected to Wi-Fi, you can find the password through the standard network properties window. This method doesn't require complex commands and is suitable even for inexperienced users, but it only displays the key for the network you're currently connected to.

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 "Network Connections" window that opens, find your wireless network adapter, right-click it, and select "Status." In the dialog box that appears, click "Wireless Network Properties," then go to the "Security" tab.

It's here, in the "Network Security Key" field, that the password characters are hidden behind asterisks. To see them, you need to check the "Show characters" box. The system may ask you to confirm administrator rights through the UAC (User Account Control) interface. After confirming, you'll see real password in an open form that can be copied or rewritten.

⚠️ Note: If the "Show characters as you type" option is grayed out, it means your current account does not have administrator rights on this computer. In this case, you will need to log in as the root user or use command prompt methods if your rights allow it.

It's worth noting that this method only works for an active network. 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 such cases, a more powerful tool—the command line—comes to the rescue.

📊 What operating system do you use?
Windows 10
Windows 11
macOS
Linux
Other

Password recovery via the Windows command line

The Command Prompt (CMD) or PowerShell provide access to hidden network management features, allowing you to retrieve saved profiles. This method is especially useful if the graphical interface is not working correctly or if you need to find the password for a network to which the computer is not currently connected but the profile is saved. To use this method, you will need to run the terminal as administrator.

First, you need to get a list of all saved Wi-Fi profiles. Enter the command netsh wlan show profiles and press Enter. The system will display a list of all networks this PC has ever connected to. Find the required name (SSID) in the list and remember its exact spelling, as you'll need it in the next step.

To display the password for a specific network, use the following construction: netsh wlan show profile name="NETWORK_NAME" key=clearReplace "NETWORK_NAME" with the name of your Wi-Fi network. In the report that opens, find the "Security settings" section, where the "Key Content" field will contain the password you're looking for.

☑️ Check before entering commands

Completed: 0 / 4

The advantage of this method is its versatility: it works on all versions of Windows, starting with Windows 7, and doesn't rely on a graphical interface. However, be careful when entering commands: syntax must be followed exactly, including quotation marks if there are spaces in the network name.

What should I do if the command returns a "Network not found" error?

This error means that the network profile for this network has been deleted from the Windows registry or was never saved on this particular computer. In this case, recovering the password using the operating system is impossible; you will need access to the router or another device where the network is active.

Finding a passkey in macOS via Keychain

Apple Mac users may also need to restore Wi-Fi access. In the macOS ecosystem, all passwords, including wireless network keys, are stored in a secure database called Keychain Access. This centralized password repository is synced across Apple devices via iCloud, if the feature is enabled.

To find your password, open Keychain Access. The easiest way to do this is through Spotlight (click Cmd + Space and start typing the program's name. In the list on the left, select the "System" or "Login" category, then enter the name of your Wi-Fi network in the search field. Find the desired item in the list and double-click it.

In the Properties window that opens, check the "Show Password" box. macOS will ask you to verify your identity: you'll need to enter your Mac user account password or use Touch ID. After successful authentication, the field next to the checkbox will display text password from the network.

Parameter Description Where to find
Network name (SSID) Public Wi-Fi name List of available networks
Security type Encryption protocol (WPA2/WPA3) Network Properties in macOS
Security key The Wi-Fi password itself Keychain (after entering the password)
RADIUS server Used in corporate networks Additional profile settings

If you've forgotten both your Mac account password and your Wi-Fi password, regaining access becomes significantly more difficult and may require a system reset.

Viewing settings via the router's web interface

The most universal method, regardless of your computer's operating system (Windows, Linux, macOS) or the state of its network drivers, is to log into the router's control panel. If you have physical access to the router and know the login credentials for its admin panel, you can not only view but also change password to any other.

First, make sure your computer is connected to the router (via Wi-Fi or LAN cable). Open any browser and enter the gateway IP address in the address bar. Most often, this is 192.168.0.1, 192.168.1.1 or 192.168.31.1The exact address is usually indicated on a sticker on the bottom of the device. Enter the administrator username and password (the default is often admin/admin unless they have been changed).

Router interfaces vary from manufacturer to manufacturer (TP-Link, ASUS, D-Link, Keenetic), but the logic is the same. Find the section related to your wireless network. It may be called "Wireless," "Wi-Fi," or "Wireless Mode." Inside, look for a subsection called "Security" or "WLAN Settings." There you'll find a field labeled "PSK Password," "WPA Pre-Shared Key," or "Wireless Network Password."

⚠️ Note: Router firmware interfaces are frequently updated. The menu location may differ from that described. If you can't find the item you need, consult the official manual for your router model on the manufacturer's website.

This is where you'll see your current password. Furthermore, in this same menu, you can replace a complex character combination with one that's easier to remember or, conversely, strengthen security by selecting an encryption protocol. WPA3-Personal, if your devices support it.

Using third-party utilities to analyze Wi-Fi

There is specialized software designed for system administrators and enthusiasts that allows for more flexible management of wireless connections than standard OS tools. Programs like WirelessKeyView from NirSoft or WiFi Password Decoder are able to extract saved keys from the Windows system registry in a convenient format.

The WirelessKeyView utility, for example, runs without installation (it's portable). Once launched, it automatically scans the registry for saved WLAN profiles and displays a list of networks along with their passwords in plain text (ASCII and Hex). This is extremely convenient for quickly exporting all passwords at once, for example, when migrating to a new computer.

However, using such software requires caution. Antivirus programs may label these programs as "HackTool" or "RiskWare," as their functionality is indeed used by attackers to steal data. Such programs should only be downloaded from the developers' official websites.

  • 🔍 WirelessKeyView: A lightweight utility that shows all saved Windows networks instantly.
  • 📡 WiFi Analyzer: More suitable for signal analysis, but some versions have profile management features.
  • 🔓 WiFi Password Decoder: A specialized tool for recovering lost keys from the registry.

Remember that running scripts and programs from untrusted sources carries the risk of system infection. Always scan files using services like VirusTotal before using them.

Resetting the router as a last resort

If none of the software methods help, and access to the router's web interface is impossible (the administrator password has been forgotten), the last resort is a complete factory reset (hard reset). This will return the router to its original state.

To reset the router, locate the small hole on the device's body, usually labeled "Reset" or "Default." Press it with a thin object (like a paperclip or toothpick) and hold the button for 10-15 seconds until the router's indicator lights flash simultaneously. After the reset, the device will broadcast Wi-Fi using the factory name and password listed on the sticker.

The main drawback of this method is the need to reconfigure your internet connection. If your provider uses MAC address binding or requires specific PPPoE/L2TP settings, you'll either have to call a technician or have your ISP contract handy to enter your authorization details.

⚠️ Important: Before resetting your router, make sure you have a contract with your internet provider. Without a login and password for network access (PPPoE) or a static IP address, the internet will not work after the reset, even if Wi-Fi is available.

Use this method only in dire straits. Regularly backing up your router configuration (using the "Backup Settings" feature in the admin panel) will help prevent future problems by saving the settings file to your computer.

Frequently Asked Questions (FAQ)

Is it possible to find out your neighbors' Wi-Fi password while within range?

No, it's impossible to find out someone else's password using legal methods. Modern encryption protocols (WPA2/WPA3) reliably protect data transmission. All the methods described in this article only work on networks to which your computer has previously connected or has administrative access.

Where can I find the password on my router if the sticker has worn off?

If the sticker is unreadable and you haven't changed the settings, try the standard login/password combinations. admin/admin or admin/passwordIf they don't work, you'll have to perform a factory reset using the Reset button, after which the password will be the one specified in the model's instructions (often this is also admin or an empty string).

Is it safe to save a password in Windows?

Yes, Windows stores passwords in encrypted form. Access to them is only possible with administrator rights on the specific device. However, if attackers gain physical access to your computer, they can use the methods described above to extract your passwords.

What to do if netsh command returns "Access denied"?

This means the command prompt is running as a standard user, not an administrator. Right-click "Command Prompt" or "PowerShell" in the Start menu and select "Run as administrator."

Is it possible to recover a password on Linux?

Yes, in Linux passwords are stored in NetworkManager configuration files, usually in the directory /etc/NetworkManager/system-connections/To view the contents of a file for a specific network, you need root (superuser) rights and the command cat or a text editor.