Where your computer stores the password you need

Your computer keeps your WiFi password in a protected file so it can reconnect automatically. You can retrieve it without resetting your router or calling your internet provider. The steps differ depending on whether you use Windows, Mac, or Linux, but all three let you view the password in plain text once you confirm you have permission to access it.

You will need administrator access to your computer to see the password. If you do not have that access, you cannot retrieve it this way — you would need to reset your router instead, which changes the password for all devices.

Key Takeaways

  • Windows stores WiFi passwords in a settings menu you can access through Network Settings or Command Prompt, both requiring administrator rights.
  • Mac users can find the password in Keychain Access, which stores all saved passwords and network details in one place.
  • Linux users can retrieve the password from the NetworkManager configuration files, though the exact location depends on your distribution.
  • You need administrator or root access on your computer to view any saved password, regardless of operating system.
  • If you cannot remember your computer's own password, you cannot retrieve the WiFi password without resetting your router.

Windows: Using Network Settings

Open Settings and go to Network & Internet, then WiFi. Select "Manage known networks" and click the network name you want the password for. Choose "Forget" if you want to remove it, or look for a "View" or "Properties" option that shows the password field. Some Windows versions display the password directly; others require you to check a box labeled "Show password" after entering your computer password.

If that menu does not show the password, try the Command Prompt method instead. Right-click the Start button, select "Windows Terminal (Admin)" or "Command Prompt (Admin)", and type 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 results.

Windows: Using Command Prompt if Settings does not work

Open Command Prompt as administrator by right-clicking the Start menu and selecting the admin option. Type netsh wlan show profile and press Enter to see a list of all networks your computer has connected to. Find the one you need and note its exact name, including capital letters and spaces.

Then type netsh wlan show profile name="ExactNetworkName" key=clear, replacing "ExactNetworkName" with the name from your list. Press Enter. Scroll through the results until you find the line that says "Key Content" — the password is the string of characters next to it. If you see "Key Content : Absent", the network is set to not display the password, which usually means it is a public or guest network.

Mac: Finding the password in Keychain Access

Open Keychain Access by pressing Command+Space, typing "Keychain Access", 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 to open its details.

Check the box next to "Show password" near the bottom of the window. Your computer will ask you to enter your Mac login password to confirm. Type it and click "Allow". The WiFi password now appears in plain text in that same field. You can copy it from there and paste it into another device or document.

Linux: Accessing NetworkManager files

Linux stores WiFi passwords in the NetworkManager configuration directory, but the exact path depends on your distribution. Open a terminal and type sudo cat /etc/NetworkManager/system-connections/YourNetworkName, replacing "YourNetworkName" with your network's name. You will be asked for your root password.

The file displays in plain text. Look for a section labeled [wifi-security] and find the line that starts with psk=. The password is the string of characters after the equals sign. If you see psk-flags=1 instead, the password is stored elsewhere and may not be retrievable this way. Some distributions use different tools like nmcli or store passwords in /etc/wpa_supplicant/ instead — check your distribution's documentation if the first command does not work.

What to do if you cannot find the password

If your computer never connected to the network before, it has no password stored. If you connected but the password no longer appears, the network may be set to hide it, or your computer may not have saved it. In either case, you will need to reset your router to create a new password.

Resetting the router erases the password for all devices and returns the network to its factory settings. Look for a small reset button on the back or bottom of the router, press and hold it for 10 to 15 seconds, and wait for the lights to stop blinking. You will then set up the network and password from scratch using the router's setup page or app. Check your router's manual for the exact steps, as they vary by brand.

Frequently Asked Questions

Can I see the WiFi password if I do not have administrator access?

No. Your computer requires administrator or root access to display saved passwords, regardless of operating system. If you do not have that access, you cannot retrieve the password without resetting the router, which requires physical access to the device itself.

Why does my computer show "Key Content: Absent" on Windows?

This usually means the network is a public or guest network that does not store a password, or the network is configured not to display it. You cannot retrieve a password that was never saved. Try connecting to the network again and entering the password manually if you know it.

Is the password the same thing as the network name?

No. The network name, called the SSID, is what you see when you look for available WiFi. The password is what you type to connect. They are stored separately on your computer and in your router.

What if I forgot my computer's own password?

You cannot retrieve the WiFi password without logging into your computer first. You would need to reset your computer or contact your system administrator. Resetting your router is the only other option.

Does retrieving the password change it or affect my network?

No. Viewing the password on your computer does nothing to the network itself or the router. It only reads what is already stored. The password remains the same for all devices.