It's common to need to connect a new device to an existing network but forget the password. Apple device owners often wonder how to view the Wi-Fi password on a Mac if the primary computer is already connected to the router. Fortunately, macOS stores access keys in a special secure vault, making them easy to retrieve with administrator privileges.
Restoring access does not require installing third-party software or complex command line manipulation, although such methods also exist. iCloud Keychain Syncs saved passwords across all devices, making the process convenient but requiring an understanding of the system's security mechanisms. Below, we'll cover the current methods for various versions of macOS.
Please note that menu interfaces may differ slightly depending on the operating system version. macOS Ventura and newer versions have a modified settings structure compared to the classic ones macOS Monterey or Big SurIt is important to pay close attention to the names of menu items when navigating.
Using Keychain Access to Find a Password
The most reliable and intuitive way to find your saved access key is to use the built-in Keychain Access utility. This tool manages all passwords, certificates, and keys stored on your computer. To get started, open the program, which can be easily found in Spotlight by pressing the following key combination: Command + Space and entering the name of the utility.
After launching the app, a list of all saved entries will open. In the left panel, select the "Passwords" category to filter out unnecessary system entries. Then, enter your wireless network name (SSID) in the search bar. The system will find the corresponding entry, which usually has a lock icon.
Double-click the found entry to open the Properties window. In the dialog box that appears, find the "Show password" checkbox and enable it. The system will prompt you to confirm your access rights by entering your Mac user account password or using Touch ID. After successful authentication, the key will appear in plain text in the field next to the checkbox.
☑️ Checking Keychain Access
⚠️ Attention: If the system refuses to display the password even after entering the correct data, the integrity of the key fob may be damaged or you do not have administrator rights on this computer.
Finding a password through Terminal and the command line
For users who prefer the command line, or in cases where the graphical interface does not work correctly, there is a method via TerminalThis method allows you to quickly get information about the network you're currently connected to, or any other saved network. Open Terminal via Spotlight search or from the Applications → Utilities folder.
To display the password for the currently active network, you can use a command that accesses the system key. Enter the following line and press Enter:
security find-generic-password -wa "your_network_name"
Replace your_network_name The exact name of your Wi-Fi network (SSID). The system will request permission to access the key. After confirmation, a line with the password will appear in the terminal. This method is faster than searching through the GUI and is convenient for scripts or quick copy-paste.
What to do if the command doesn't work?
If the command returns an error, check the spelling of the network name. It is case-sensitive. Also, make sure the network was previously saved on this Mac. In some corporate environments, access to security keys may be restricted by MDM policies.
One extra letter or incorrect syntax can cause a runtime error. However, this method doesn't make any changes to the system, so it's completely safe for user data.
Viewing your password in macOS Ventura and Sonoma
In newer versions of the operating system, such as macOS Ventura And SonomaApple has significantly redesigned the System Preferences interface, bringing it closer to iPadOS. Wi-Fi password management is now located in a separate section, making it easier for regular users. Go to the Apple menu and select "System Preferences."
In the side menu, find and click "Wi-Fi." Scroll down to the list of known networks on the right side of the window. Find the desired network in the list and click the information icon (three dots or the letter "i" in a circle) next to it. In the network properties menu that opens, you'll see the "Password" field.
Tap the hidden password field (usually a dotted line). The system will prompt you to authenticate using Touch ID or your user password. Once confirmed, the password will be copied to the clipboard or displayed as text, allowing you to immediately use it to connect to another device.
| macOS version | Location of settings | Authorization method | Copy to clipboard |
|---|---|---|---|
| macOS Sonoma | System Preferences → Wi-Fi | Touch ID / Passcode | Automatically |
| macOS Ventura | System Preferences → Wi-Fi | Touch ID / Passcode | Click to download |
| macOS Monterey | Bunch of keys | Admin password | Manually |
| macOS Big Sur | Bunch of keys | Admin password | Manually |
The new interface is more user-friendly, but it hides some advanced settings available in older versions. However, the basic function of viewing saved keys has been implemented as quickly and easily as possible.
Working with access keys in older versions of macOS
If you are using an older operating system, such as macOS Catalina, Mojave or High Sierra, the interface will remain classic. These versions don't offer direct access to Wi-Fi passwords through the network settings menu. The only built-in tool is the Keychain utility mentioned above, but accessing it may not be obvious to beginners.
Open Finder, go to the Applications folder, then Utilities, and launch Keychain Access. Select Passwords from the list of categories on the left. In the list of keys, find the name of your wireless network. Note that the list can be sorted by date added or alphabetically, so use the search.
Double-clicking the entry will open the Properties window. Make sure you're on the "Attributes" tab. Check the "Show Password" box. macOS will prompt you for the computer's administrator password. This is a security measure to prevent data theft by intruders who gain physical access to an unlocked Mac.
Older OS versions sometimes have issues displaying Cyrillic network names or duplicate entries. If you see multiple entries with the same name, try viewing each one, as the password may have changed and the old entry remains archived.
Reset and manage network settings
Sometimes users want to not only view the password but also reset the network settings if connection conflicts or authentication errors occur. MacOS doesn't have a "Reset Network" button like iOS, but you can delete the network profile, which will cause the system to forget the password and settings. This is useful if you've changed your router but left the same network name.
To delete a network, go to System Preferences → Network. Select Wi-Fi in the list on the left and click Advanced (on older macOS systems) or More Details (on newer macOS systems). Select the desired network from the list of known networks and click the minus (-) or delete button. This will prevent your computer from forgetting the password.
If you plan to reset your router to factory settings, you will need physical access to the device or knowledge of the router's admin panel password, which is often different from the Wi-Fi password. Resetting Network Settings on Mac does not affect the settings of the router itself, it only clears the connection cache on the computer.
⚠️ Important: Before deleting a network, make sure you have an alternative way to access the internet (such as an Ethernet cable or phone tethering) if you don't remember the password to reconnect.
Once a network is deleted, it will disappear from the preferred list. When attempting to connect to it again, the system will prompt you for the password again. This is a standard troubleshooting procedure when a device becomes stuck on old security configurations.
Security and sync via iCloud
One of the key features of the Apple ecosystem is password syncing via iCloud. If iCloud Keychain is enabled on your Mac, Wi-Fi passwords saved on your iPhone or iPad will automatically appear on your computer, and vice versa. This means if you've ever entered a password on your phone, you can already see it on your Mac.
You can check the sync status in System Preferences by going to your Apple ID profile and selecting iCloud. Make sure the "Keychain" toggle is turned on. This not only provides convenience but also ensures backup of your access keys. When you buy a new Mac, all your networks will be available immediately after signing in.
However, it's important to remember security. Anyone with access to your Apple ID and a trusted device could theoretically access your saved passwords. Therefore, it's crucial to use two-factor authentication and a strong Apple ID password. Passwords in Keychain are encrypted end-to-end., making them inaccessible even to Apple employees.
Is it possible to see the guest network password?
Guest networks often don't require a password or use dynamic keys. If the guest network uses a static password and it was saved on the Mac, you can find it using the same methods in Keychain Access.
Regularly review the list of devices that have access to your account. Removing unknown devices is a digital hygiene best practice. This ensures that your stored data, including Wi-Fi keys, remains private.
Is it possible to view a Wi-Fi password even if my Mac isn't currently connected to the network?
Yes, you can. macOS keeps a history of every network you've ever connected to and saved its password. Even if a network is currently out of range, its access key will remain in Keychain until you manually delete it.
What should I do if Keychain Access requires a password that I don't remember?
This is the password for your Mac user account (login). If you've forgotten your account password, restoring access to Keychain without resetting the user password is impossible for security reasons. You can try resetting the user password via your Apple ID during startup.
Where are Wi-Fi passwords physically stored on a Mac hard drive?
The Keychain database is usually located at ~/Library/Keychains/login.keychain-dbHowever, this is a binary encrypted file, and reading it directly without using system APIs or the Keychain utility is pointless and may corrupt the data.
Will Wi-Fi passwords transfer to a new Mac when migrating data?
Yes, when using Migration Assistant or restoring from a Time Machine backup, all saved Wi-Fi networks and their passwords will be transferred to the new computer. They will also sync if iCloud Keychain is enabled.
Is it possible to export a list of all Wi-Fi passwords to a text file?
macOS natively doesn't allow exporting passwords in plaintext for security reasons. You can export the Keychain itself as an archive, but opening it requires a password. Third-party scripts exist, but their use carries security risks.