Smart Systems for Home

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

How to Find Wi-Fi Password in Windows 11

· 6 min read · Home Networking

In this article
  1. Background: How Windows Stores Wi-Fi Passwords
  2. How to View a Saved Wi-Fi Password via Command Prompt
  3. Using Settings App: Limited Visibility
  4. Common Problems & Why You Might Not See the Password
  5. Recovery Alternatives When Built-in Tools Fail
  6. Safety & Security Best Practices
  7. Costs, Alternatives & Pro Tips
  8. Frequently Asked Questions

No, Windows 11 does not store or display your Wi-Fi password in plain text by default—but you can retrieve it using built-in tools. If you’re the network administrator or own the device that connected to the Wi-Fi network, Windows keeps the password encrypted and allows authorized users to view it via Command Prompt, Settings, or PowerShell. This article explains how, why, and when it’s possible—and what to watch out for.

Background: How Windows Stores Wi-Fi Passwords

Windows 11 stores saved Wi-Fi network credentials—specifically the pre-shared key (PSK) or passphrase—in a protected system store managed by the WLAN AutoConfig service (Wlansvc). These profiles are saved as XML files under C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces, but the actual password is encrypted using Windows Data Protection API (DPAPI), tied to the user’s login credentials. This means only the user account that originally saved the network (or an administrator in some domain environments) can decrypt and view the password. The system deliberately avoids showing it in Settings or the Wi-Fi status UI to reduce accidental exposure, especially on shared or public devices.

How to View a Saved Wi-Fi Password via Command Prompt

The most reliable method uses Command Prompt (run as Administrator). Here’s how:

  1. Press Win + R, type cmd, then press Ctrl + Shift + Enter to open Command Prompt as Administrator.
  2. Enter netsh wlan show profiles to list all saved Wi-Fi networks.
  3. Identify the network name (SSID), then run netsh wlan show profile name="YourNetworkName" key=clear (replace with the exact SSID, including quotes if it has spaces).
  4. Scroll to the Key Content field under Security settings. That value is the Wi-Fi password.

This method works for both personal (WPA2-Personal/WPA3-SAE) and enterprise networks (WPA2-Enterprise), though enterprise networks often use certificate-based authentication instead of a shared password—so Key Content may be blank or absent.

Using Settings App: Limited Visibility

Windows 11’s Settings app does not show the password directly in the Wi-Fi interface. However, you can access it indirectly:

  1. Go to Settings > Network & Internet > Wi-Fi.
  2. Click Manage known networks, then select the target network.
  3. Click Properties.
  4. Under Network security key, check Show characters to reveal the password.

Note: This Show characters option only appears if the current user profile owns the saved profile. If the network was saved by another user (e.g., on a shared PC), or if Group Policy restricts credential exposure, the field may remain hidden or grayed out—even for administrators. This is a security feature, not a bug.

Common Problems & Why You Might Not See the Password

Several issues prevent password recovery, even for legitimate users:

  • Profile ownership mismatch: If another user account saved the network (e.g., on a family PC), the current user may lack permission to view it, even with admin rights.
  • Group Policy restrictions: In corporate or school environments, IT admins can disable password display via policies like Do not display the network security key.
  • Enterprise networks (802.1X): These use dynamic keys or certificates instead of static passwords. You’ll see Key Content as Not displayed or blank.
  • Password never saved: If you selected Do not remember this network during connection, Windows won’t store credentials at all.
  • Corrupted profile: Rare, but damaged XML profile files may cause netsh to return errors like The profile is not available on this computer.

Recovery Alternatives When Built-in Tools Fail

If the standard methods don’t work, consider these options—but always prioritize security:

  • Router admin page: Log in to your router (typically at 192.168.1.1 or 192.168.0.1) using its admin credentials. The Wi-Fi password is usually under Wireless > Security settings. This is the most common fallback for home users.
  • Check physical labels: Many routers have the default Wi-Fi name and password printed on a sticker on the device’s back or bottom.
  • Other devices: On Android, go to Settings > Network & Internet > Hotspot & tethering > Wi-Fi hotspot (for personal hotspots), or use a file explorer to access /data/misc/wifi (requires root). On macOS, use Keychain Access to search for the network name and reveal the password.
  • Password manager: If you used one (e.g., Bitwarden, 1Password) to store the Wi-Fi key, retrieve it from there.

Avoid third-party tools that claim to “recover” Wi-Fi passwords unless they’re open-source and well-audited (e.g., NirSoft’s WirelessKeyView). Many free utilities are bundled with ads or potentially unwanted programs. The built-in Windows tools are safer and fully supported.

Safety & Security Best Practices

Revealing Wi-Fi passwords carries real risks. Follow these guidelines:

  • Never share passwords verbally or via unencrypted messages (SMS, unsecured email, public chat). Use encrypted channels or in-person.
  • Change passwords regularly, especially after someone leaves your household or organization, or if a device is lost/stolen.
  • Use WPA3 when possible: It offers stronger encryption and mitigates offline dictionary attacks compared to older WPA2. Most modern routers support it.
  • Avoid reusing passwords across Wi-Fi networks and other services (email, accounts). A compromised Wi-Fi password could enable man-in-the-middle attacks on your local network.
  • Disable WPS (Wi-Fi Protected Setup) if unused. It has known vulnerabilities (e.g., Pixie Box attacks) that bypass password strength.

Costs, Alternatives & Pro Tips

There are no direct costs to retrieve a saved Wi-Fi password using Windows tools—no software purchases or subscriptions needed. However, consider these alternatives:

  • QR code sharing: Many routers and phones (Android 10+, iOS 11+) let you generate a Wi-Fi QR code. Scanning it auto-connects a device without entering the password manually. This reduces exposure risk. On Android, go to Settings > Network & Internet > Wi-Fi > Setup a new device.
  • Guest networks: Set up a separate Wi-Fi network for visitors. This isolates them from your primary devices and lets you change its password independently—without disrupting your main network.
  • Password complexity: Use at least 12 characters with a mix of letters, numbers, and symbols. Avoid dictionary words. A strong password thwarts brute-force attacks, especially on home networks where attackers might capture handshakes.

Pro tip: After retrieving the password via Command Prompt, copy it to the clipboard with echo off & netsh wlan show profile name="SSID" key=clear | findstr "Key Content" then manually type it—or use a password manager. Avoid pasting into plain-text files or screenshots.

Frequently Asked Questions

Can I see the Wi-Fi password for a network I’m not connected to?
Yes—if Windows has saved the profile (even if you’re currently disconnected), you can view the password using the netsh command or Settings app. Windows retains profiles until you manually forget the network.

Why does “key=clear” show “Not available” in Command Prompt?
This usually means either (1) the network uses WPA2-Enterprise/802.1X authentication (no static password), (2) Group Policy blocks display, or (3) the profile is corrupted. Try connecting to the network first, then re-run the command.

Does resetting the network in Windows 11 delete saved Wi-Fi passwords?
Yes. Going to Settings > Network & Internet > Advanced network settings > Network reset removes all saved Wi-Fi and Ethernet profiles, requiring you to reconnect and re-enter passwords.

Can I view a Wi-Fi password from another Windows user account?
Only if you’re logged in as an Administrator and the profile wasn’t restricted. Run Command Prompt as Administrator, but note that DPAPI encryption ties profiles to the original user’s credentials. In practice, passwords saved by one user may be inaccessible to another—even admins—unless domain policies override this.

Is it safe to store Wi-Fi passwords in a text file on my desktop?
No. Plain-text files are easily accessed by anyone with physical or remote access to your PC. If you must back up passwords, use a dedicated password manager with encryption, multi-factor authentication, and secure backup sync.

What if I changed my router’s password but Windows still shows the old one?
Windows won’t auto-update the saved password. You must manually forget the network in Settings, then reconnect and save the new credentials. Otherwise, Windows will keep trying the old (now incorrect) key, causing repeated connection failures.