How To Know The Wifi Password of Your Current Wifi Network Connection | in Linux, Mac and Windows

In this post i will be showing you how to retrieve a wifi password from your linux, mac and windows operating system.


How To Know the wifi password of a connected wifi network can be done in two ways, either through the command line (CMD) or through the Graphics User Interface (GUI).

How To Know The Wifi Password of Your Current Wifi Network Connection For Windows

How To Know Your Current Wifi Connection Password Through Command Line (CMD)

  • Open the command prompt in administrator mode. 
  • or Enter “cmd” in the Run box, 
  • right-click the command prompt icon and choose Run as Administrator. In order to see the password.
  • Enter the following command and hit enter.
netsh wlan show profile name=WifiName key=clear

Note: Replace WifiName with the name of your network name (name of the Wi-Fi network that your computer is connected to). You can see this password under the Security Setting section.

  • If you want to view your previous Wi-Fi connections, then you need to simply type the command:
netsh wlan show profiles and press enter.

  • Or, if you wish to see only the password and not any other information, use the findstr command:
netsh wlan show profile name=WifiName key=clear | findstr Key

How To Know The Wifi Password of Your Current Wifi Network Connection on Mac

To know the configuration details of the Wi-Fi network on your Mac you will use Keychain. We can use the BSD command “security” to query anything stored inside Keychain, including the Wi-Fi password.

  • To find the Wi-Fi password on your Mac, 
  • Press Cmd+Space to open the Spotlight search dialog,
  • Then type terminal to open the Terminal window. At the command line, 
  • Enter the following command (replace WifiName with your Wi-Fi name).
security find-generic-password -wa WifiName
  • Then, enter your Mac username and password to access the OS X keychain and your Wi-Fi network password of the current network will appear in plain text.

How To Know The Wifi Password of Your Current Wifi Network Connection on Linux

You can use this technique for getting Wi-Fi passwords on Linux too. All you have to do is substitute WifiName with the wireless name (SSID) of your network. The value of the field psk is your Wi-Fi password.

sudo cat /etc/NetworkManager/system-connections/WifiName | grep psk=

  • You can use the following command, if you don’t know the name of your current network.

sudo grep psk= /etc/NetworkManager/system-connections/*

How To Know The Wifi Password of Your Current Wifi Network Connection Through Graphics User Interface (GUI)

  • Step 1: Go to the system tray and right click on internet access and select the option “Open Network and Sharing Center.”
  • Step 2: Then, click on “Change Adapter setting.”
  • Step 3: You now need to click on Wi-Fi network and choose the option of “Status” on the drop-down menu.
  • Step 4: You need to click on “Wireless Properties” in the very next window.
  • Step 5: There you need to select the tab “Security” and then check the option “Show Characters”
Share With Your friends with the share icons below. Thanks
Previous Post Next Post