Find a saved Wi‑Fi password on Windows using Command Prompt

Use Command Prompt to reveal the saved Wi‑Fi password for a network your PC is currently or previously connected to — no router reset required.

What the video covers

Reveal the saved Wi‑Fi password for a wireless profile stored on the local Windows PC using built‑in netsh wlan commands.

Watch the video on YouTube

Step-by-step instructions

  1. Open Command Prompt
    Press the Windows key, type cmd, and open Command Prompt. For best results use an elevated/admin Command Prompt if you encounter permission issues.
  2. List saved Wi‑Fi profiles
    Run: netsh wlan show profiles. Note the exact network name (profile) you want from the Profiles list.
  3. Show the profile with clear key
    Run: netsh wlan show profile name="WiFiName" key=clear — replacing WiFiName with the profile name you noted (include quotes if the name has spaces).
  4. Locate the password
    In the output, scroll to the Security settings section and find Key Content. The value shown is the Wi‑Fi password in plain text.

Watch the video

Video thumbnail for Find a saved Wi‑Fi password on Windows using Command Prompt Play tutorial

Watch on YouTube

Why it matters

When a Windows PC is already connected to (or has previously connected to) a Wi‑Fi network, the network’s passphrase is stored in a local profile. The netsh wlan commands can display that profile and show the password without resetting the router or asking others.

Check your result

After running the profile command with key=clear, find the Security settings section and confirm the Key Content field contains the Wi‑Fi passphrase in plain text.

Troubleshooting

If the Wi‑Fi profile does not appear in the list or Key Content is missing: confirm you used an Administrator Command Prompt (some profiles or system policies require admin rights), ensure the PC has connected to that network before, and check whether group policies or security software prevent showing saved keys.