Setup and Configuration

How to Retrieve Wifi Password From Laptop? On Laptop & PC

Introduction Forgetting a Wi-Fi password is one of those frustrating situations that almost everyone runs into at some point. You might be trying to connect a new device, share internet access with a guest, or simply need to reconnect after a reset. The good n

HowToFixWiFi

Introduction

Forgetting a Wi-Fi password is one of those frustrating situations that almost everyone runs into at some point. You might be trying to connect a new device, share internet access with a guest, or simply need to reconnect after a reset. The good news is that if your laptop or PC has already connected to that network in the past, there is a very good chance you can still retrieve it without having to call your internet provider or reset your entire router.

This guide is built to answer the question, How to Retrieve Wifi Password From Laptop? in the clearest and most practical way possible. Whether you are using a Windows laptop, a desktop PC, a Mac, or even a Linux machine, you will find reliable methods here that work for saved networks. Along the way, you will learn the differences between each method, when to use them, and what to do if none of them work.

By the end of this article, you should be able to confidently recover your saved Wi-Fi key from your own device and know how to share or store it safely for future use.

Table of Contents

Understanding Saved Wi-Fi Passwords

When you connect to a wireless network for the first time and choose to save it, your operating system stores that network’s security key in an encrypted form. The system uses that stored key automatically the next time your laptop or PC comes within range. Because of this built-in storage, you do not need to type the password again unless you manually forget the network.

What this means for anyone looking for the answer to How to Retrieve Wifi Password From Laptop? is simple: you can only recover a password that is currently saved by your device. If your laptop was never connected to that Wi-Fi network before, or if you chose to not save it, none of the methods below will show it. In that case, the only safe source would be the router, the original paperwork, or the person who set it up.

It is also worth noting that retrieving a saved password for a network you own or have permission to use is perfectly normal. Attempting to recover credentials for a network you do not have permission to access is not something this guide covers.

Things to Know Before You Begin

Before jumping into any of the steps, keep these quick points in mind to avoid any unnecessary roadblocks:

  • Admin access is usually required. On most systems, you will need the login credentials for your user account with permission to view saved network details.
  • Only saved networks are visible. You cannot magically pull a password for a brand new network that has never been connected to this laptop or PC.
  • Steps differ slightly by version. Windows 10, Windows 11, different Linux distributions, and macOS versions can have minor menu changes.
  • Be cautious with sharing. Only share your Wi-Fi password with people you trust. Storing it in a secure place is always better than writing it on easily accessible notes.
  • Command-line methods are safe for saved data. The commands used in this guide only read locally stored profiles, they do not broadcast or expose anything to outside devices.

Method 1: Retrieve Wi-Fi Password on Windows 11 and Windows 10 via Network Settings

This is one of the easiest visual methods for those who prefer using menus over commands. It works very well for the specific Wi-Fi network that your PC is currently connected to, or in some views for a known network.

For Windows 11

  1. Open Network Settings: Press the key combination of Win + I to open Settings. From the left panel, select Network & Internet.
  2. Go to Wi-Fi: Click on Wi-Fi, then select Manage known networks to see all networks your Windows 11 device has saved.
  3. Select the target network: Find the network name you want the password for and click it. This will open its properties page.
  4. View the password: Look for the option labeled View next to Wi-Fi password. Click View. You may be asked to enter your Windows account PIN, password, or biometric confirmation for security.
  5. Copy it: Once revealed, the password field will show the plain text key. You can now copy and use it as needed.

For Windows 10

  1. Open Settings: Press Win + I and go to Network & Internet.
  2. Access Wi-Fi properties: Select Wi-Fi from the left, then click Manage known networks.
  3. Pick your network: Choose the saved network from the list and click Properties.
  4. Reveal the key: Scroll down until you see Wi-Fi password and click Show characters. After authentication, the password will appear in plain text.

Note: This settings-based method is great for a single known network. If you need to find passwords for multiple networks at once, the command-line methods below are far more efficient.

Method 2: Use Command Prompt to Find All Saved Wi-Fi Passwords

Command Prompt is one of the most reliable ways to answer How to Retrieve Wifi Password From Laptop? for every Wi-Fi profile stored on a Windows laptop or PC. This works on Windows 7, Windows 10, and Windows 11 with no extra tools required.

Step 1: Open Command Prompt as Administrator

  1. Press the Windows key, type cmd.
  2. Right-click on Command Prompt and select Run as administrator.
  3. If prompted by User Account Control, confirm to continue.

Step 2: List all saved Wi-Fi profiles

In the Command Prompt window, type the following command and press Enter:

netsh wlan show profiles

You will see a list under User profiles showing every Wi-Fi network name that has ever been saved on this device. Take note of the exact network name (SSID) you need.

Step 3: View the password for a specific network

Now, run the following command, replacing NETWORK-NAME with the exact name from the list above:

netsh wlan show profile name="NETWORK-NAME" key=clear

Scroll through the results until you find a section titled Security settings. Look for the line labeled Key Content. The value next to it is the Wi-Fi password for that network.

Quick tip for multiple networks

If you need to check several, simply repeat step 3 for each one. Since all profiles are stored locally, this is safe and does not require any internet connection to display saved keys.

Method 3: Use Windows PowerShell for Saved Networks

PowerShell can achieve the same result as Command Prompt. Some users prefer it, and on certain builds it feels quicker. This is another solid approach for Windows laptops and PCs.

Steps to follow

  1. Open PowerShell as Administrator: Press Win + X and select Terminal (Admin) or Windows PowerShell (Admin). If Terminal opens with multiple tabs, you can use the PowerShell tab.
  2. Get all profiles: Type the same netsh command to see all saved networks:
netsh wlan show profiles
  1. Reveal the key: Use the exact same profile query with key=clear, replacing the name with your target network:
netsh wlan show profile name="NETWORK-NAME" key=clear
  1. Find Key Content: Look under Security settings for Key Content to see the plain text password.

Functionally, this is identical to Command Prompt. Use whichever terminal you are more comfortable with.

Method 4: Use Control Panel on Older Windows Versions or Quick Access

On some older Windows builds, or if you prefer the classic Network and Sharing Center, the Control Panel method is still available. It is mostly useful for viewing the password of the network your PC is actively connected to at that moment.

  1. Open Network and Sharing Center: Press Win + R, type ncpa.cpl and press Enter. This opens your network connections directly.
  2. Open Wi-Fi Status: Find your active Wi-Fi connection, right-click it, and select Status.
  3. Go to Wireless Properties: In the Wi-Fi Status window, click Wireless Properties.
  4. View the security key: Go to the Security tab. Check the box labeled Show characters. You will need to authenticate with your Windows user credentials. After that, the Network security key field will display the password.

This method is straightforward, but it does not let you view passwords for networks you are not currently connected to. For a full list, stick to Method 2 or Method 3.

Method 5: Retrieve Wi-Fi Password From a Mac Laptop or Mac Desktop

On macOS, saved Wi-Fi passwords are stored in the system’s Keychain. You can retrieve them using the built-in Keychain Access app. This works for both MacBooks and iMacs as long as you have the Mac user password or Touch ID available.

Using Keychain Access

  1. Open Keychain Access: Press Command + Space to open Spotlight, type Keychain Access, and press Enter.
  2. Set the correct search filters: In Keychain Access, set Keychains to System (or login depending on how it was saved) and Category to Passwords.
  3. Find the network: In the search bar in the top-right, type the exact name of the Wi-Fi network you want.
  4. Open the entry: Double-click the entry that matches your network name. A new window will appear with details for that key.
  5. Show the password: Check the box labeled Show password. You will be prompted to enter your Mac username and password, or use Touch ID to authenticate.
  6. Reveal and copy: After authentication, the password field will become visible. You can now copy it.

Using Terminal on macOS (alternative)

If you prefer the command line, macOS also allows this through security:

  1. Open Terminal from Spotlight or Applications > Utilities.
  2. Run the following command, replacing NETWORK-NAME with your exact SSID:
security find-generic-password -ga "NETWORK-NAME" | grep "password:"
  1. You will be asked to authenticate with your Mac user credentials. After that, the password will be shown in plain text next to password:.

Both methods are correct. The Keychain Access route is more visual, while the Terminal route is faster for those used to it.

Method 6: Retrieve Wi-Fi Password From Linux Laptops and PCs

Linux handles saved Wi-Fi credentials differently depending on the network manager in use. The two most common are NetworkManager (found on Ubuntu, Fedora, Linux Mint, and many others) and wpa_supplicant (used on some minimal setups).

Option A: For NetworkManager-based distros (most common)

Saved connection files are usually stored in plain-text configuration files under a protected directory. You will need sudo access.

  1. Open a terminal: Use your preferred terminal application.
  2. Navigate to connection files: NetworkManager stores profiles here:
/etc/NetworkManager/system-connections/
  1. List and read the file: List the files in that directory with ls, or go directly to the one matching your network name. Then read it with cat using sudo. For example:
sudo cat /etc/NetworkManager/system-connections/NETWORK-NAME.nmconnection
  1. Find the password: Look for a line that reads psk=YOUR_PASSWORD under the [wifi-security] section. That value is your Wi-Fi password.

Option B: For wpa_supplicant-based setups

Some distributions use /etc/wpa_supplicant/wpa_supplicant.conf. Open it with sudo:

sudo cat /etc/wpa_supplicant/wpa_supplicant.conf

Look for a block that matches your network, such as:

network={
    ssid="NETWORK-NAME"
    psk="YOUR_PASSWORD"
    ...
}

The value inside psk="" is the key.

Important: These files are protected. Only use sudo if you are logged into your own Linux user account with administrative privileges.

Comparing All Methods for Windows, Mac and Linux

With so many approaches available, choosing the right one depends on your device and goal. Use this comparison to pick the fastest and most suitable option for your situation.

Method Best For Works For All Saved Networks? Needs Admin/Sudo? Difficulty
Windows Settings (Wi-Fi Properties) Quick view for one known network No, mainly for accessible known networks or current connection Usually yes for viewing the key Very Easy
Command Prompt (netsh) Finding every saved Wi-Fi password on Windows Yes, all saved profiles Yes, Run as administrator Easy
Windows PowerShell (netsh) Same as Command Prompt with a modern terminal Yes, all saved profiles Yes, Run as administrator Easy
Control Panel / ncpa.cpl Classic view for the active Wi-Fi connection No, only currently connected network Yes for showing characters Very Easy
macOS Keychain Access Visual retrieval on MacBooks and iMacs Yes, any network saved to the Keychain Yes, Mac user authentication required Very Easy
macOS Terminal (security) Fast CLI retrieval on macOS Yes, any network saved to the Keychain Yes, Mac user authentication required Easy
Linux NetworkManager Most modern Linux laptops and PCs Yes, all saved NetworkManager profiles Yes, sudo required Moderate
Linux wpa_supplicant Minimal or older Linux network setups Yes, all networks in wpa_supplicant.conf Yes, sudo required Moderate

What to Do If Your Laptop Never Saved the Password

There are times where none of the above will show results. This usually happens if you connected once without saving, used a hotspot without storing it, or removed the network from saved lists. If that is the case, try these safe options:

  • Check another device. If your phone, tablet, or another laptop is still connected to that Wi-Fi network, check its saved Wi-Fi details. Android and iOS both allow viewing saved network passwords in recent versions, though the exact menu can differ.
  • Look at the router label. Many routers have the default Wi-Fi name and default password printed on a sticker on the back or bottom of the device.
  • Log into your router. If you have access to the router’s admin interface, you can view the current wireless password from its Wi-Fi/security settings. Use the router login details printed or previously set.
  • Ask the network owner. For home, work, or shared networks, the simplest and most direct solution is to ask the person who manages it.
  • Reset only as a last resort. Resetting the router will restore default credentials, but it can also disconnect every device and may affect any custom settings. Only do this if you are authorized and have no other option.

Tips and Best Practices for Managing Wi-Fi Passwords

Once you know how to retrieve them, it is worth making sure you do not end up in this situation again. A little organization goes a long way.

  • Store in a secure place. Instead of loose text files on your desktop, keep important Wi-Fi details in a reputable password manager.
  • Use a strong, unique password. Avoid common words, birthdays, or repeating passwords across different networks. A long mix of characters is much harder to guess.
  • Label clearly. If you manage multiple networks, use clear names so you can instantly identify the correct profile when using any of the methods above.
  • Share with care. Only share your Wi-Fi key with trusted people. For guest access, many modern routers allow a separate guest network with its own password.
  • Keep your device secure. Since saved passwords can be revealed with admin access, always use a strong user password, PIN, or biometric lock on your laptop and PC.
  • Update when needed. If you change your router password, your laptop may still try to connect with the old one. Forget the old network and reconnect with the new key to update it properly.
  • Know your recovery path. Save your router login details separately from your Wi-Fi key, as they are both useful in different scenarios.

Frequently Asked Questions

Can I retrieve a Wi-Fi password from a laptop without admin access?

In most cases, no. Viewing saved Wi-Fi passwords requires elevated privileges on Windows, authentication on macOS, or sudo access on Linux. These protections exist to prevent unauthorized access to stored credentials.

Will these methods work if I am not currently connected to that network?

Yes, for the majority. The Command Prompt/PowerShell netsh method on Windows, Keychain on macOS, and the config file methods on Linux will all show saved networks regardless of whether you are currently connected to them. The Control Panel method is the main exception, as it only works for an active connection.

Is it safe to use Command Prompt to find saved Wi-Fi passwords?

Yes. The commands used are built into Windows and only read locally stored wireless profiles. They do not send your password over the internet or to any external service.

What if the network name has spaces or special characters?

Always wrap the exact network name in quotes when using command-line tools. For example, use "My Home Wi-Fi" instead of My Home Wi-Fi to avoid errors.

Can I use these methods to get passwords from public Wi-Fi?

Only if that public Wi-Fi network was saved to your device in the past and is still present in your saved list. Most people connect temporarily without saving, so it is unlikely to appear.

Why does “Key Content” not appear in Command Prompt?

This can happen if you did not run Command Prompt as administrator, or in rare profile corruption cases. Make sure you open it with “Run as administrator”, use the exact profile name, and run the command with key=clear.

Do these methods work on Chromebooks?

Chromebooks store Wi-Fi credentials differently and generally do not expose saved passwords in plain text through a simple user setting. The methods in this guide are focused on Windows laptops, desktop PCs, macOS, and Linux machines.

Can I recover a password if I forgot my Windows login password?

You will still need to sign into the Windows user account to run admin-level commands or to authenticate when revealing passwords. If you have lost access to that account entirely, recovery becomes much more complicated and goes beyond the scope of viewing saved Wi-Fi keys.

Conclusion

Forgetting your Wi-Fi key does not have to mean resetting your router or starting from scratch. As shown throughout this guide, the answer to How to Retrieve Wifi Password From Laptop? is almost always already on the device you are using, provided that it has been connected and saved before.

If you are on a Windows laptop or PC, the quickest way to see all saved passwords is with Command Prompt or PowerShell using netsh wlan show profile. If you prefer a menu, the Network Settings or Control Panel route will work for your target network. For Mac users, Keychain Access or the security command will reveal it with your Mac login. For Linux users, reading the NetworkManager connection file or your wpa_supplicant.conf will do the job with sudo.

Always remember to use these methods only for networks you own or have clear permission to access. Take a moment to store any recovered passwords securely, and set up a safer system going forward so you never have to search for them again. With the steps above, you now have a complete toolkit to retrieve saved Wi-Fi passwords from nearly any laptop or PC with ease.