# How to find Wifi Password

[![](https://cdn.hashnode.com/res/hashnode/image/upload/v1626146879761/aWBM4L3Lj.jpeg)](http://reliablesoftwares.com/blog/find-wifi-password/how-to-find-wifi-password/)If you have to find out password of those wifi connection configured on you Mac, Linux or PC follow the instruction:

### [](#reveal-the-wifi-password-on-mac)REVEAL THE WIFI PASSWORD ON MAC

Your Mac OS X uses Keychain to store the configuration details of the WiFi network and we can use the BSD command “security” to query anything stored inside Keychain, including the Wi-Fi password. Here’s how:

Open Terminal window. At the command line, enter the following command (replace wifiname with your actual WiFi name), then enter your Mac username and password to access the OS X keychain and the Wi-FI network password would be displayed on the screen in plain text.  

    **security find-generic-password -wa wifiname**
    

### [](#reveal-the-wifi-password-on-pc)REVEAL THE WIFI PASSWORD ON PC

Open the command prompt in administrator mode. Type “cmd” in the Run box, right-click the command prompt icon and choose _Run as Administrator_. Now enter the following command and hit enter to see the WiFi password.  

    **netsh wlan show profile name=wifiname key=clear | findstr Key**
    

### [](#reveal-the-wifi-password-on-linux)REVEAL THE WIFI PASSWORD ON LINUX

This trick for getting Wi-Fi passwords works for Linux too. Substitute wifiname with the wireless name (SSID) of your network. The value of the field _psk_ is your WiFi password.  

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

If you don’t know the network name, use the following command.  

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