Where Your Computer Stores the WiFi Password

Your computer stores the password for every WiFi network you have ever connected to. When you reconnect to that network, your device uses the saved password automatically — you do not have to type it again. This means the password is still there, even if you forgot it the moment you typed it in. The location and method to retrieve it differs between Windows, Mac, and Linux, but all three store it in a protected system folder that only you (or an administrator) can access.

You will need administrator access on your computer to view saved passwords. If you are on a work or school computer, the network administrator may have locked this down, and you may not be able to see the password even with admin rights. On your own computer, you almost certainly can retrieve it.

Key Takeaways

  • Windows stores WiFi passwords in a system file you can access through Settings or Command Prompt without installing anything.
  • Mac users can find the password in Keychain Access, a built-in app that holds all your saved passwords and login information.
  • Linux users can retrieve the password from the NetworkManager configuration files using the terminal, though the exact location depends on your distribution.
  • You need administrator or root access to view the password — standard user accounts cannot retrieve it.
  • The fastest method on any system takes under two minutes once you know where to look.

Finding Your WiFi Password on Windows 10 and 11

Windows stores WiFi passwords in a system file called the Wireless Profile. The easiest way to retrieve it is through Settings. Open Settings, go to Network & Internet, then WiFi, and select Manage Known Networks. Find the network name you need the password for, click it, then click Forget. This removes it from your saved list — but do not worry, you can reconnect when ready and it will save again.

If you want to see the password without forgetting the network, use Command Prompt instead. Right-click the Start button, select Terminal (Admin) or Command Prompt (Admin), and paste this command: netsh wlan show profile name="YourNetworkName" key=clear. Replace YourNetworkName with the exact name of your WiFi network. The password appears next to Key Content in the output. This method leaves your saved network untouched.

If Command Prompt feels unfamiliar, the Settings method is simpler — you just need to reconnect to the network afterward, which takes seconds. Either way, you will see the full password in plain text once you have admin access.

Finding Your WiFi Password on Mac

Mac stores all passwords, including WiFi, in Keychain Access, a built-in password manager. Open Spotlight Search (press Command + Space), type keychain access, and press Enter. In the window that opens, make sure you are on the Passwords tab on the left side.

In the search box at the top right, type the name of your WiFi network. When it appears in the list, double-click it. A small window opens showing the network name. At the bottom, check the box next to Show password. Your Mac will ask you to confirm your user password — type it in. The WiFi password now appears in plain text in that same box.

This method works on all recent versions of macOS. If you cannot find Keychain Access, your Mac is very old or uses a non-standard setup — in that case, contact Apple Support with your Mac model and operating system version.

Finding Your WiFi Password on Linux

Linux distributions vary in how they store WiFi passwords, but most modern systems use NetworkManager. Open a terminal and run this command: sudo cat /etc/NetworkManager/system-connections/YourNetworkName.nmconnection. Replace YourNetworkName with your network name. You will be asked for your root password — type it in. The password appears next to psk= in the output.

If that file does not exist, try: sudo grep -r "psk=" /etc/NetworkManager/system-connections/. This searches all saved networks at once and shows you the password for each one. The output can be long if you have saved many networks, so look for the network name you need.

Some older Linux systems or custom setups may store passwords elsewhere. If neither command works, check your distribution's documentation or contact your system administrator. On a personal computer, you can also reconnect to the network and look for a password field in the connection settings — some distributions show it there.

What to Do If You Cannot See the Password

If you have tried the steps above and still cannot see the password, one of three things is happening: you do not have administrator or root access, the network was set up by someone else and locked down, or your device uses a custom setup that stores passwords differently.

If you are on a work or school computer, contact your IT department — they can reset the network or provide the password. If it is your own computer but you are not the administrator, log in as the administrator and try again. If you are the administrator and the password still will not show, your device may have a security policy that hides it — this is rare on personal computers but common on managed devices.

The last option is to forget the network and reconnect to it fresh. When you reconnect, you will need to type the password in again, but at least you will know it works. If you do not remember the password and cannot retrieve it, you will need to reset the router itself — contact your internet provider or the person who set up the network.

Why Your Computer Remembers the Password

When you connect to a WiFi network for the first time, your computer encrypts the password and stores it in a protected system folder. The next time that network broadcasts its signal, your device automatically sends the saved password without asking you to type it. This is convenient, but it also means the password sits on your device in a form that can be retrieved.

This is why it matters who has access to your computer. Anyone with administrator access can see all your saved WiFi passwords. If you share a computer with others, be aware that they can retrieve passwords you have entered. On a personal device, this is usually not a concern — but on a shared work or family computer, it is worth knowing.

Frequently Asked Questions

Can I see the password for a network I am not currently connected to?

Yes. As long as you have connected to that network before and saved the password, your computer still has it stored. You do not need to be connected to the network to retrieve the password — the steps above work whether the network is in range or not.

What if the network name has special characters or spaces?

On Windows, put the network name in quotes in the Command Prompt command: netsh wlan show profile name="My Network Name" key=clear. On Linux, do the same with the file path: sudo cat /etc/NetworkManager/system-connections/"My Network Name.nmconnection". On Mac, just type the network name normally in Keychain Search.

Is it safe to write down the password once I find it?

Yes. Once you have the password, you can write it down, text it to someone, or store it however you normally store passwords. The risk is only if someone else gains access to your computer itself — once the password is in your hands, it is no different from any other password.

Will retrieving the password change anything on my computer?

No, unless you use the Windows "Forget Network" method. On Mac and Linux, viewing the password changes nothing. On Windows, forgetting the network removes it from your saved list, but you can reconnect when ready and it saves again — this takes about 10 seconds.

What if I see multiple entries for the same network?

This sometimes happens if you have reconnected to the network many times or if your device saved it under slightly different names. Try the most recent one first — on Windows, check the date modified; on Mac, Keychain shows when each entry was last updated. If one does not work, try the next one.