How to view your Wi-Fi password on a Mac

It's common to need to connect a new device to your home network but have long forgotten the Wi-Fi password. Apple device owners often encounter this problem, as macOS stores access keys automatically for years without requiring entry. However, when it comes time to manually enter the data on a smartphone or tablet, remembering the complex character set becomes nearly impossible. Fortunately, the operating system macOS has built-in mechanisms for extracting this information.

Unlike Windows, where network data is stored in specific registries, Macs use a secure password storage system called Bunch of keysThis centralized storage encrypts all your logins, website passwords, and Wi-Fi access keys. This data can be accessed in two main ways: through the program's graphical interface or, for more advanced users, using the command line.

It's important to understand that you'll need administrator rights to view your saved password. Apple's security system won't allow you to easily view sensitive data without verifying your identity. This could involve entering your account password or using biometric authentication. Touch ID, if your MacBook has the appropriate sensor. Below, we'll cover both methods in detail so you can choose the most convenient one.

Using Keychain Access

The easiest and most visually understandable way to find a forgotten password is to use a built-in macOS app. Keychain Access is preinstalled on every Mac and serves as a secure repository for all your digital identities. You can quickly find it in Spotlight by pressing a key combination. Command + Space and started typing the name of the application.

After launching the app, you'll see a list of all your saved passwords. The interface may seem cluttered, but navigation is intuitive. Find the "Passwords" or "System" section in the left column, then sort the list by name to quickly find the network you need. Note that the list may display both current networks and old ones your computer has connected to in the past.

  • 🔍 Click on the name of your Wi-Fi network in the list to select it.
  • 👁️ Click the eye icon or check the "Show password" box at the bottom of the window.

  • 🔑 Enter your administrator password or use Touch ID to confirm.

After successful authorization, the password field will change from a series of dots to readable text. You can copy it and use it to connect other devices. If you have iCloud Keychain sync enabled, this password will be the same on all your Apple devices, simplifying access management within the ecosystem.

⚠️ Attention: If the access key field doesn't appear after entering the administrator password or the program returns an error, check to see if the key database file is corrupted. In rare cases, you may need to create a new keychain.

📊 How do you usually store Wi-Fi passwords?
I write it down in a notebook
I remember it by heart
I use a password manager
I'm sitting without a password (open network)
I ask the neighbors

Finding a password using the macOS Terminal

For users who prefer to work with the command line or can't find the desired network in the graphical interface, there is an alternative method. The terminal allows you to request a password directly from the security system using a special utility. securityThis method is often faster and avoids unnecessary menu navigation.

To use this method, open the Terminal app. You can also find it through Spotlight search. You'll need to enter a command that will prompt the system for the password for a specific network. The command syntax is strictly defined, and any typo in the network name will result in an error.

security find-generic-password -wa"YourNetworkName"

Replace Your_Network_Name the exact name of your Wi-Fi router. It's important to maintain proper letter case and spaces, if any, in the name. After pressing Enter The system will ask you to confirm the action. As with the graphical interface, you will need to log in. If the network name is entered correctly, the terminal will display the password in plain text.

Recovering access via iPhone or iPad

If you don't have easy access to your Mac's settings, but have an iPhone or iPad signed in to the same Apple ID, you can use your mobile device. Apple syncs Wi-Fi passwords across devices via iCloud, so the passkey stored on your phone will be identical to the one stored on your computer.

Devices running iOS 16 and later, as well as iPadOS 16+, now feature the long-awaited ability to view saved passwords directly in Settings. Previously, this was only possible through complex workarounds or third-party apps, but now the process is native. Go to the Wi-Fi settings, find the desired network, and tap the information icon.

On the screen that opens, you'll see a "Password" field hidden by dots. Tap this field several times or click the eye icon. After biometric verification (Face ID or Touch ID), the password will become visible. You can copy it and send it to yourself via AirDrop or Messages to enter it on your Mac.

  • 📱 Open Settings on your iPhone and go to the Wi-Fi section.
  • ℹ️ Click the blue "i" icon next to your network name.
  • 👆 Tap the "Password" line and confirm your identity.

This method is especially convenient if you're away from your computer but urgently need to share your password with guests or connect a new device. Syncing is almost instantaneous, so a password changed on one device will update on others, if the corresponding option is enabled in iCloud.

What to do if the password is not displayed

Sometimes users encounter a situation where none of the methods work. The desired network may not be listed in the Keychain window, or the system may return an error when attempting to browse. This is often because the computer never automatically connected to this network, or the network profile was deleted due to a configuration error.

In such cases, it's worth checking the list of all saved networks, not just preferred ones. It's also possible that the password was saved in the "Login" keychain, but you're looking at it in "System," or vice versa. Try switching between tabs in the Keychain app to find the entry you need.

Problem Possible cause Solution
The network is not on the list Mac never connected automatically Try connecting again knowing the password
Authorization error Incorrect administrator password Reset your user password or use Touch ID
The password is hidden Keychain failure Restart your Mac or create a new connection
The terminal returns an error. Invalid network name in command Check the exact network name and letter case

If the problem is caused by a corrupted key database, the system may prompt you to create a new keychain. Be careful: this may cause loss of old saved passwords if they haven't been synced with iCloud. It's recommended to back up important data using Time Machine beforehand.

⚠️ Attention: The Settings interface and layout may vary slightly depending on your macOS version. On older versions (pre-Catalina), some menu items may have different names.

How to reset Keychain on Mac?

If your keychain is corrupted and interfering with your work, you can reset it. To do this, open Finder, press Shift+Command+G, and enter ~/Library/Keychains. Delete or rename the files in this folder. After a reboot, the system will create a new keychain, but old passwords will be lost.

Security of saved passwords

Storing passwords in Keychain It's considered one of the most secure methods in the industry. Data is encrypted and protected with system keys tied to specific hardware and user accounts. Even if someone gains physical access to your Mac's hard drive, they won't be able to easily extract passwords without knowing the master password.

However, security depends not only on technology but also on user behavior. Never grant administrator privileges to unauthorized users or allow unknown programs to access Keychain. Malware often disguises itself as legitimate applications and requests access to password storage.

  • 🛡️ Update macOS regularly to patch security vulnerabilities.
  • 🔒 Use a strong password to log in to your Mac account.
  • 👀 Keep an eye out for Keychain access requests from new apps.

The "Hidden Wi-Fi" feature is also worth mentioning. If your network is hidden, it won't appear in the general list of available networks, but your Mac can still store its password if you've ever connected to it manually. In Keychain Access, such a network will be listed under its real name (SSID), even if it's hidden over the air.

Resetting Network Settings on Mac

In situations where your computer stops seeing the network or constantly displays connection errors, it's sometimes easier to delete the old network profile and create a new one. This won't immediately remove the password from Keychain Access, but it will force the system to prompt you for it again when you try to connect, which can help refresh the configuration.

To delete a network, go to System Preferences (or System Preferences in newer versions of macOS), select the Wi-Fi section, and look for the "Advanced" button (usually at the bottom of the list or in the action menu). In the window that opens, you'll see a list of known networks. Select the one you want and click the minus (-) sign or the delete button.

After this, the network will disappear from the preferred list. The next time you connect, your Mac will ask for the password again. If you don't remember it, use the methods described above to retrieve it from Keychain before deleting the profile. This will allow you to retain access without having to reset your router.

It's important to note that deleting the network from your computer doesn't change the password on the router itself. If you're changing the password for security reasons, you'll need to log in to the router's admin panel through a browser. To do this, enter the gateway IP address (often 192.168.1.1 or 192.168.0.1) in the browser's address bar.

Is it possible to view a Wi-Fi password if my Mac isn't connected to it?

No, it's impossible to directly view the password for a network your computer has never connected to and doesn't have a saved profile using macOS. However, if the password was synced with iCloud Keychain from another device (e.g., an iPhone), it may appear in Keychain automatically after authorization.

Where is Keychain physically stored on disk?

Keychain database files are located at ~/Library/Keychains/ in a hidden user folder. The main files typically have the extension .keychain-db. Direct editing of these files without using system utilities is prohibited and may result in data loss.

What should I do if I forgot my Mac administrator password?

For security reasons, it's impossible to restore access to Keychain without the administrator password or the Apple ID associated with your account. You can try resetting your account password via your Apple ID at startup or using Recovery Mode.

Do Wi-Fi passwords sync with Windows via iCloud?

Direct syncing of Wi-Fi passwords from macOS to Windows via iCloud for Windows is limited. While Safari passwords can sync to Edge or Chrome on Windows, system Wi-Fi keys typically remain within the Apple device ecosystem.