How to find out a WiFi password through a connected laptop

Needing to connect a new device to a wireless network but forgetting the password is one of the most common situations in home IT. Fortunately, modern computer operating systems automatically save security keys for quick future connections, making this information easy to retrieve. Even if you've never specifically written down the password, it's safely stored in your laptop's system files.

Restoring access doesn't require installing third-party software or complex manipulation of the provider's equipment. All you need is physical access to a device that's already successfully logged into the network and basic navigation skills in the Windows or macOS interface. In this article, we'll cover all the legal methods for retrieving lost data in detail.

⚠️ Important: Use the information you receive only to restore access to your own networks or networks you administer. Unauthorized access to other people's wireless access points is prohibited by law.

Using the Command Prompt in Windows

The fastest and most reliable method, which doesn't require diving deep into the graphical interface, is to use the built-in command line utility. This method works on all current operating system versions, from Windows 7 to Windows 11, and provides results in just a few seconds. You don't need superuser privileges if you simply want to view the saved key.

First, you need to open the console. Press the key combination Win + R, enter cmd and press Enter. In the window that opens, enter the command netsh wlan show profilesThis instruction will list all wireless networks your laptop has ever connected to. Find your network name (SSID) in the list and copy it exactly, maintaining proper case.

Next, enter the command to display the details of a specific profile by adding the key key=clear, which forces the system to display the hidden password in clear text. The command syntax is as follows:

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

In the command output, scroll down to the section Security settingsWe are interested in the line Key Content, the value of which is the password you're looking for. If you see empty fields or asterisks instead of text, make sure the network name is entered correctly and matches the name in the profile list.

What to do if the command line does not work?

If the system returns an access error or the command prompt is unresponsive, try running the console as administrator. Right-click the search icon, type cmd, select "Run as administrator," and repeat the process.

Viewing via the Windows GUI

If working with code makes you uncomfortable, the operating system provides a more visual path through the standard network settings. This method takes a little longer due to the number of window transitions, but it's more intuitive for beginners. The interface may vary slightly depending on the Windows version, but the logic remains the same.

First, open the Run window by typing Win + R and enter the command ncpa.cplThe Network Connections window will open. Find your active "Wireless Network" (Wi-Fi) connection, right-click it, and select "Status." In the small window that opens, click "Wireless Network Properties."

In the new dialog box, go to the "Security" tab. You'll see the "Network Security Key" field, where the characters are hidden by dots. To see them, you need to check the "Show entered characters" box. Then the password will become visible in the text field, and you can copy or rewrite it.

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

It's worth noting that on some corporate laptops, access to the "Security" tab may be restricted by administrator group policies. In this case, the system won't allow you to unlock the input field, requiring you to use the command line or access the router settings.

Password recovery on macOS

Apple users rarely need to recover passwords, as the iOS and macOS ecosystems sync access keys via iCloud Keychain. However, if you need to find your password on your Mac itself, you can do so using the Keychain utility. It stores all saved passwords, certificates, and encryption keys.

Open Finder, go to "Applications," then "Utilities," and launch "Keychain Access." In the left column, select the "System" or "Login" category, and find the name of your Wi-Fi network in the list. Double-click the network name to open the Properties window. In the dialog that appears, check the "Show password" box.

The system will ask you to verify your identity. You will need to enter your macOS user account password (the one you enter when you turn on your computer) or use Touch ID. Once successfully authenticated, the password field will become readable.

  • 🍏 Make sure you are looking for the network in the "System" category if the connection was made for all users.
  • 🔑 If your password isn't displayed, check if access to your keychain is blocked in your security settings.
  • 💻 On newer versions of macOS (Ventura and later), you can also view the password in "Settings" -> "Wi-Fi" -> "More details" next to the network.

Receiving data via the router's web interface

If your laptop is connected to the network, but the operating system doesn't display the saved key for some reason (for example, due to registry errors), the "gold standard" solution is to access the router's settings. Since you're already connected to Wi-Fi, your computer is within the device's local network, giving you direct access to its configuration.

To log in, you need to know the gateway IP address. Open the command prompt and enter ipconfigFind the "Default Gateway" line in the section for your wireless adapter. This is usually the address 192.168.0.1 or 192.168.1.1Enter this address into the address bar of your browser.

A login window will appear. If you've never changed the default settings, the login and password are often found on a sticker on the bottom of the router (standard pairs are admin/admin or admin/password). Once in the menu, look for the "Wireless" or "Wireless Settings" section. In the "Security" subsection, you'll see a "Password" or "PSK Key" field.

Router brand Standard IP Default login Default password
TP-Link 192.168.0.1 admin admin
ASUS 192.168.1.1 admin admin
D-Link 192.168.0.1 admin (empty)
Keenetic 192.168.1.1 admin admin
Tenda 192.168.0.1 admin admin

⚠️ Note: Router firmware interfaces are constantly being updated. The menu location may differ from that described above. If you cannot find the desired option, please consult the official documentation from the manufacturer of your model in the "Support" section.

Alternative methods and third-party software

There are specialized snails that automate the process of retrieving saved profiles. Programs like WirelessKeyView from NirSoft or WiFi Password Revealer Scan the Windows registry and display a list of all networks and keys in a convenient table format. This is convenient if you need to recover passwords for dozens of different access points at once.

However, using third-party software carries certain risks. Antivirus programs may detect such programs as hacker tools (RiskWare), and downloading software from untrusted sites can lead to system infection. Furthermore, such programs often require administrator privileges to run.

Another method is to view the configuration files on Android devices with root rights, file wpa_supplicant.conf, but on laptops, it's only applicable if you have a dual boot or emulators. For the average Windows user, the OS's built-in functionality remains the most secure.

  • 🛡️ Download utilities only from the developers' official websites to avoid viruses.
  • 📂 Many programs allow you to export a list of passwords to a text file for saving.
  • ⚙️ Before starting the scan, close your browser and other important applications to avoid conflicts.

What to do if none of the methods helped

Sometimes, a computer won't display the password due to a system failure, and access to the router is blocked by a previously changed administrator password. In this case, a radical but effective solution remains: resetting the router to factory settings. This will erase all current configurations, including the network name and the new password.

There is a recessed button on the router body. ResetPress it with a thin object (like a paperclip) and hold it for about 10-15 seconds until the indicators flash simultaneously. After rebooting, the device will have the factory login and password (indicated on the sticker), and you can set a new combination of characters through the web interface.

☑️ Checklist before resetting your router

Completed: 0 / 4

⚠️ Warning: Resetting your router will completely erase your ISP settings. If you don't know your connection type (PPPoE, L2TP, Static IP) and your internet login/password, you cannot reset it—you will be left without network access until a specialist arrives.

FAQ: Frequently Asked Questions

Is it possible to find out the Wi-Fi password if the laptop is not connected to it?

No, if the laptop has never connected to this network, the security key information is not stored in its memory. In this case, the only solution is to know the password, find a password on the router, or access another device that is already connected.

Where can I find my Windows 11 password if the old menus are gone?

In Windows 11, the path has changed: Settings -> Network & Internet -> Wi-Fi -> Manage known networks. Select the desired network and click the "View" button next to the security key field.

Why does the command line say "Network not found in profile"?

You most likely misspelled the network name (SSID). The name is case-sensitive and space-sensitive. Use the command netsh wlan show profiles again to copy the name exactly, or enclose it in quotation marks.

Is it safe to store passwords in your browser?

Modern browsers encrypt stored data, but for maximum security, it is recommended to use specialized password managers with a master password rather than relying solely on your browser or operating system.