PDF download Download Article
Easily view the plain-text passwords from Wi-Fi networks
PDF download Download Article

If you need to find the Wi-Fi password for a past wireless connection, you can do so easily using the Windows command prompt or in your Network Settings. If you're using a Mac, you can find Wi-Fi passwords by entering a command into the terminal or checking the Keychain Access app. In this article, we'll walk you through the simple steps of finding the Wi-Fi password of a past connection using the command prompt (cmd), terminal, and more.

Find Wi-Fi Passwords in CMD: Quick Steps

  1. Press the Windows key and type "cmd".
  2. Right-click "Command Prompt" and select Run as administrator.
  3. Enter "netsh wlan show profiles" to find the name of the Wi-Fi network.
  4. Enter "netsh wlan show profiles (network-name) key=clear" to see the password for "network-name."
Method 1
Method 1 of 4:

Using Windows Command Prompt (CMD)

PDF download Download Article
  1. Open CMD with administrator permissions. Here's how:
    • Press the Windows key on the keyboard or click the Start menu.
    • Type cmd
    • Right-click "Command Prompt" and select Run as administrator.
    • Click Yes to confirm.
      • Using this option requires being on the admin account on the device or at least having the admin password.
  2. This displays a list of Wi-Fi networks this computer has connected to. Make note of the name of the network for which you want to find the password, as you'll need it in the next step.[1]
    Advertisement
  3. Replace "profilename" with the name of the network you want to find the password for.[2]
    • This command displays the network and security information for the Wi-Fi network, including the Wi-Fi password in plain text.
  4. The value of "Key Content" is the Wi-Fi password for the selected Wi-Fi network.[3]
    • If you want to see all the passwords for every Wi-Fi network you've connected to at once, enter this command at the prompt: for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @echo %j | findstr -i -v echo | netsh wlan show profiles %j key=clear
  5. Advertisement
Method 2
Method 2 of 4:

Using Windows 11 Network Settings

PDF download Download Article
Method 3
Method 3 of 4:

Using a Mac Terminal

PDF download Download Article
  1. Open Terminal. You will find Terminal on the Launchpad. You can also open it from Finder by going to Applications > Utilities > Terminal.[4] [[Image:Find the WiFi Password of a Past Connection Using Command Prompt (CMD) Step 6 Version 2.jpg|center]]
  2. Replace"Wi-Fi name" with the name of the network you want to find the password for. Make sure to replace "your-wifi" with your WI name.[5]
    • If you don't know the name of the Wi-Fi network, use the command security find-generic-password -D "AirPort network password" -a "" 2>/dev/null to display past connections.
  3. Once you confirm your password, you will see the password for the selected Wi-Fi network next to "password."
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    What if I get the message "key content is not available"?
    BakaOmi
    BakaOmi
    Community Answer
    That message usually appears if you aren't running CMD as an administrator. To run CMD as an administrator, right-click on it and select the option "Run as Administrator" (type in the admin password if it asks for one), and voila. Now retype the netsh command and you'll have the key content.
  • Question
    What do I do if it shows "present" as the security key?
    Ezekiel Akinyelu
    Ezekiel Akinyelu
    Community Answer
    The word present means the password is the current password of the WiFi. Just follow the instructions and you will get what you are looking for.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

Warnings

  • This usually only works for WPA, WPA2, and sometimes WEP Wi-Fi connections. Most WiFi is WPA2 or WPA3.[7]
Advertisement

You Might Also Like

Find Your WiFi PasswordHow Can I Find out My Wi-Fi Password?
Find a Router Password Find a Router Password: Admin & Wi-Fi Passwords
Find Your WiFi Password when You Forgot ItFind Your WiFi Password when You Forgot It
Find Network Security KeySimple Ways to Find a Network Security Key
See Your WiFi Password on an iPhone View Your Wi-Fi Password on iPhone: The Complete Guide
Change a Computer Password Using Command Prompt Change a Windows Password Using Command Prompt
Easy Ways To Share Your Wifi PasswordEasy ways to share your wifi password
See Who Is Connected to Your Wireless Network See Who Is Connected to Your Wireless Network
Change Your Wi Fi PasswordChange Your Wi Fi Password
Add a Password to Your Wireless Internet Connection (WiFi) Add a Password to Your Wi-Fi: 6 Methods
Find Your Router's IP Address Find Your Router's IP Address: Mobile, PC, Mac, Chromebook, & Linux
Find the MAC Address of Your ComputerFind the MAC Address of Your Computer
Find the SSID on a Computer Check your SSID on Windows, Mac, Chromebook, & Linux
Access a RouterAccess Your Router: Easy Steps to Log In & Change Settings
Advertisement

About This Article

Nicole Levine, MFA
Co-authored by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions. This article has been viewed 314,382 times.
How helpful is this?
Co-authors: 9
Updated: October 1, 2025
Views: 314,382
Categories: Wireless Networking
Thanks to all authors for creating a page that has been read 314,382 times.

Is this article up to date?

Advertisement