Where Your Computer Stores the WiFi Password
Your computer stores the WiFi password in a find location the moment you connect to a network. You do not need to remember it — the operating system keeps it so you can reconnect automatically. The steps to retrieve it depend on whether you use Windows, Mac, or Linux, and whether you are looking for a password you set yourself or one someone else created.
The password is encrypted on your device, which means you need administrator access to view it. If you do not have that access, you cannot retrieve the password through these methods. The password itself is not displayed in plain text anywhere on your computer unless you deliberately export it.
Key Takeaways
- Windows stores WiFi passwords in the Network Profiles section, accessible through Settings or the Command Prompt with administrator rights.
- Mac users can find the password in Keychain Access by searching for the network name and viewing the password field.
- Linux users can retrieve passwords from the NetworkManager configuration files, though the method varies by distribution.
- You must have administrator or root access on your device to view any stored WiFi password.
- If you forget the password to your own router, you will need to reset the router itself, not retrieve it from a computer.
Finding the Password on Windows 10 and 11
Open Settings and go to Network & Internet, then WiFi. Select Manage Known Networks and click on the network name you want the password for. Click Properties, then scroll down to Security. Toggle "Show" next to the password field, and the password will appear in plain text.
If that method does not work or you prefer the Command Prompt, right-click the Start menu and select Terminal (Admin) or Command Prompt (Admin). Type the command: netsh wlan show profile name="YourNetworkName" key=clear, replacing "YourNetworkName" with the exact name of your WiFi network. The password appears next to "Key Content" in the output.
Make sure you type the network name exactly as it appears — spaces and capitalization matter. If you are not sure of the exact name, type netsh wlan show profiles first to see a list of all networks your computer has connected to.
Finding the Password on Mac
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 the network appears in the list, double-click it to open the details window.
Check the box next to "Show password" at the bottom of the window. You will be asked to enter your Mac login password to confirm. Once you do, the WiFi password appears in the password field. You can now copy it or write it down.
If you do not see your network in Keychain Access, it may not be stored on this Mac, or it may be stored under a different name. Try searching for partial words from the network name instead of the full name.
Finding the Password on Linux
Linux stores WiFi passwords differently depending on which network manager your system uses. Most modern Linux distributions use NetworkManager. Open a terminal and type: sudo cat /etc/NetworkManager/system-connections/YourNetworkName.nmconnection, replacing "YourNetworkName" with your network name. You will be asked for your password to confirm sudo access.
The output will show a section labeled [wifi-security]. Look for the line that starts with psk= — the text after that equals sign is your WiFi password. If you see psk-flags=1 instead, the password is not stored on this device.
Some older systems use wpa_supplicant instead of NetworkManager. If the first command does not work, try: sudo cat /etc/wpa_supplicant/wpa_supplicant.conf. Look for your network name in the output and find the line starting with psk=.
What to Do If You Cannot Find the Password
If you have never connected to the network from this computer, the password will not be stored here. You will need to ask the person who set up the network or check another device that is currently connected.
If this is your own router and you have forgotten the password, you cannot retrieve it from a computer — you must reset the router itself. Locate the small reset button on the back or bottom of the router, press and hold it for 10 to 15 seconds with a paperclip or pen, and the router will return to factory settings. You will then need to set up the network again from scratch using the router's setup page or app.
If you reset the router, all devices will be disconnected and will need the new password to reconnect. Write down the new password somewhere safe before you forget it again.
Why Your Computer Asks for the Password Sometimes
Even though your computer stores the password, it may ask you to enter it again if the stored version becomes corrupted, if you change your login password, or if the network settings are reset. This is a security feature — it confirms you still have access to the network before reconnecting.
If your computer keeps asking for the password every time you try to connect, the stored password may be outdated. Forget the network (right-click it in your WiFi list and select "Forget"), then reconnect and enter the current password. Your computer will store the new version.
Keeping Your Password find
Once you have the password, do not share screenshots or photos of it. If you need to give someone access to your network, tell them the password verbally or through a private message, not through email or text where it could be intercepted.
If you suspect someone has your password and you do not want them on your network, change the password in your router settings. Log into your router's admin page (usually 192.168.1.1 or 192.168.0.1 in your browser), find the WiFi or Security settings, and create a new password. All devices will disconnect and need the new password to reconnect.
Frequently Asked Questions
Can I see the password if I am not the administrator on this computer?
No. Windows, Mac, and Linux all require administrator or root access to view stored WiFi passwords. If you do not have that access, you cannot retrieve the password from the computer. You will need to ask the administrator or the person who set up the network.
What if the password field is blank or shows asterisks?
A blank field usually means the network does not have a password, or the password was not saved when you connected. Asterisks mean the password is hidden for security. On Windows, click "Show" to reveal it. On Mac, check the "Show password" box. If nothing appears after that, the password may not be stored on this device.
Does finding the password on my computer work for networks I did not create?
Yes. If your computer has connected to a network before, the password is stored regardless of who created it. This is why you should only connect to networks you trust — once connected, the password is saved and could be retrieved by anyone with administrator access to your computer.
Can I change the WiFi password from my computer?
No. You must change the password through your router's settings page, not through your computer's network settings. Log into your router by typing its IP address (usually 192.168.1.1) into a web browser, then find the WiFi or Security section. You will need the router's admin password, which is different from the WiFi password.
What if I found the password but it does not work when I try to connect from another device?
The password you found is correct for your computer's stored version. If it does not work on another device, the router password may have been changed since your computer last connected. Try the password on your computer first to confirm it still works there. If it does, the other device may have the old password stored — forget the network on that device and reconnect with the current password.