Where to view saved Wi-Fi passwords on your computer: A detailed guide

Forgot your home Wi-Fi password or the sticker on your router has worn off? Or need to connect a new device but can't be bothered to look for the piece of paper with the code? Don't rush to reset your router—all your saved wireless network passwords are stored right on your computer. You just need to know where to find them.

In this article we will discuss all working methods extracting Wi-Fi passwords from Windows 10/11 And macOS From simple graphical user interface (GUI) viewing to the command line for advanced users, you'll learn how to access security keys even for networks you haven't connected to in a while, and what to do if the system requests administrator privileges.

Important: The methods only work for those networks to which the computer is connected. I've already connected beforeIf you've never logged into the network, you'll have to look for the password on your router or from your ISP.

1. View Wi-Fi passwords in Windows via Network Settings

The easiest way is to use built-in tools WindowsIt is suitable for most users and does not require any special knowledge. The instructions are relevant for Windows 10 And Windows 11 (the differences are minimal).

Open the menu Start and go to Settings → Network and Internet → Wi-Fi. In the right part of the window, find the section Managing Known Networks — all networks your PC has ever connected to are displayed here. Select the desired network and click Properties.

  • 🔍 Scroll down to the block "Properties".
  • 🔑 Find the line Network Password — by default it is hidden by dots.
  • 👁️ Click on the eye icon ("Show") to reveal the password. The system may ask you to confirm administrator rights.

If the button "Show" is inactive or missing, then your account does not have sufficient rights. In this case, use command line method or log in as administrator.

📊 What kind of computer do you have?
Windows laptop
Desktop PC running Windows
MacBook
Another

2. Extracting passwords via the Network and Sharing Center (alternative method for Windows)

This method works in Windows 7/8/10/11 This method is suitable if the first method didn't work. Here we use the classic Control Panel, which maintains compatibility with older OS versions.

Open Control Panel (can be found through the search in the menu) Start) and go to the section Network and Internet → Network and Sharing CenterIn the left menu, select Managing wireless networks (V Windows 11 This item may be called Changing adapter settings).

  • 📋 Find the desired network in the list and right-click on it.
  • 🔧 Choose Properties, then go to the tab "Safety".
  • 🔐 Check the box next to "Show input characters"to see the password.
⚠️ Attention: If the network isn't listed, it means Windows has "forgotten" its settings. In this case, the password can only be retrieved through command line or specialized utilities.

Make sure your computer is connected to a network (not necessarily the one whose password you are looking for)

Log in using an account with administrator rights

Disable your VPN or proxy if they are interfering with your access to system settings.

Check that your antivirus isn't blocking access to the registry (sometimes this interferes with the operation of utilities) -->

3. How to find out the Wi-Fi password via the command line (CMD)

This method is universal and works even if the graphical interface is not available. It is suitable for Windows 7 and newer, and also allows you to export all saved passwords to a file.

Open Command line as administrator (find in search) cmd, right click and select Run as administrator). Enter the command:

netsh wlan show profiles

You will see a list of all saved networks. Copy the name of the desired network (for example, TP-Link_1234) and run:

netsh wlan show profile name="TP-Link_1234" key=clear

In the execution results, find the section Security Settings - line Key content contains the password you are looking for. If the command returned an error Failed to execute command, check:

  • 🔄 Correctness of the network name (case is important!).
  • 🛡️ Administrator rights (whether CMD was launched with elevated rights).
  • 📡 Is the Wi-Fi adapter connected (a physically or software-disabled adapter blocks the command).
for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @echo %j | findstr -v -i "echo" & netsh wlan show profile name="%j" key=clear | findstr "Key Contents" >> WiFi_passwords.txt

File WiFi_passwords.txt will appear in the user folder.-->

4. Using PowerShell to Extract Passwords (Advanced Method)

PowerShell — a more powerful tool than CMD, and allows for automated password extraction. This method is useful for system administrators or those working with multiple networks.

Launch PowerShell as administrator and run the command:

(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key contents\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); [PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize

The script will output a table with all saved networks and their passwords. If you want to save the results to a file, add the following to the end of the command:

| Out-File -FilePath "$env:USERPROFILE\Desktop\WiFi_Passwords.txt"

The file will appear on your desktop. Please note: some antivirus programs may block script execution. PowerShell as suspicious activity. If necessary, add an exception for this action.

⚠️ Attention: Don't run scripts PowerShelldownloaded from untrusted sources. They may contain malicious code that can steal not only Wi-Fi passwords but also other confidential data.

5. Where are Wi-Fi passwords stored on macOS (for MacBook/iMac users)

On computers Apple passwords are stored in the keychain Keychain AccessTo extract them, open the utility Bunch of keys (can be found via Spotlight upon request Keychain).

In the left menu, select "System" or Local Elements, then in the right part of the window find the entry with the name of your Wi-Fi network (usually starts with airport:). Double-click on it and check the box. Show passwordThe system will ask for the account password. macOS.

  • 🍎 In macOS Ventura and newer the path may be different: System Preferences → Wi-Fi → Advanced → Password Memory.
  • 🔒 If the password is not displayed, check that you have administrator rights.
  • 📱 For synchronized networks (via iCloud) the password can be found on iPhone in the settings Wi-Fi → [network name] → Password.

On macOS, Wi-Fi passwords are stored encrypted in a file /Library/Keychains/System.keychain. Extract them manually without Keychain Access It is extremely difficult - you will need specialized utilities like chainbreak.

How to export all Wi-Fi passwords on macOS?

1. Open Terminal (Applications → Utilities → Terminal).

2. Run the command:

security find-generic-password -ga 'AirPort' | grep 'password:'

3. The system will ask for your account password – enter it.

4. All passwords will be displayed in the terminal in the format password: "your_password".

6. Third-party programs for viewing Wi-Fi passwords

If built-in tools don't help, you can use specialized utilities. They often offer additional features, such as exporting passwords to CSV or restore deleted profiles.

Program Supported OS Peculiarities Link (official website)
WirelessKeyView (NirSoft) Windows 7–11 Shows all saved passwords, export to TXT/HTML, does not require installation nirsoft.net
WiFi Password Revealer Windows 10/11 Simple interface, copying password to clipboard magicaljellybean.com
Keychain Access macOS Built-in utility, secure, integrated with iCloud Included in macOS
Wifi Password Decryptor Windows, macOS Recovers passwords from backups, paid version with advanced features securityxploded.com

Warning: programs from NirSoft (For example, WirelessKeyView) are often blocked by antivirus programs as "potentially dangerous." This is a false positive—the utilities do not contain viruses, but they can be used by hackers to steal data. Download them only from official website.

7. What to do if the password is not displayed or the network is not listed

Sometimes a saved network may "disappear" from the list, or the password cannot be retrieved using standard methods. Let's look at possible causes and solutions:

  • 🗑️ Network removed from profiles: Windows or macOS may have automatically cleared old networks. Try connecting to the network again—the password will be saved.
  • 🔄 Reset network settings: If you reset your network settings through Settings → Network → Network reset, all saved passwords will be deleted.
  • 🛡️ Domain Policies (for corporate PCs): On work computers, the administrator may prohibit viewing passwords. Please contact your IT department.
  • 🔧 System file corruption: If the teams netsh return errors, run a system file check:
    sfc /scannow

If none of the methods worked, there are two options left:

  1. View password on another device, which is connected to this network (smartphone, tablet, second computer).
  2. Reset settings router to factory (button Reset on the back panel) and configure it again. This will delete all personal settings, including the network name and password!

Frequently Asked Questions (FAQ)

Is it possible to find out the password for a Wi-Fi network I've never connected to?

No. Your computer only stores passwords for networks it's connected to at least once. If you've never logged into a network, you can find the password:

  • On the router sticker (usually on the back side).
  • In your provider's personal account (if the network is provided by an Internet provider).
  • Through a network administrator (for example, in an office or public place).
Is it safe to use password extraction programs?

Built-in Windows/macOS tools are completely safe. Third-party utilities (for example, WirelessKeyView) also do not harm the system, but:

  • Download them only from official websites.
  • Some antivirus programs block them as "potentially dangerous" - this is a false positive.
  • Do not share exported passwords with third parties.

For maximum security, use built-in methods (CMD or Keychain Access).

How to view Wi-Fi password on Android or iPhone?

On Android 10+ And iOS Passwords are stored in encrypted form, but they can be retrieved:

  • Android: Install a file manager with access to the root folder (for example, Root Explorer) and find the file /data/misc/wifi/WifiConfigStore.xml. Required root rights.
  • iPhone: Go to Settings → Wi-Fi, click on the icon «i» next to the network and select Copy password (works on iOS 16+).

Without root access on Android or jailbreak on iPhone, it is impossible to find out the password using standard methods.

Is it possible to recover a Wi-Fi password after reinstalling Windows?

When you perform a clean reinstallation of Windows, all saved passwords are deleted. However, if:

  • You did it backup copy through Settings → Update & Security → Backup, passwords can be restored from a backup.
  • Used Microsoft account, some settings are synced with the cloud (but not Wi-Fi passwords!).
  • Do you have any left? old disk with Windows, connect it as an external drive and extract passwords via C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces.
Why does the command prompt show a blank password?

This happens in three cases:

  1. The network is saved, but the password never introduced (for example, connection via WPS or through guest access).
  2. Password reset to empty value (sometimes happens on social networks).
  3. Network profile damaged. Remove it through netsh wlan delete profile name="NETWORK_NAME" and reconnect.