Where Windows stores your WiFi password

Windows keeps the password for every network you have ever connected to, stored in a protected file on your computer. You can retrieve it without resetting your router or calling your internet provider. The password is encrypted while stored, but Windows will show it to you in plain text if you ask the right way.

There are two main routes: using the Settings app (the newer, simpler method) or using the Command Prompt (the older method that still works on every Windows version). Both take less than a minute once you know where to look.

Key Takeaways

  • Windows stores every WiFi password you have ever connected to, and you can view it through Settings or Command Prompt without resetting anything.
  • The Settings app method works on Windows 10 and Windows 11 and is the fastest route for most people.
  • The Command Prompt method works on all Windows versions and shows passwords for networks you are not currently connected to.
  • You must be logged in as an administrator on your computer to see stored passwords.
  • If you cannot remember your admin password, you will need to reset it through your Microsoft account or local account recovery.

Finding your password through Settings (Windows 10 and 11)

Open Settings by pressing the Windows key and typing "Settings", then click the Settings app. Go to Network & Internet on the left side, then select WiFi. Scroll down and click Manage known networks.

Find the network name (SSID) you want the password for in the list and click it. Click Forget, then immediately go back to the same list and click the network name again. Click Connect. A window will pop up asking for the password — but instead of entering it, look for the small eye icon on the right side of the password field and click it. The password will appear in plain text.

This method only works for networks you are currently able to connect to. If the network is not broadcasting or you have moved away from it, use the Command Prompt method instead.

Finding your password through Command Prompt

Right-click the Start button and select Terminal (Admin) on Windows 11, or Command Prompt (Admin) on Windows 10. If you see a prompt asking for permission, click Yes. This confirms you have administrator rights.

Type this command exactly as written and press Enter:

netsh wlan show profile

A list of every network your computer has ever connected to will appear. Find the network name you need. Then type this command, replacing "NetworkName" with the exact name from the list:

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

Look for the line that says Key Content under the "Security settings" section. The text after "Key Content" is your WiFi password. Copy it exactly as it appears, including capital letters and numbers.

What to do if you do not see the password

If the password field shows blank or says "The password field cannot be displayed", your computer does not have permission to show it. This happens when you are not logged in as an administrator. Log out and log back in with an account that has admin rights, then try again.

If you are the only user on the computer and cannot remember your admin password, you can reset it through your Microsoft account. Go to the Windows sign-in screen, click I forgot my password, and follow the recovery steps. If you use a local account instead of a Microsoft account, password recovery is more difficult — you may need to use a password reset disk you created earlier, or contact Microsoft Support for options.

Why you might not find the network in the list

If the network does not appear in either the Settings list or the Command Prompt list, your computer has never connected to it before. Windows only stores passwords for networks it has successfully joined at least once. If someone else set up the network on your computer, or if you connected on a different device, the password will not be stored here.

In that case, you will need to contact the person who set up the network, check any documentation they gave you, or reset the router itself. Most routers have a reset button on the back that will restore the default password, though this will disconnect everyone currently using it.

Keeping your stored passwords secure

Because Windows stores these passwords in an encrypted file, anyone with physical access to your computer and your admin password can view them. If you share your computer with other people, consider creating separate user accounts so each person has their own stored passwords. You can also remove a network from the stored list by going to Settings > Network & Internet > WiFi > Manage known networks, clicking the network, and selecting Forget.

If you suspect someone has accessed your computer without permission, change your WiFi password through your router's admin panel. This will disconnect all devices and force them to reconnect with the new password.

Frequently Asked Questions

Can I see passwords for networks I am not connected to right now?

Yes, using the Command Prompt method. The Settings method only works for networks your computer can currently reach. Command Prompt shows every network your computer has ever connected to, even if you have moved away or the network is no longer broadcasting.

What if the network name has special characters or spaces?

Put the entire network name in quotation marks when you type the Command Prompt command. For example: netsh wlan show profile name="Coffee Shop WiFi" key=clear. Windows will match it exactly as written.

Does viewing the password change anything on my computer or router?

No. Viewing a stored password does not reset it, disconnect you, or notify anyone. It only displays what Windows already has stored. Your router and network are not affected.

Can I see passwords stored on someone else's computer?

Only if you have their admin password and can log in to their account. Windows encrypts stored passwords so they cannot be read without admin access. If you have forgotten your own admin password, you will need to reset it through your Microsoft account or use a password recovery method.

What if I get an error message when I type the Command Prompt command?

Make sure you opened Command Prompt as Administrator (right-click and select "Command Prompt (Admin)"). If you opened it as a regular user, Windows will not let you see the passwords. Also check that you typed the network name exactly as it appears in the profile list, including spaces and capital letters.