How to Find the WiFi Password on a Connected Laptop: A Complete Guide

Needing to connect a new device to a wireless network, but long forgotten and unwritten, is one of the most common problems in home IT support. Fortunately, modern laptop operating systems, whether Windows or macOS, store access keys to previously used networks in encrypted vaults. This is designed for user convenience, to avoid entering complex character combinations each time you reconnect, but it's precisely this feature that makes it easy to retrieve forgotten data.

Recovery security key This method doesn't require installing third-party software or complex router manipulation, as long as you have physical access to a device that's already successfully authenticated to the network. In this article, we'll cover the standard methods for extracting passwords via the graphical interface and command line, as well as the specifics of working with keys in the Apple ecosystem.

It's important to understand that you'll need administrator rights on your laptop to perform the steps below. Without the appropriate privileges, the security system won't allow you to view saved credentials, as this is considered sensitive information. We'll cover both standard graphical menus and more advanced console methods, which are often more useful when the interface doesn't provide a direct answer.

Viewing your password through Windows network settings

The easiest and most accessible way to find out WPA2 key or WPA3—use the standard wireless network properties window in the Windows operating system. This method works equally well on both Windows 10 and the newer Windows 11, although the menu paths may differ slightly depending on the build version. The main advantage of this method is its visual clarity and the elimination of the need to remember complex commands.

First, you need to open the Network and Sharing Center. In modern versions of Windows, you can do this by right-clicking the network icon in the system tray (near the clock) and selecting "Network and Internet settings," then going to "Advanced network settings" or directly to "Network and Sharing Center." In the window that opens, find your active wireless network connection, usually indicated as Wi-Fi (Your_Network_Name), and click on this link.

A small wireless network status window will open, displaying the connection speed and session duration. Here we are interested in the button Wireless network properties, located just below the activity graph. Clicking it will take you to the properties window, which is open to the "Connection" tab by default. This is where the password you're looking for is hidden, but it's protected from accidental viewing.

Switch to the "Security" tab. At the bottom of the window, you'll see the "Network Security Key" field, where the characters are hidden behind asterisks or periods. Next to this field is a checkbox labeled "Show characters as you type." Enabling this checkbox requires administrator privileges, so the system may prompt you for confirmation via UAC (User Account Control).

⚠️ Attention: If the "Show entered characters" checkbox is grayed out, it means the current user doesn't have administrator rights or the organization's group policies block viewing saved passwords. This is a standard security measure in corporate networks.

After unchecking the box, the asterisks will turn into readable password text. It's recommended to copy or write it down immediately, as the field will reappear when you close the window. This method is the most reliable for quickly accessing data without using the command line.

📊 How often do you forget your Wi-Fi passwords?
Once a month
Once every six months
Only when purchasing a new router
I never forget, I write it down in my notebook

Using the Windows Command Prompt to Extract Keys

For more experienced users or in situations where the graphical interface does not work correctly, using the command line is the ideal solution. Command Prompt or PowerShell. This method not only allows you to view the password for the current network, but also displays a list of all profiles ever saved on the laptop, which is extremely useful when migrating to new hardware.

First, you need to launch the command prompt as an administrator. This can be done by finding the application in the Start menu. cmd Or "Command Prompt," right-click, and select the appropriate option. The command won't run without administrator rights. First, find out the exact profile name, which may differ from the network's SSID, although they are often the same.

Enter the following command to view all saved profiles:

netsh wlan show profiles

In the "User Profiles" list, you'll see the names of all networks the laptop has ever connected to. Find the name of the desired network and use it in the following command to display it, including the password.

The syntax for viewing a key is as follows:

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

Please note that the network name must be enclosed in quotation marks if it contains spaces. In the report that opens, look for the "Security settings" section and the "Key Content" line within it. The value of this line is the password you're looking for.

☑️ Check before entering a command

Completed: 0 / 4

Method using netsh It's especially valuable because it works even when the network adapter is temporarily disabled or the driver is unstable, as the information is read from the system registry rather than directly polled by the hardware. This makes it a versatile tool for systems administrators.

Password recovery on MacBook and macOS

Laptop owners Apple MacBook are in a slightly different position, as the macOS security philosophy is to centrally store all passwords in the iCloud Keychain. This means that your Wi-Fi password isn't stored in plaintext in your network settings, but is protected by Touch ID biometrics or your Apple ID account password.

To view your password on macOS, the easiest way is to use the built-in Spotlight search. Press the following key combination: Command + Space and type "Keychain Access." Open the Keychain Access app. Select "System" or "Login" from the list on the left, and find the name of your wireless network in the list of objects.

Double-click the found network name. In the properties window that opens, check the "Show password" box. The system will immediately ask you to verify your identity: you'll need to enter your user account password or place your finger on the Touch ID scanner. Once successfully authenticated, the text password will appear in the field.

In newer versions of macOS (Sonoma and later), the process is even more simplified and integrated into the main settings. Go to System Preferences → Wi-Fi. Find your network in the list of known networks and click the "More Details" button or the "i" icon in a circle. Next to the "Password" field, you'll see a copy or share button, which will also require confirmation via Touch ID.

operating system Access method Necessary rights Key location
Windows 10/11 Network Properties / CMD Administrator Registry / Adapter Settings
macOS (older) Bunch of keys Username + Password iCloud Keychain
macOS (Sonoma+) System Preferences Touch ID / Face ID Wi-Fi settings
Linux (Ubuntu) Network Settings / NMCLI Root / Sudo NetworkManager
What to do if Mac won't show password?

If your network isn't listed in the keychain, iCloud syncing may be disabled. Check your iCloud settings under "Apple ID" and ensure "Keychain" is enabled. The password may also be missing if the network was connected in guest mode without saving.

Viewing passwords on Linux (Ubuntu, Mint, Debian)

Users of distributions based on Linux They can also easily recover forgotten passwords, as NetworkManager, which manages connections in most graphical environments, stores the configuration in plain text, albeit with access restrictions. There are two main ways: through the graphical settings interface or through the terminal.

In a graphical interface (such as GNOME), go to the network settings, select the wireless connection, and click the gear icon or the settings button. In the "Security" tab, there will be a password field that can be made visible by unchecking the corresponding box. The system will prompt you for the user's password to confirm the action.

For those who prefer the terminal, there is a utility nmcliFirst you need to connect all the connections with the command nmcli connection showThen, knowing the connection name (CONNECTION NAME), you can display its details. However, the password itself may not be displayed directly in clear text via a simple command for security reasons, but it can be found in configuration files.

Configuration files are usually stored in the directory /etc/NetworkManager/system-connections/To view the contents of a file on a specific network, you will need superuser rights:

sudo cat /etc/NetworkManager/system-connections/"Network_Name".nmconnection

Inside the file, look for the section [wifi-security] and parameter pskThe value of this parameter is your password. Please note that file names may vary depending on the distribution version and NetworkManager configuration.

⚠️ Attention: When working in the Linux terminal, pay attention to the case of letters in filenames and commands. A misspelled path can result in the wrong file being opened or a "File not found" error.

Alternative methods and mobile devices

If you can't use the command line or the settings seem too complex, there are alternatives. One is to use a QR code, which is generated by modern Android and iOS smartphones. If your phone is already connected to the network, it can "share" the password as a graphic code.

On Android (e.g., Samsung, Xiaomi, Pixel), go to Wi-Fi settings, tap the gear icon next to your active network, and select "QR code" or "Share." A code will appear on the screen. To view the password in plain text, you can take a screenshot of the code and open it with Google Lens or any QR code scanner. The scan will return a string like this: WIFI:S:MyNetwork;T:WPA;P:MyPassword;;, Where P - this is the password.

On iPhone, the feature is similar: in Wi-Fi settings, tap the "i" icon next to the network, then select "Share" (though viewing the password text on iOS is more difficult without jailbreaking or using a macro, but scanning the QR code from another device works flawlessly). This is a great way to transfer the password to your laptop simply by scanning the code from the phone's screen with the camera.

Another method, useful for routers from some providers (e.g., Rostelecom, MGTS), is using dedicated operator apps. The mobile app's personal account often includes a "Show Wi-Fi password" option if the router is linked to the user's account.

Safety concerns and storage recommendations

The ability to easily view a saved password is a double-edged sword. While convenient for the owner, it poses a risk if the laptop is used by unauthorized persons or if the device is stolen. An attacker with physical access to an unlocked laptop can discover your home network password in seconds and connect to it, gaining access to local resources.

Critical information: A Wi-Fi password stored in the system is de facto considered open to anyone who has access to the screen and administrator rights on your device. Therefore, never leave your laptop unattended and unlocked in public places or offices.

To minimize risks, it's recommended to use a guest Wi-Fi network to connect guest devices. In this case, the main password for your home network (which is often used to access router settings, NAS storage, and smart home devices) remains secret. The guest network isolates devices from each other and prevents them from accessing local resources.

It's also a good practice to change your passwords regularly, especially if you suspect your network access may have been compromised. Avoid using simple combinations like 12345678 or password, as they can be easily selected even without access to the saved data on the laptop.

Frequently Asked Questions (FAQ)

Is it possible to find out the Wi-Fi password if the laptop is not currently connected to this network, but has connected before?

Yes, it is possible. The operating system stores profiles of all networks you have ever connected to. In Windows, use the command netsh wlan show profile name="Name" key=clearIn macOS, look for the network in Keychain, even if you are currently outside the router's range.

What should I do if Windows says "Access Denied" when I try to view my password?

This means your current account doesn't have administrator rights. You'll need to either log in as an administrator or ask the device owner to enter the administrator password to confirm the action. Without these rights, the system won't allow the security key to be disclosed.

Where are Wi-Fi passwords stored in the Windows registry?

Network profiles are stored in the registry at the path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\ProfilesHowever, the keys themselves are encrypted and stored in a secure area of ​​the system. Directly reading the registry won't give you the password in cleartext, so using the command line or GUI is the only standard decryption method.

Will the router password be reset if I look at it on my laptop?

No, viewing a password on a laptop is simply reading data already stored in the computer's memory. No changes are made to the router settings, and other devices will not be disconnected from the network. This is a secure operation.