Display Wifi Password in Mac via Terminal

Display Wifi Password in Mac via Terminal

Given the complexity of some wi-fi network passwords combined with the general infrequency of entering them and that they’re typically saved on use, it’s not terribly unusual to forget what a specific routers wireless password is. Fortunately, if you’re on a Mac, there are a few ways to go about finding those lost or forgotten wi-fi router login details.

Open terminal, copy and paste the following command:
security find-generic-password -ga “wifi_name” | grep “password:”

Replace the wifi_name to the wireless access point name

Bookmark the permalink.


  1. what is this? i did not understand anything. please post screenhsots or email them to me.

  2. Freinds please help me to learn this .thanks …

  3. does not work please help this is error message:
    The specified item could not be found in the keychain.

  4. does security find-generic-password -ga “wifi_name” | grep “password:”
    only work on saved passwords?

Leave a Reply

Your email address will not be published. Required fields are marked *