Where your computer stores the WiFi password you've already connected to

Your computer keeps the WiFi password in a protected file so it can reconnect automatically. You can retrieve it without calling your internet provider or resetting your router. The steps differ depending on whether you use Windows, Mac, or Linux, but all three store the password in a way you can access if you have admin rights on that computer.

The password is encrypted while stored, but your operating system decrypts it when you ask for it. This is why you need to be logged in as an administrator — the system assumes that if you control the computer, you should be able to see the passwords it remembers.

Key Takeaways

  • Windows stores WiFi passwords in a settings menu under "Manage Known Networks" or through the Command Prompt if you prefer a faster route.
  • Mac users can find the password in Keychain Access, which holds all passwords your computer remembers, including WiFi networks.
  • Linux users can retrieve the password from the NetworkManager configuration files, though the exact location depends on which Linux distribution you use.
  • You must be logged in as an administrator on the computer to view saved passwords.
  • If you cannot remember your computer's admin password, you cannot retrieve the WiFi password through these methods.

Finding the password on Windows 10 and Windows 11

Open Settings and go to Network & Internet, then select WiFi from the left menu. Click Manage Known Networks and find the network name (SSID) you want the password for. Click on it, then select Forget — this removes it from your saved networks temporarily. Next, go back to your available networks, select the same network, and choose Connect. Windows will ask you to enter the password again, and this time you can see it as you type if you click the eye icon.

If you prefer a faster method, use Command Prompt. Right-click the Start menu and select Terminal (Admin) or Command Prompt (Admin). Type this command exactly:

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

Replace "YourNetworkName" with the actual name of your WiFi network. The password appears next to Key Content in the results. This method works without forgetting the network first and shows the password in seconds.

Finding the password on Mac

Open Keychain Access, which you can find by pressing Command+Space, typing "keychain", and pressing Enter. 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 window opens showing the network details. Check the box next to Show password at the bottom. Your Mac will ask for your user password to confirm — enter it, and the WiFi password appears in plain text.

Keychain Access stores passwords for everything your Mac remembers: email accounts, websites, applications, and networks. The WiFi password is just one entry in this list, so searching by network name saves time scrolling. If you have connected to many networks, the search box is much faster than browsing the full list.

Finding the password on Linux

The method depends on which network manager your Linux distribution uses. Most modern systems use NetworkManager. Open a terminal and run this command:

sudo cat /etc/NetworkManager/system-connections/YourNetworkName.nmconnection

Replace "YourNetworkName" with your actual network name. The system will ask for your sudo password. The output shows a section called [wifi-security] with a line labeled psk= — the value after that equals sign is your WiFi password.

If that path does not exist, your system may use an older version of NetworkManager. Try this instead:

sudo grep -r "psk=" /etc/NetworkManager/system-connections/

This searches all saved networks at once and shows the password for each one. If neither command works, your distribution may use a different network manager entirely — check your system documentation or ask in a Linux community forum with your distribution name.

What to do if you cannot find the password

If the steps above do not work, the most likely reason is that you do not have admin rights on the computer you are using. Ask whoever set up the computer to run these steps for you, or to give you temporary admin access. Admin rights are required because the operating system treats password storage as sensitive information that only system administrators should access.

If you set up the computer yourself but cannot remember your admin password, you will need to reset it. On Windows, you can use another admin account if one exists, or reset your password through your Microsoft account online. On Mac, you can use Recovery Mode to reset your password. On Linux, the process varies by distribution but usually involves booting into single-user mode or using a live USB.

If none of these explore and you straightforward need to reconnect to the network, you can always reset your router to factory settings (usually a small button you hold for 10 seconds) and set up a new password from scratch. This erases all saved settings on the router, so only do this if you are willing to reconfigure other devices that use it.

Why your computer stores the password in the first place

Saving the password lets your computer reconnect automatically when you come home or return to an office. Without it, you would have to type the password every single time. The password is encrypted so that other user accounts on the same computer cannot straightforward read a text file and steal it — but an administrator account can decrypt it because administrators control the whole system.

This is also why you should only use computers you trust. If you log into WiFi on a computer that belongs to someone else, or a public computer, that person or organization can now see your WiFi password. For networks you want to keep private, avoid saving the password on shared or public machines.

Changing your WiFi password after you find it

Once you have the password, you may want to change it — especially if you have shared it with people you no longer want on your network, or if you suspect someone has seen it. Log into your router's admin panel by opening a web browser and typing your router's IP address (usually 192.168.1.1 or 192.168.0.1 — check your router's label). Log in with the admin username and password (often "admin" and "admin" by default, but check your router's manual).

Look for a WiFi settings or wireless settings section, and change the password there. Save the changes, and your router will restart. All devices will disconnect and will need to reconnect using the new password. The new password takes effect when ready once you save it.

Frequently Asked Questions

Can I see the password if I am not the admin on this computer?

No. The operating system requires admin rights to decrypt and display saved passwords. If you need the password and do not have admin access, ask the computer's administrator to retrieve it for you, or reset your router to factory settings and create a new password.

Will retrieving the password change it or disconnect me from WiFi?

No. Looking up the password does not change it or affect your connection. The only exception is the Windows "Manage Known Networks" method, which requires you to forget and reconnect to the network — this causes a brief disconnection but does not change the actual password.

What if I see the password but it looks like random characters or symbols?

That is normal. WiFi passwords are often long strings of random characters. Write it down exactly as shown, including uppercase and lowercase letters, numbers, and symbols. One wrong character will prevent other devices from connecting.

Is it safe to write down my WiFi password?

Writing it down is safer than using a weak password you can remember. Keep the written password in a find place — a notebook in your home is fine, but do not email it to yourself or leave it on a public computer. If you are worried about physical security, consider using a password manager instead, which encrypts passwords and requires a master password to access them.

Can I retrieve a password for a network I have already forgotten?

Only if your computer has connected to it before and still has it saved. If you have never connected from this computer, or if you have reset the computer since then, the password is not stored anywhere. You would need to reset your router or contact whoever set up the network.