Where Windows stores your WiFi password

Windows 10 keeps the password for any network you have connected to before, even if you do not remember typing it in. You can retrieve it through the network settings menu or the command line. The password is stored locally on your computer, so you can only see passwords for networks your device has actually joined — not networks nearby that you have never used.

This is useful when you need to connect a new device to your home network, or when you have forgotten a password you set months ago. Windows does not show the password in plain text by default, but the steps below will reveal it.

Key Takeaways

  • You can view saved WiFi passwords through Settings > Network & Internet > WiFi > Manage Known Networks, then select the network and choose "Manage."
  • The easiest method for most people is the Settings route, which shows the password in a readable form after you click "Show."
  • If Settings does not work, you can use the Command Prompt to retrieve the password by running a specific command that displays network details.
  • You can only see passwords for networks your computer has previously connected to, not for networks you have never joined.

Retrieving your password through Settings

Open Settings by pressing the Windows key and typing "Settings," then select the Settings app. Navigate to Network & Internet, then click WiFi in the left sidebar. Scroll down and select "Manage Known Networks." You will see a list of every network your computer has connected to before.

Find the network whose password you need and click it. A new window will open. Click "Manage" at the top. In the Security section, you will see the network name and a field labeled "Network Security Key." The password is hidden by default, shown as dots or asterisks. Click the "Show" checkbox next to it, and Windows will display the actual password in plain text.

Using Command Prompt if Settings does not show the password

If the Settings method does not work or the password field appears blank, you can use Command Prompt instead. Right-click the Start button and select "Windows Terminal (Admin)" or "Command Prompt (Admin)." If you see a User Account Control prompt, click "Yes" to allow the program to run.

In the Command Prompt window, type the following command exactly, replacing "NetworkName" with the actual name of your WiFi network:

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

Press Enter. The command will display detailed information about that network. Look for the line labeled "Key Content" — the password appears there in plain text. If you see "Key Content : " with nothing after it, the network was set up without a password, or Windows did not store it.

What to do if no password appears

If you follow these steps and see no password, it usually means one of three things. First, you may have typed the network name incorrectly in the Command Prompt. Check the exact spelling and capitalization, including spaces and special characters. Second, your computer may never have successfully connected to that network before — Windows only stores passwords for networks it has joined. Third, the network may not have a password at all, which is common for public WiFi.

If you need the password for a network you own, you can reset it by logging into your router's admin panel. This typically requires you to open a web browser, type your router's IP address (usually 192.168.1.1 or 192.168.0.1), and log in with the router's username and password. From there you can change the WiFi password to something you will remember.

Viewing passwords for networks you no longer use

Windows keeps passwords for networks even after you move or stop using them. If you see a network in your "Manage Known Networks" list that you no longer connect to, you can remove it. Click the network name, then click "Forget." This deletes the saved password and network details from your computer. The next time you want to connect to that network, you will need to enter the password again.

Removing old networks does not affect your ability to see passwords for networks you still use. It simply cleans up your list and can be useful if you have connected to many networks over time.

Why Windows stores these passwords and who can see them

Windows saves WiFi passwords so you do not have to re-enter them every time you reconnect to a network. This is convenient for your home network or office network that your computer joins regularly. However, it also means that anyone with access to your computer can potentially view these passwords using the same steps described above.

If you share your computer with others and want to keep your WiFi password private, you should password-protect your Windows user account. This prevents other users from logging in and accessing your saved network information. Additionally, if you use a public computer, you should always forget the network before leaving to prevent others from viewing your password later.

Frequently Asked Questions

Can I see passwords for networks I have never connected to?

No. Windows only stores passwords for networks your computer has actually joined before. You cannot view the password for a neighbor's network or a public WiFi you have never used, even if it appears in your available networks list.

Will viewing my password this way change it or affect my network?

No. Simply viewing the password through Settings or Command Prompt does not change anything on your router or network. It only retrieves the password your computer already has stored locally.

What if I see the network name but the password field is completely empty?

This usually means the network does not have a password protection enabled. Some public WiFi networks and guest networks operate without passwords. If this is your own network and you want to add password protection, you will need to log into your router settings and enable WiFi security.

Is it safe to use Command Prompt to view passwords?

Yes, Command Prompt is a standard Windows tool. However, you need administrator access to run the command, which is a security measure. Anyone with admin access to your computer can view your saved passwords, so keeping your Windows account password strong is important if you share the device.

Can I view passwords for networks on other computers?

No. Each computer stores its own set of saved network passwords. You can only view passwords on the specific Windows 10 device you are using. If you need a password on a different computer, you will need to use that computer's Settings or Command Prompt.