Many users are familiar with the situation of needing to connect a new device to the home network or getting a laptop back into working order after a system reinstallation, but the password has been lost. Security key — This isn't just a set of characters, but the primary barrier protecting your traffic from prying eyes. This code is often forgotten immediately after setting up the equipment for the first time, and finding it in your memory can be extremely difficult.
Fortunately, operating systems and network equipment store this data in hidden configuration sections. You don't need to be a network engineer to extract the necessary information. Windows, macOS The routers themselves also store copies of credentials for automatic connection, and they can be accessed using standard interface tools.
In this article, we'll cover all possible scenarios: from viewing a saved password on an already connected computer to physically searching for a sticker on the router's body. The factory password indicated on the sticker is only valid if you have never changed the router's security settings yourself. If you changed the data during the initial installation, you need to look for it in the software part of the devices.
Find the key on the router body and in the documentation
The simplest and most obvious way, which is often forgotten in a panic, is a physical inspection of the equipment. Manufacturers TP-Link, Asus, Keenetic Others place the factory data on a special sticker located on the bottom or back of the device. There you'll find the SSID (network name) and the default PIN or password.
However, this method only works if you've never changed the default security settings. If the setup wizard prompted you to create a new password during initial installation and you accepted it, the information on the sticker will become invalid. In this case, you'll need access to the admin panel or the connected device.
⚠️ Important: If you plan to reset your router to factory settings (Reset button) to restore the password from the sticker, please remember that this will completely erase your ISP settings. You will need to re-enter the username and password provided by your service provider to access the internet.
It's also worth checking the documentation that came with your router. Sometimes, especially in corporate settings or when ordering services from a provider, technicians record individual access details on a separate sheet of paper or in the warranty card. Check any folders of papers that are usually left unused.
How to find the security key in Windows 10 and 11
If you already have a computer running Windows connected to your Wi-Fi network, WindowsThe operating system stores the password in plaintext in its settings. This is the fastest way to restore access without accessing the router settings. You will need administrator rights and desktop access.
To obtain data through the graphical interface, you need to go to Settings → Network & Internet → Advanced network settingsIn the window that opens, find the "Network and Sharing Center" link, or simply click the Wi-Fi icon in the system tray and select "Properties." In the wireless network status window, click "Wireless Network Properties," go to the "Security" tab, and check "Show characters as you type."
☑️ Checking access in Windows
An alternative and more advanced method is to use the command prompt. This method is convenient because it allows you to see passwords for all networks the computer has ever connected to, not just the current one. Open the command prompt as administrator and enter the following command to list profiles: netsh wlan show profiles.
Find your network name in the list. Then enter the command to display details for a specific profile, adding the keyword key=clear to the end of the line. This will force the hidden security key to be displayed in the "Key Contents" field.
netsh wlan show profile name="Your_Network_Name" key=clear
Please note that if you are using a corporate laptop, your system administrator may have blocked the ability to view keys or use the command line. At home, such restrictions are extremely rare.
Password recovery on macOS and iOS
Equipment owners Apple have a unique advantage thanks to the iCloud Keychain ecosystem. If you've ever connected to the internet on a Mac or iPhone and key syncing is enabled, the password is automatically saved in the system's secure storage. In the latest versions macOS Ventura and the new process has become even simpler.
On your Mac, open System Preferences (or System Preferences), then go to the Wi-Fi section. Find the desired network in the list and click the information icon or the three dots next to its name. The menu that appears will contain a password field. When you click the hidden characters, the system will ask you to confirm the action using Touch ID or your user account password.
For iOS devices (iPhone, iPad) with system version 16 and higher, the algorithm is similar. Go to Settings → Wi-Fi, tap the blue "i" icon to the right of the network name. Tap the line of dots in the "Password" field. After successful biometric authentication (Face ID or Touch ID), the password will be displayed in text format and can be copied.
If you have older operating systems, your security keys are stored in iCloud Keychain. On your Mac, open the Keychain app using Spotlight. Select "System" or "iCloud" from the list on the left, then search for your network name. Double-clicking the item will open the properties window, where you can see the information you're looking for in the "Show password" checkbox.
What should I do if my iPhone doesn't show my password?
Make sure your device is running iOS 16 or later. On older versions of iOS, viewing saved Wi-Fi passwords through the interface isn't possible, but they may be accessible on a paired Mac via Keychain.
View saved networks on Android
Smartphones based on Android For a long time, passwords were hidden from users, but starting with version 10, this feature became standard. The mechanics of obtaining data may vary slightly depending on the manufacturer's shell (Samsung One UI, Xiaomi MIUI, Stock Android), but the general principle is the same.
Go to Wi-Fi settings and tap the gear icon or the name of your active network. A QR code will appear on the screen to quickly connect guests. A text version of the security key is often displayed underneath this code (or when you tap the "Show password" button). If the text is hidden by asterisks, try tapping the eye icon.
In some cases, the system doesn't display the password in text, but only generates a QR code. In this situation, you'll need a third-party QR code scanning app or a second smartphone with a camera. Point the camera at the code in the Wi-Fi settings, and you'll see a connection bar in the notification or scan history, followed by P: Your password will be indicated.
| Android version | Viewing method | Root is required | Where to look |
|---|---|---|---|
| Android 10+ | QR code / Eye | No | Wi-Fi settings |
| Android 9 and below | Third-party applications | Yes (often) | System files |
| Android 12+ | Direct text | No | Network menu |
| Any (with Root) | Text file | Yes | /data/misc/wifi |
If you have superuser rights (Root), then the absolute truth is stored in the system file /data/misc/wifi/wpa_supplicant.confBy opening this file with any text editor as root, you'll see a list of all networks and passwords in plain text. However, for the average user, gaining root access just to obtain a password is excessive and risky.
Login to the router admin panel to change the password
If none of your devices are connected to the network, or you want to know the password for a guest without showing them the phone screen, you can still access the router settings directly. To do this, you'll need the default gateway address and the web interface login credentials.
Open your browser and enter your router's 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 indicated on the same sticker on the bottom of the device as the factory Wi-Fi password. After entering the address, the system will prompt you for the administrator login and password.
⚠️ Important: The username and password for the web interface (admin panel) and the Wi-Fi password are different. They are often the same by default (e.g., admin/admin), but for security reasons, it is recommended to distinguish them. If you changed the administrator password and forgot it, you will need to reset the router.
Once inside the interface, look for a section called "Wireless," "Wi-Fi," "Wireless," or "WLAN." Within this section, you'll find a subsection called "Security Settings." The current password is displayed in the "Password," "Key," or "Passphrase" field. You can also change it to something more complex and memorable.
Using the Command Prompt and PowerShell for Profiling
For advanced users who find the graphical interface too slow, PowerShell provides powerful tools for working with network profiles. This is especially useful for system administrators who need to quickly extract keys from multiple machines.
PowerShell commands are syntactically similar to CMD commands, but offer greater flexibility. You can not only display the password on the screen, but also export the network configuration to an XML file, which can then be imported to another computer. This creates a ready-made connection profile without having to manually enter characters.
To perform these operations, you'll need to launch the terminal as administrator. The basic query syntax is as follows:
netsh wlan show profile name="HomeNetwork" key=clear
Look for the "Key Content" line in the command output. If a message about missing permissions or a missing profile appears instead of the key content, it means the computer has never connected to this network, or your account does not have sufficient permissions to view protected system data.
Is it possible to recover a password from someone else's computer?
Technically, if you have physical access to the computer and administrator rights, you can retrieve saved passwords. However, this violates ethical standards and may be illegal without the device owner's consent.
What to do if your security key is lost forever
There are situations when none of the devices remember the password, the sticker has worn off, and access to the admin panel is blocked by a previously changed administrator password. In this case, the only solution is a full reset of the device to factory settings (hard reset).
There is a recessed button on the router body. Reset or WPS/ResetTo activate recovery mode, press it with a thin object (such as a paperclip or toothpick) and hold it for 10-15 seconds until the indicators blink simultaneously. After rebooting, the router will return to its out-of-the-box state.
After resetting, the Wi-Fi network will work with the factory password (indicated on the sticker), but the internet will not work. You will need to go through the initial setup process again: select the connection type (PPPoE, L2TP, Dynamic IP), enter your provider information, and set new names and passwords for the wireless network.
To avoid similar situations in the future, information security experts recommend using password managers. Programs such as Bitwarden, KeePass or built-in solutions from Google And Apple, securely store complex character combinations and sync them across all your devices.
Is it possible to find out the Wi-Fi password if I'm not connected to the network?
Without a direct connection to the router (via cable or Wi-Fi) or physical access to an already configured device (laptop, phone), it's impossible to discover the password. WPA2/WPA3 encryption protocols are designed specifically to prevent unauthorized guessing or interception of the key.
I changed my router administrator password and forgot it. What should I do?
It's impossible to recover a forgotten administrator password without a factory reset. The only option is to hold down the Reset button for 10-15 seconds. This will restore the factory logins (usually admin/admin), but will require reconfiguring your internet connection.
Where is the Wi-Fi password file stored in Windows?
Passwords are stored in a protected section of the registry and system configuration files in the C:\ProgramData\Microsoft\Wlansvc\Profiles\Profiles folder. Direct reading of these files is impossible without specialized tools, as the data is encrypted with system keys.
Why doesn't the router accept the password from the sticker?
Most likely, the password was changed earlier during setup. The sticker contains only the factory key, which is valid until you change it manually. If you don't remember the new password, the only solution is to reset the router.