It's quite common to need to connect a new device to a wireless network but have completely forgotten the Wi-Fi password. Fortunately, modern laptop operating systems store access keys to previously connected networks in their encrypted databases. This makes it easy to extract the necessary password if you have physical access to a computer that is already successfully connected to the router or has previously connected to it.
There are several proven methods for obtaining this data, ranging from the standard Windows graphical interface to the command line or the router's settings. The specific method you choose depends on your operating system version, account access rights, and technical expertise. In this article, we'll cover all the current options for Windows 10, Windows 11, and macOS.
It's important to understand that password recovery is only possible if the laptop has ever connected to this network and saved the connection profile. If the device has never connected to the router, the key can only be retrieved through the router's web interface or by contacting the ISP. Let's look at step-by-step procedures for various scenarios.
Using the Windows 10 and 11 GUI
The easiest and most secure way to view a saved password is to use the operating system's default settings. In Windows 10 and 11, this process has become even more intuitive, especially with the latest updates. You won't need to enter complex commands if you simply want to know the key for the network your laptop is currently connected to.
To get started, open the Start menu and go to "Settings" by selecting the gear icon. Then, navigate to "Network & Internet" and select "Wi-Fi." Here, look for a link labeled "Change adapter settings" or "Advanced network settings," depending on your OS version. In the "Network Connections" window that opens, find the icon for your wireless connection, right-click it, and select "Status."
In the dialog box that appears, click "Wireless Network Properties." Go to the "Security" tab. The characters you need are hidden here, in the "Network Security Key" field. By default, they appear as dots or asterisks. To see them, check the "Show entered characters" box.
- 📡 Right-click the Wi-Fi icon in the system tray and select "Open Network & Internet settings".
- 📡 Go to "Advanced network settings" -> "Advanced adapter settings".
- 📡 Double-click on your Wi-Fi connection -> "Wireless network properties" button.
- 📡 Tab "Security" -> check "Show entered characters".
Please note that you may need administrator privileges to perform these actions. If the system prompts you for confirmation via UAC (User Account Control), click "Yes." Also, keep in mind that on corporate networks, access to the "Security" tab may be blocked by the system administrator for organizational security purposes.
Finding a password via the CMD command line
If the graphical interface isn't working correctly or you prefer using console commands, Windows provides a powerful tool: the command line. This method is universal and works on almost all versions of Windows, starting with XP. It allows you to not only view the password for the current network but also find the keys for all networks the laptop has ever connected to.
To launch the command prompt with administrator rights, click Win + X and select "Windows PowerShell (Admin)" or "Command Prompt (Admin)". First, we need to find out the exact name of the network profile if you don't remember it. Enter the command netsh wlan show profilesThe system will display a list of all saved profiles. Find your network name in the list.
Once the name is found, use the following command to display the details, including the password: netsh wlan show profile name="Network_Name" key=clearReplace "Network_Name" with the actual name of your Wi-Fi network. If the name contains spaces, be sure to enclose it in quotation marks. In the command output, find the "Security Settings" section and the "Key Contents" line.
netsh wlan show profile name="Home_WiFi" key=clear
This method is especially useful when you need to quickly copy a password or when the graphical interface is frozen. The command line accesses the system registry and WLAN services directly, bypassing visual shells. However, be careful when entering commands: a single typo can lead to an error or, in rare cases, changes to system settings.
⚠️ Warning: The command prompt requires administrator privileges. If you enter the command without running the console as an administrator, the system will return an access error and will not display the security key.
Command line interfaces may vary slightly in different Windows locales. If a command doesn't work, check the spelling of the parameters. In the English version of the system, parameters may be named differently, for example, "Key Content" instead of "Key Content."
View saved networks in Windows 11
Windows 11 introduced significant changes to the design and structure of the Settings menu, which may confuse users accustomed to the classic interface. Microsoft is gradually moving Wi-Fi management functions to the new Settings app, making the process more mobile and touchscreen-friendly. Finding your password is now even faster than in previous versions.
Open "Settings" (keys Win + I) and go to the "Network & Internet" section. Select "Wi-Fi," then click "Manage known networks." You'll see a list of all profiles your laptop remembers. Click the desired network. Unlike Windows 10, there may not be a direct "Show password" button in this menu, but it's often available by clicking the "Properties" button or via the "Share" button if QR code is enabled.
However, if there's no direct button, Windows 11 still relies on the classic properties window, which can be accessed through the Control Panel. Search for "Control Panel" in the Start menu, open it, then go to "Network and Internet" -> "Network and Sharing Center." The process is then the same as in Windows 10: click the network name -> "Wireless Network Properties" -> "Security" tab.
- 🔑 Click
Win + Ito quickly enter the settings. - 🔑 Go to "Network & Internet" -> "Wi-Fi".
- 🔑 Select "Manage known networks" to view the list.
- 🔑 Use the Control Panel search to access classic properties.
It's important to note that functionality may change in some Windows 11 builds (especially the Insider Preview). Microsoft is actively testing new authentication and key management methods, including biometric or PIN sign-in for viewing passwords. If the standard methods don't work, check for system updates.
⚠️ Note: The functionality of the Settings menu in Windows 11 is constantly being updated. The location of the buttons and the availability of the view password option may vary depending on the update version (21H2, 22H2, 23H2, and later).
Windows 11 users can also use PowerShell with more modern modules, but the classic netsh remains the most reliable tool, guaranteeing results on any version of Windows.
How to find the password on a MacBook (macOS)
Apple laptop owners also don't need to worry about lost passwords. macOS stores all access keys in the secure iCloud Keychain. This is a centralized database that encrypts website passwords, credit cards, and Wi-Fi keys. Access to it is protected by a user account password or Touch ID.
To find your password, open the Keychain Access app. The easiest way to do this is through Spotlight search (click Cmd + Space and type "Keychain Access." In the window that opens, select the "Passwords" category from the list on the left. Find the name of your wireless network in the list. You can also use the search in the upper-right corner of the window.
Double-click the found network name. A properties window will open. Check the "Show password" box. The system will immediately ask for confirmation: you'll need to enter your MacBook's password (administrator login) or place your finger on the fingerprint scanner. After successful authentication, the text password will appear in the field next to the checkbox.
In newer versions of macOS (Ventura, Sonoma, and later), the process has become even easier. Open "System Preferences" and go to the "Wi-Fi" section. At the bottom of the list of networks, find the "Advanced" button or simply find the desired network in the list of known networks. Next to the network name, you may see an information icon (i) or a "Copy Password" button. Clicking this will copy the key to your clipboard or display it in a text field.
- 🍏 Open Keychain Access via Spotlight.
- 🍏 Find the name of your Wi-Fi network in the "Passwords" list.
- 🍏 Double click -> checkbox "Show password".
- 🍏 Enter your Mac password to confirm.
Using Keychain is an Apple security standard. If you forget the password for your MacBook itself, you won't be able to recover your Wi-Fi passwords using this method without resetting the system. Therefore, always keep your master password in a safe place.
Viewing the password through the router's web interface
If none of your computers remember the password (for example, you reset all your devices), your only option is to access the router's settings. To do this, your laptop must be connected to the router, even if it doesn't have internet access (local). If Wi-Fi isn't working, connect the laptop to the router via a LAN cable.
Open any browser and enter the router's IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1The exact address is indicated on a sticker on the bottom of the device. You will be asked to enter your username and password to access the admin panel. The default information is also on the sticker (often admin/admin), unless you've changed it.
After logging into the interface, find the section responsible for your wireless network. It may be called "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Within this section, look for the "Security" or "Wi-Fi Settings" subsection. There you'll find a "Password" (Pre-Shared Key, WPA Key) field. It's often hidden behind asterisks, but there's a "Show" button next to it, or you can simply copy the value.
| Router brand | Standard IP | Settings section | Standard login/password |
|---|---|---|---|
| TP-Link | 192.168.0.1 | Wireless -> Wireless Security | admin / admin |
| ASUS | 192.168.1.1 | Wireless Network -> General | admin / admin |
| D-Link | 192.168.0.1 | Wi-Fi -> Security Settings | admin / (empty) |
| Xiaomi | 192.168.31.1 | Wi-Fi settings | admin / (password from sticker) |
Router interfaces may vary depending on the firmware version. If you can't find the field you need, look in the "System Tools" or "Administration" section; the password is sometimes duplicated there. Modern routers also often have mobile apps that make viewing and changing your Wi-Fi password even more convenient than using a browser.
⚠️ Please note: If you change the password in your router settings, all connected devices will lose internet access. You will need to reconnect each device using the new key.
☑️ Check before logging into the router
Using third-party software and PowerShell
For advanced users, there are more flexible tools. PowerShell in Windows provides cmdlets. NetConnection, but to work with Wi-Fi profiles it often uses the same commands netsh, just in a more powerful shell. However, there are scripts that can dump all passwords into a text file in one fell swoop.
There are also specialized utilities, such as WirelessKeyView from NirSoft. This program scans the Windows registry and displays a list of all saved networks and their keys in a convenient format. It doesn't require installation (it's a portable version), but antivirus software may detect it as a hacking tool, as it's designed to extract saved passwords.
Using such programs is justified if you need to quickly collect passwords from multiple computers or if standard Windows methods fail. However, such programs should only be downloaded from the developers' official websites to avoid infecting your system with malware. In the context of our topic, this is a last resort, but it is worth considering.
In PowerShell, you can use a command to export a profile to XML, where the password will be in cleartext (but encrypted for the current user). The command looks like this: netsh wlan export profile name="Name" folder="c:\temp" key=clear. Then, by opening the resulting XML file, you can find the tag keyMaterial, where the password will be located.
netsh wlan export profile name="MyHomeWiFi" folder="C:\" key=clear
This method is good for automation. The script can create XML files for all profiles, and the parser can extract the data from them. But for a one-off task, it's easier to use the graphical interface or the show profile command.
Common problems and their solutions
The process doesn't always go smoothly. Sometimes users encounter a grayed-out "Security" tab, or the system displays an "Access Denied" message. This may be due to Group Policy permissions, especially on work laptops. In such cases, bypassing restrictions legally within the OS is virtually impossible without domain administrator rights.
Another problem is a corrupted network profile. Windows may "forget" the password but continue to try to connect, creating a conflict. In this case, deleting the profile helps. In the command line, use the following command: netsh wlan delete profile name="Network_Name"After this, reconnect by entering the password (if you wrote it down somewhere) or resetting the router.
The WPS function is also worth mentioning. If your router has a WPS button and it's enabled, you can connect a new device without entering a password by simply pressing the button on the router and selecting WPS on your laptop. However, this method won't reveal the password itself; it will only provide access. Furthermore, WPS is considered a vulnerable protocol and is recommended to be disabled.
- 🛠 Access Error: Run CMD as administrator.
- 🛠 Profile not found: Check the exact network name with the show profiles command.
- 🛠 Gray security tab: Check user rights or group policies.
- 🛠 Router not responding: Try resetting TCP/IP with the command
netsh int ip reset.
If all else fails, the only option is to physically reset the router using the Reset button. However, this is a last resort, as you'll have to reconfigure your entire internet connection (PPPoE, static IP, etc.) if you don't know your provider's settings.
Questions and Answers (FAQ)
Is it possible to find out the Wi-Fi password if the laptop has never connected to this network?
No, the operating system doesn't store passwords for networks the device hasn't connected to. In this case, the only help is the sticker on the router, knowledge of the password for another connected device, or access to the router's web interface (if it hasn't been changed).
Is it safe to use programs like WirelessKeyView?
Programs from reputable developers (like NirSoft) are safe if downloaded from the official website. However, antivirus programs often label them as "HackTool" or "RiskWare" because they extract passwords. Use them only on trusted computers.
What should I do if I forgot my router admin panel password?
If the default (admin/admin) password isn't working, and you've changed it and forgotten, the only solution is to reset the router to factory settings using the Reset button (press and hold for 10-15 seconds while the power is on). After that, you'll need to configure the router again.
Where are Wi-Fi passwords stored in Windows 11?
Passwords are stored in a protected section of the Windows registry and in WLAN system configuration files. Only the system and users with administrator rights can access them. Direct reading of these files is impossible without specialized tools due to encryption.
Is it possible to see the password via phone (Android/iOS)?
On modern versions of Android (10+) and iOS (16+), you can view the password for the network your phone is connected to. On Android, this is often a QR code with the password text; on iPhone, it's the "Password" field in Wi-Fi settings, accessible via FaceID/TouchID.