Needing to connect a new device to a wireless network but losing or forgetting the password is a common occurrence. Fortunately, the Windows operating system stores the security keys of every network you've ever connected to. This allows you to regain access without having to reset your router or find your ISP contract. In this article, we'll take a detailed look at how to find your WiFi password on a PC using the system's built-in tools.
There are several proven methods, ranging from simple browsing in a graphical interface to using the command line for advanced users. Each method has its own specific features and is suitable for different operating system versions. The key is to have physical access to a computer that is already connected to the desired network or has been connected previously.
Before you begin, it's worth noting that some operations may require administrator privileges. This is a standard security measure to prevent unauthorized access to critical system data. If you own the device, you shouldn't have any access issues.
Viewing a password through the Windows graphical interface
The simplest and most obvious way to find the saved key is to use the default network settings. This method doesn't require any special commands and is suitable for most users. However, it only works if your computer is currently connected to an access point.
First, you need to open the wireless connection properties window. In modern versions of Windows 10 and 11, the path may be slightly different, but the logic remains the same. Find the active connection and go to its detailed information.
In the window that opens, look for the security tab. This is where the access code you're looking for is hidden, represented by dots or asterisks. To view it in plain text, simply check the corresponding box.
Follow this algorithm of actions:
- 📡 Right-click on the WiFi icon in the tray (near the clock) and select
Network and Internet settings. - 🔗 Go to the section
Configuring adapter settingsor selectAdditional network settingsdepending on the OS version. - 🖱️ Find your wireless connection, right-click on it and select
State. - 🔑 In the window that opens, click the button
Wireless network properties, then go to the tabSecurity.
After completing these steps, you will see the "Network Security Key" field. Check the box. Show entered characters, and the hidden characters will turn into readable text. Write it down or copy it for later use.
⚠️ Attention: If the "Security" tab is missing or the button is grayed out, you may not have administrator rights or the network driver is not working properly. Try running Device Manager as an administrator.
Using the command line to recover the key
If the graphical interface is unavailable for some reason or you prefer to work with the console, the command line is a great tool. This method allows you to find out the password not only for the current network, but also for any other network the computer has connected to in the past. This is especially useful if you want to restore access on a new device while the primary one is still disconnected.
To work we will need a utility netsh, which is a standard Windows component. It allows you to manage network settings, including wireless network profiles. Commands are entered quickly and produce accurate results.
First, you need to open the command prompt with administrator rights. Click Win + X and select the appropriate item from the menu, or search for "cmd," right-click, and select "Run as administrator." Without elevated privileges, the system won't allow you to view saved keys.
The first step is to list all saved profiles:
netsh wlan show profiles
Find the desired network name (SSID) in the list. Next, use the command to display the details of a specific profile by adding the parameter key=clear, which just shows the key in clear text:
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the line "Key Content." This is where the password will be stored. Note that the network name in the command must be enclosed in quotation marks if it contains spaces.
☑️ Check before entering commands
Viewing the password through the router settings
Another reliable method is to check the router's settings. This method is universal and works even if your computer isn't currently connected to WiFi, but has access to the router via cable or you know the gateway address. The default password is often listed on a sticker on the bottom of the device, but if it's been changed, you can view it in the web interface.
To access the control panel, you need to know the router's IP address. Most often, this is 192.168.0.1 or 192.168.1.1Enter this address into the address bar of any browser. If you haven't changed your login information, the username and password are often the default (admin/admin), but may vary depending on the model.
Once in the menu, look for the section related to wireless networking. It may be called Wireless, WiFi Settings or WLAN. Within this section there is a security subsection (Security), where the current encryption key is displayed.
Major router manufacturers have the following menu structure:
- 📶 TP-Link: menu Wireless → Wireless Security → Password field.
- 🌐 Asus: Advanced Settings menu → Wireless → General tab → WPA Pre-Shared Key field.
- 📡 D-Link: Setup menu → Wireless Settings → Manual Network Name → Pre-Shared Key field.
If a field is masked (dots), there's often a "Show" button next to it that reveals the code. Some older router models may require you to uncheck the "Hide Key" box.
⚠️ Attention: Changing the password in your router settings will disconnect all connected devices. You'll have to reconnect each device with the new password.
What to do if you forgot your router password?
If you've changed your router's admin password and forgotten it, your only option is to reset the device to factory settings. To do this, locate the Reset button (usually recessed into the router's housing) and press it with a paperclip for 10-15 seconds while the router is turned on. After this, the router will reset to the default login and password listed on the sticker, but you'll have to reset your internet settings.
Comparison of access recovery methods
Each of the methods discussed has its own advantages and disadvantages. The choice of a specific method depends on your situation: whether you are currently connected to the network, whether you have access to the router settings, and how comfortable you are with the command line.
Below is a table to help you quickly navigate and select the best option for your situation. It takes into account complexity, prerequisites, and applicability to different scenarios.
| Method | Necessary conditions | Complexity | Applicability |
|---|---|---|---|
| Graphical interface | Active network connection | Low | Current network only |
| Command Prompt (CMD) | Administrator rights | Average | Any saved network |
| Router settings | Access to the web interface | Average | Any network of this router |
| Third-party software | Installing programs | Low | All profiles at once |
As the table shows, the command line is the most flexible tool for creating profiles. However, for a one-off situation, it's easier to use the standard network properties window.
Using third-party utilities
For those who don't want to fiddle with the console or search through menus, there are specialized programs. They automatically scan the system, find all saved WiFi profiles, and display passwords in a convenient format. Such utilities are often used by system administrators for quick diagnostics.
One of the most popular and secure programs is WirelessKeyView from NirSoft. It requires no installation (portable), is free for personal use, and displays keys in both HEX and ASCII formats. The program runs on all versions of Windows, starting with XP.
Another option is - WiFi Password RevealerThe interface here is even simpler: upon launch, you immediately see a list of networks and their passwords. However, be careful when downloading such programs: always use the official developer's website to avoid infecting your computer with viruses.
Benefits of using the software:
- ⚡ Instant access to all passwords with one click.
- 💾 Ability to export the list to a text file or HTML.
- 🔍 Display additional information: encryption type, profile creation date.
Despite their convenience, using third-party software always carries certain risks. Antivirus software may detect such programs as "hacker tools" (RiskWare), so you may need to add the file to the exclusion list before running it.
Restoring access on mobile devices
A common question arises: how to find out the password if you don't have a PC at hand but have an Android smartphone. In modern versions of Android (starting with 10), this feature is built into the system. If your phone is connected to the network or has been connected previously, you can see the password and scan the QR code to connect another device.
The process is as follows: go to Settings → WiFi (or "Network & Internet"). Click the gear next to the network name or the network itself. Select "Share" or "QR code." The password itself is often written in small print beneath the graphic code.
On Apple devices (iOS), the situation is similar, but with limitations. Starting with iOS 16, Apple allowed users to see passwords for saved networks. To do this, go to Settings → Wi-Fi, tap the blue "i" icon next to the network, and tap the hidden "Password" field. The system will ask for Face ID or Touch ID to verify your identity.
It's important to understand that on older versions of Android (prior to 10), it was impossible to view the password using standard tools without root access. In such cases, specialized apps requiring deep system access were required, which could void the warranty.
⚠️ Attention: Mobile OS interfaces are constantly updated. The layout of menu items may vary depending on the manufacturer's interface (MIUI, OneUI, ColorOS). If you can't find the item you need, use the settings search.
Frequently Asked Questions (FAQ)
Is it possible to find out a WiFi password if the computer has never connected to this network?
No, that's impossible. The computer only stores the keys that have been entered previously. If the device has no record of the network, it can't know the password. The only option is to ask the router owner for it or look on a sticker on the device itself if the password is default.
Is it safe to save passwords in Windows?
Yes, Windows stores them encrypted in system files. Only users with administrative rights and the operating system itself can access them for automatic connection. However, if unauthorized users with administrative rights are using the computer, they can use the methods described in this article.
What should I do if the netsh command returns the error "Network out of range"?
This error means you're trying to view the password for a network profile in the system, but the command itself isn't executed correctly or the network name is misspelled. Make sure you're entering the network name (SSID) exactly as it appears in the list, including capitalization and spaces.
Is it possible to recover the guest network password?
Guest networks often have limited functionality and may not store passwords in Windows profiles the same way as regular networks, especially if web authentication (captive portal) is used. In such cases, the password is usually posted on a sign at the establishment or generated dynamically.
Will deleting a network profile reset the password?
Yes, if you select the "Forget network" option in WiFi settings, Windows will delete the saved profile along with its password. The next time you connect, the system will prompt you to enter the security key again.