It's common to need to connect a new device to a wireless network but forget the access key. Fortunately, if you've previously connected a laptop to this router, the operating system may have saved the necessary data in its storage. This allows you to restore access without resetting the router to factory settings.
There are several proven methods for retrieving a saved key, each depending on the operating system version and user access level. We'll cover the built-in tools available in Windows and macOS, as well as command line options for more advanced scenarios. It is important to understand, that we are talking exclusively about networks to which your device has already been connected before.
Below are detailed steps to help you resolve the issue in minutes. Be careful when entering commands and follow the instructions carefully to avoid errors. Restoring access is possible even without administrator rights in some cases, but full control requires elevated privileges.
Recovering your password in Windows 10 and 11 through Settings
The easiest and safest method for most users is to use the operating system's graphical interface. In modern versions of Windows 10 and 11, this process is extremely simplified, although the paths to the necessary settings may differ slightly. You will need system access with permissions to view network properties.
To get started, open the Start menu and go to the "Settings" section, indicated by a gear icon. Next, select the "Network and Internet" category, which displays all active connections. Look for the "Network and Sharing Center" link or the "Advanced network settings" option, depending on your interface version.
In the window that opens, click the name of your current Wi-Fi connection (the blue link). A status dialog box will appear, where you should select "Wireless Network Properties." Go to the "Security" tab and check the box next to "Show characters as you type." The system will display the saved key in clear text.
It's worth noting that the Settings interface has been significantly redesigned in Windows 11. The path now looks like "Settings" → "Network & Internet" → "Advanced network settings" → "Advanced sharing settings." Profile and saved data management options are also found here.
Sometimes it's useful to know the differences between encryption types, as the security of your network depends on them. Below is a table of the main security standards:
| Security type | Description | Recommendation |
|---|---|---|
| WEP | Outdated standard, easily hacked | Do not use |
| WPA/WPA2 | Standard level of protection for home | Recommended |
| WPA3 | The latest standard of enhanced safety | Optimal for new routers |
| Without protection | Data is transmitted in clear text. | It is strictly prohibited |
Using the CMD command line in Windows
For those who prefer to work with the console or can't find the necessary menu items, there's a powerful tool: the command line. This method is universal and works on all versions of Windows, starting with XP. It allows you to not only view the password for the current network but also display a list of all saved profiles.
Launch the Command Prompt as administrator. To do this, right-click the Start menu and select the appropriate option, or type cmd in the search bar, then click "Run as administrator." In the window that opens, enter the command to view all saved profiles:
netsh wlan show profiles
The system will display a list of all networks the laptop has ever connected to. Find the required name (SSID) in the list. To find the password for a specific network, use the following syntax, replacing "Network_Name" with the actual name of your router:
netsh wlan show profile name="Network_Name" key=clear
In the command results, scroll down to the "Security Settings" section. The "Key Contents" line (Key Content) will contain the desired password in cleartext. This method is especially convenient if you need to quickly copy data or if the graphical interface is not working correctly.
What to do if the command fails?
If you see an access denied message, make sure the command prompt is running as an administrator. Without elevated privileges, the system will not allow the contents of security keys to be disclosed.
Using the command line provides more detailed information about connection parameters, including encryption type and radio mode. This can be useful when diagnosing connection issues and ensuring that the laptop and router are using compatible protocols.
Viewing saved networks on macOS
Laptop owners MacBook And MacBook Pro They can also easily restore access to a forgotten network. The macOS operating system stores all passwords in a secure vault called Keychain Access. This method is relevant for all modern versions, including Monterey, Ventura And Sonoma.
Open the Keychain app. The easiest way to do this is through Spotlight search (press Cmd + Space and enter the program name). In the left panel, select the "System" or "iCloud" category, then find the name of your Wi-Fi network in the list. It may appear as an entry type of "AirPort network password."
Double-click the found entry. In the window that opens, check the "Show password" box. The system will ask you to verify your identity: you'll need to enter your macOS user account password or use Touch ID. After successful authentication, a text access key will appear in the field.
- 🍏 Make sure you're looking for the network in the system keychain, not the user keychain if the network was saved for everyone.
- 🔐 To access, you will need the password for your Apple ID or local administrator account.
- 📡 If the network is not displayed, check if your laptop is connected to the internet via cable or another network for iCloud syncing.
☑️ Checking access on macOS
It's a secure tool that also stores passwords for websites and apps, so it should be used with caution.
Checking via the router's web interface
If your laptop is connected to a router (via Wi-Fi or cable), you can find the password by accessing the device's settings. This method is universal and doesn't depend on the operating system. You'll need the default gateway address and your admin panel login information.
Open your browser and enter your router's IP address into the address bar. Most often, this is 192.168.0.1 or 192.168.1.1The exact address can be found through the command line (command ipconfig for Windows or ifconfig for macOS), by looking at the "Default Gateway" value.
Enter your username and password to log in. If you haven't changed them, they'll be on the sticker on the bottom of the router. Standard combinations are often admin/admin or admin/passwordAfter logging in, find the "Wireless" or "Wi-Fi" section. The current password will be displayed in the "Security" or "WLAN Settings" subsections.
⚠️ Attention: Changing settings in the web interface may result in connection interruption. Be careful when changing encryption type or channel to avoid losing network access.
Interfaces from different manufacturers (TP-Link, Asus, Zyxel, Keenetic) look different, but the menu structure is generally similar. Look for tabs labeled "Wireless Security" or "WLAN Settings." You can also change the password here if the current one isn't secure enough.
Access recovery apps for Android and iOS
Although this article is focused on laptops, there's often a need to transfer passwords from a phone. On Android devices with root (superuser) privileges, you can view saved passwords in system files. However, for regular users, there are QR code scanner apps that can read passwords encoded in a QR tag.
iOS (iPhone/iPad) has included a native password viewer since version 16. Go to Settings → Wi-Fi, tap the "i" icon next to the connected network, and tap the hidden dots in the "Password" field. The system will ask for Face ID or Touch ID and display the key.
To transfer a password from an iPhone to a MacBook, simply bring the devices close together. The system will prompt you to transfer the password automatically. This works thanks to technology Airdrop and the Apple ecosystem, making the process as convenient as possible for owners of this brand's technology.
- 📱 On Android 10 and above, you can generate a QR code for connection, which sometimes contains a password in text form or allows you to connect by scanning.
- 🔒 Without root access on Android, it is impossible to view saved passwords in plain text using standard tools for security reasons.
- ☁️ Syncing via your Google or Apple ID account allows you to see passwords on all your devices if the corresponding option is enabled.
Don't rely on third-party apps from untrusted sources that promise to "hack" your Wi-Fi. At best, they're useless; at worst, they contain malicious code. Use only the official recovery methods described above.
Safety measures and expert recommendations
Understanding how easy it is to find out a password if you have physical access to your device should encourage you to strengthen your security. Network security Start with a strong access key. Avoid simple combinations, birth dates, and obvious words.
It's recommended to regularly update your router firmware. Manufacturers patch vulnerabilities that could allow attackers to access your data or learn your password. It's also worth disabling this feature. WPS, as it is often the weak link in wireless network security.
⚠️ Attention: Router interfaces and operating system versions are constantly updated. The location of menu items may change. Always consult the official documentation from your device manufacturer if the default paths don't work.
If you suspect someone has connected to your network, change your password immediately. You can do this through the router's web interface. After changing the password, all devices will be disconnected, and you'll need to re-enter the new key.
Using a guest network is a good practice. Dedicate a separate SSID to guests so they don't have access to your primary devices, such as printers, NAS storage, and smart home devices. This isolates potential threats.
Frequently Asked Questions (FAQ)
Is it possible to find out the Wi-Fi password if the laptop has never connected to this network?
No, it's impossible to use the operating system's built-in tools to find the password for a network to which the device hasn't been connected and for which no data has been saved. You'll need access to the router or the password for another device that's already connected.
Is it safe to use third-party password recovery programs?
Using unknown software carries risks. Many such programs contain viruses or adware. It's better to use built-in Windows (cmd) or macOS (Keychain Access) tools, which are completely safe and don't require installing additional software.
What should I do if I changed the password on my router, but my laptop is still trying to connect with the old one?
You need to "forget" the network on your laptop. In Windows, this is done in Wi-Fi settings (Manage known networks → Forget), and in macOS, by deleting the profile in Keychain Access or Network Preferences. After that, you can enter a new password.
Where can I find the WPS PIN code on my router?
The PIN code is usually located on a sticker on the bottom or back of the router, along with the serial number and default password. It consists of 8 digits. However, as mentioned, it's best to keep the WPS function disabled.
Why does the command line say "Access Denied"?
This means the command prompt is running as a standard user, not an administrator. Right-click the CMD icon and select "Run as administrator" to gain the necessary privileges.