Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Retrieve Forgotten WiFi Passwords on Your Computer

· 5 min read · Home Networking

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

If you've forgotten a WiFi password but your computer still connects to that network, you can usually recover it from your system's saved network settings. On Windows, the password is stored in the Network and Sharing Center; on macOS, it's in Keychain Access. This guide walks you through both methods, plus how to find it via the command line if the GUI route doesn't work.

What You'll Need

  • Access to the computer that is currently connected (or has previously connected) to the WiFi network.
  • Administrator rights on that computer (to view saved passwords).
  • For macOS: your login password (to unlock Keychain Access).

Step-by-Step

On Windows 10 and Windows 11

  1. Click the Start button and type Control Panel, then open it.
  2. Go to Network and Internet > Network and Sharing Center. (If you don't see these exact labels, switch the view to “Large icons” or “Small icons” in the top-right corner.)
  3. Next to “Connections,” click the name of your WiFi network (e.g., “Wi-Fi” or the network name).
  4. In the Wi-Fi Status window, click Wireless Properties.
  5. Switch to the Security tab.
  6. Check the box that says Show characters. The password will appear in the “Network security key” field.

If you're not currently connected to that network but it's saved, you can also use the command prompt:

  1. Press Windows key + R, type cmd, and press Enter.
  2. Type the following command and press Enter: netsh wlan show profiles. This lists all saved WiFi networks.
  3. Find the network name (SSID) you need, then type: netsh wlan show profile name="YourNetworkName" key=clear (replace “YourNetworkName” with the actual SSID).
  4. Look for the line “Key Content” under “Security settings” – that's the password.

On macOS (MacBook, iMac)

  1. Open Finder > Applications > Utilities > Keychain Access.
  2. In the search box (top-right), type the name of the WiFi network.
  3. Double-click the network entry (it usually has a small lock icon).
  4. Check the box Show password.
  5. Enter your Mac's login password (admin password) and click Allow or Always Allow.
  6. The WiFi password will appear in the “Password” field.

If you don't see the network in Keychain Access, make sure you're looking in the “login” keychain (the default). If you've never connected to that network from this Mac, the password won't be stored there.

Common Mistakes

  • Looking in the wrong place on Windows: The “Wireless Properties” button is only visible when you're currently connected to that network. If you're not connected, use the Command Prompt method or connect first.
  • Forgetting to check “Show characters”: The password is hidden by default; you must tick that box to reveal it.
  • On macOS, not unlocking the keychain: If you don't enter your admin password, the password field stays blank.
  • Typing the network name wrong in the Command Prompt: The SSID is case-sensitive. Copy it from the profile list to avoid errors.

Tips

  • If you can't see the password on Windows because you're not connected, try connecting to the network first (if you know the password) or use the Command Prompt method.
  • On macOS, you can also use the Terminal command: security find-generic-password -wa "YourNetworkName" – it will prompt for your login password and then print the WiFi password.
  • If you have a router admin page, you can often find the WiFi password there (usually under Wireless or Wi-Fi settings). This works even if no computer is currently connected.
  • For saved networks on Windows, the Command Prompt method works even if you're not connected to that network at the moment.

Troubleshooting

If the “Show characters” box is greyed out on Windows: This usually means you don't have administrator privileges. Try right-clicking the Command Prompt and selecting “Run as administrator” before using the netsh command.

If the Command Prompt says “Profile not found”: Double-check the exact spelling of the SSID. Use netsh wlan show profiles to see the exact list.

If Keychain Access doesn't show the network on macOS: Make sure you're looking in the “login” keychain, not “System” or “iCloud.” If it's still missing, the network may have been forgotten from this Mac.

If you get “command not found” on macOS Terminal: The security command should be available by default. If not, you may be using a different shell – but the standard Terminal app on macOS includes it.

If none of the above works: The last resort is to reset your router to factory defaults (usually by holding a small reset button for 10 seconds). This will erase all router settings, including the WiFi password, and you'll need to set up a new one. Note that this also disconnects all devices.

Frequently Asked Questions

Can I retrieve a WiFi password from a computer that has never connected to that network?

No. The password is only stored on a device after it successfully connects. If the computer never joined the network, you'll need to get the password from the router's admin page or from someone who knows it.

Is it legal to retrieve a saved WiFi password?

Yes, as long as you own the computer and the network, or you have permission from the network owner. Using someone else's WiFi without permission is illegal in many places and violates terms of service.

Will these steps work on a work or school computer?

Often, but not always. IT administrators may disable the ability to view saved passwords or restrict access to the Command Prompt. If you're not the administrator, you may not have the necessary permissions.

Does this work for a hidden WiFi network?

Yes, if the computer is connected to a hidden network, its profile is still stored. On Windows, the profile will appear in the list; on macOS, it will be in Keychain Access. The steps are the same.

What if I'm using a Chromebook?

Chromebooks do not have a built-in way to view saved WiFi passwords. However, you can find the password on the router's admin page or by using the Chrome OS “Network” settings to share the network via QR code (which reveals the password when scanned).

Can I use these steps to find the password for a network I'm no longer connected to?

Yes, as long as the network profile is still saved on your computer. On Windows, the Command Prompt method works for any saved profile. On macOS, the network must still be in your Keychain – if you've “forgotten” the network, the password is deleted.