A complex WiFi password increases your security and the likelihood of forgetting a long chain of letters and numbers. Fortunately, there are two quick ways to quickly and securely retrieve your WiFi password at home.
Your Mac stores Wi-Fi passwords in your keychain and you can view them in the Keychain Access application on your computer Mac.
To start it, open Spotlight Search by clicking the magnifying glass in the menu bar at the top right (or press Command + Spacebar). Type "keychain access" into the new search bar and press Enter.
In the Keychain Access window that appears, click Passwords.
Double-click the name of the Wi-Fi network. In the pop-up window, select the "Show password" check box. You may need to enter your Mac's administrator username and password to see the password. Keep in mind that keychain access also stores passwords for different apps, websites, and more.
You can also do this from the terminal.
To start Open Spotlight Search in a terminal window on your Mac by clicking the magnifying glass in the menu bar at the top right (or press Command + Spacebar). Type "Terminal" and press Enter. You can also start the terminal by opening Finder and navigating to Applications> Utilities> Terminal.
Enter the following command in this new window and replace the name of the Wi-Fi network with "WIFI-NAME":
Security find-generic-password -ga WIFI NAME | grep "password:"
You may need to enter your Mac's administrator username and password to see the password. Your Mac displays the password in plain text in the terminal.