Where Your Computer Stores the WiFi Password

Your computer remembers every WiFi network you have connected to, including the password. When you need that password — to give to a guest, set up a new device, or recover a forgotten one — you can retrieve it from your computer's network settings without calling your internet provider or resetting your router.

The password is stored in an encrypted file on your hard drive. Your computer uses it automatically when you reconnect to that network, so you never have to type it again. But the file is still there, and you can read it if you know where to look.

The steps differ depending on whether you use Windows, Mac, or Linux. Each operating system keeps this information in a different place and requires different steps to view it.

Key Takeaways

  • On Windows, open Settings, go to Network and Internet, select your WiFi network, and click "Manage known networks" to view the password.
  • On Mac, open Keychain Access from Applications > Utilities, search for your network name, double-click it, and check the "Show password" box.
  • On Linux, the password location depends on your distribution, but it is usually stored in /etc/NetworkManager/system-connections/ or a similar folder.
  • You must be logged in as an administrator or the account that originally connected to the network to view the password.

Finding Your WiFi Password on Windows 10 and 11

Open the Settings app by pressing the Windows key and typing "Settings", then press Enter. Click on "Network and Internet" in the left sidebar.

Scroll down and click "Manage known networks" or "WiFi" depending on your Windows version. You will see a list of every network your computer has connected to. Find the network name (called the SSID) that you need the password for and click on it.

Click "Manage" or "Properties". A window will open showing network details. Look for a field labeled "Network security key" or "Password". The password will be hidden by default, shown as dots or asterisks. Click the checkbox next to "Show" or "Show password" to reveal the actual characters.

If you do not see a "Show password" option, your computer may not have permission to display it. This happens if you are not logged in as an administrator or if the network was set up by a different user account. Try logging in as the account that originally connected to the network.

Finding Your WiFi Password on Mac

Open Finder and navigate to Applications > Utilities. Double-click "Keychain Access" to open it. This is where Mac stores passwords for networks, websites, and accounts.

In the search box at the top right, type the name of your WiFi network exactly as it appears in your WiFi menu. Keychain will filter the list and show you the matching entry.

Double-click the network name in the results. A small window will open showing the network details. At the bottom, you will see a checkbox labeled "Show password". Click it. Your Mac will ask you to enter your computer password (the one you use to log in). Type it and click "Allow".

The WiFi password will now appear in the "password" field. You can now read it, copy it, or write it down. Close the window when you are done.

Finding Your WiFi Password on Linux

Linux stores WiFi passwords in different locations depending on which distribution you use and which network manager you have installed. The most common location is /etc/NetworkManager/system-connections/.

Open a terminal and type the following command: sudo cat /etc/NetworkManager/system-connections/[network-name], replacing [network-name] with your actual network name. Press Enter and type your password when prompted.

The terminal will display the network configuration file. Look for a line that says psk= followed by the password. That is your WiFi password in plain text.

If that location does not exist on your system, try sudo cat /etc/wpa_supplicant/wpa_supplicant.conf instead. If neither works, your distribution may store passwords in a different location — check your network manager's documentation or type sudo find / -name "*network*" -type f 2>/dev/null to search for network configuration files.

What to Do If You Cannot View the Password

If you see the network listed but cannot view the password, the most common reason is that you are not logged in as an administrator or the account that set up the connection. Log out and log back in as the correct user account, then try again.

On Windows, if you still cannot see the password after logging in as an administrator, the network may have been set up using a different authentication method. Try right-clicking the network name and selecting "Forget" to remove it, then reconnect to the network manually and enter the password again. Your computer will then store it in a way you can retrieve later.

On Mac, if Keychain Access does not show the network, it may be stored under a slightly different name. Try searching for partial words from the network name, or browse the entire list by clicking the "Passwords" category on the left side.

Recovering a Password When You Cannot Access Your Computer

If you cannot log in to your computer or do not have administrator access, you cannot retrieve the password this way. Your only option is to reset your router to factory settings, which will erase all stored passwords and settings. You will then need to set up your WiFi network again from scratch.

To reset your router, locate the small reset button on the back or bottom of the device. Use a paperclip or pen to press and hold it for 10 to 15 seconds while the router is powered on. The lights will flash and the router will restart. Once it boots up, you can connect to the default network name and password printed on a sticker on the router itself.

After you reconnect, you can change the network name and password to something new through your router's admin panel. The address to access this panel is usually printed on the same sticker, often something like 192.168.1.1 or 192.168.0.1.

Keeping Your WiFi Password find

Once you have the password, be careful who you share it with. Anyone with the password can connect to your network and potentially access files on your computer if file sharing is enabled.

If you have shared the password with someone you no longer trust, change it through your router's settings. Log in to your router's admin panel, find the WiFi settings or security settings, and create a new password. Your computer will ask you to enter the new password the next time it tries to connect.

Consider using a strong password — at least 12 characters, mixing uppercase and lowercase letters, numbers, and symbols. Avoid using personal information like birthdays or addresses. A strong password makes it much harder for someone to guess or crack your network.

Frequently Asked Questions

Can I see the password if I am not the one who set up the network?

On Windows and Mac, you need to be logged in as an administrator or the account that originally connected to the network. If you are a different user, you will not be able to view it. Ask the person who set it up to retrieve the password for you, or have them log in and show you the steps.

What if the password field is blank or empty?

A blank password field usually means the network does not use a password — it is open to anyone. This is common in public places like coffee shops or libraries. If you expected a password to be there, the network may have been set up incorrectly. Try forgetting the network and reconnecting to it manually.

Will viewing the password change anything on my network?

No. straightforward looking at the password does not change any settings, disconnect anyone, or affect how your network works. It is a read-only action.

Can I retrieve a password from a network I am not currently connected to?

Yes. As long as your computer has connected to that network before, the password is stored and you can retrieve it using the same steps, even if you are not currently connected to it.

What should I do if I forgot my router's admin password?

If you cannot log in to your router's settings panel, you will need to reset the router to factory settings using the reset button. This erases all your custom settings, including the WiFi password you created. You will have to set everything up again from the beginning.