How to find the password for a connected Wi-Fi network on a MacBook

It's quite common to need to connect a new device to a network but forget the password. Apple device owners often face the question of where to find this information if it's not recorded anywhere. Fortunately, macOS stores all access keys in a secure vault, which can be accessed in several ways.

In this article, we'll look at the most effective methods for retrieving forgotten passwords. You can use built-in utilities or the command line to accomplish this task. The key is to have physical access to the computer and administrator privileges, as without them, the system will not reveal confidential information.

iCloud Keychain is the primary password storage tool in the Apple ecosystem. It's where macOS stores data about every network you've ever connected to. Retrieving this information doesn't require installing any third-party software, but it does require careful consideration when entering security prompts.

Using Keychain to Find a Password

The easiest and most reliable way to find a forgotten access key is to use the system utility Keychain Access. This tool manages all your credentials, including certificates, notes, and network passwords. To get started, open the app via Spotlight search or find it in the Applications folder under Utilities.

After launching the program, you'll see a list of all saved objects. Enter the name of your Wi-Fi network (SSID) in the search bar. The system will filter the list and display the desired item. Double-clicking on the network name will open the properties window, where we're interested in the "Show Password" tab.

When you click the checkbox, the system will ask you to confirm your administrator rights. Enter the username and password for your macOS account. After successful authorization, the required character combination will appear in the field next to "Show password." You can now copy or rewrite it.

⚠️ Attention: If you use iCloud Keychain, your password may be synced across your other Apple devices. Make sure you're viewing the data on a Mac that's connected to the network, or check your sync settings.

It's worth noting that the interface may differ slightly in some versions of macOS. However, the utility's operating logic has remained unchanged for many years. If you can't find the network in the "System" list, try switching to the "iCloud" tab on the left side of the program window.

📊 What version of macOS are you using?
Mojave/Catalina
Big Sur/Monterey
Ventura/Sonoma
Older version

Viewing through System Preferences in newer versions of macOS

In recent versions of the operating system, such as Ventura and Sonoma, Apple has reorganized the settings menu. Network management is now located in a separate section, reminiscent of the iPadOS interface. This makes viewing passwords more intuitive for mobile users.

Open System Preferences and go to the Wi-Fi section. Find the network you're connected to or the one you need to recall details for. Next to the network name or (if connected), you'll often see a button with three dots or an information icon. Click it to reveal additional options.

In the menu that opens, you'll see a password field hidden by dots. Next to it is usually an eye icon or a "Copy" button. When you tap it, the system will ask you to confirm it via Touch ID or your user password. biometric protection, which ensures that only the owner of the device can see secret data.

  • 📱 Open System Preferences from the Apple menu.
  • 📡 Go to the "Wi-Fi" section in the sidebar.
  • 🔍 Find the desired network in the list of known networks.
  • 👁️ Click the eye icon or copy button next to the password field.

If you're using an older version of macOS, this interface may not be available. In this case, return to the Keychain method described above. It's universal and works on all current versions of the operating system, from Snow Leopard to the latest builds.

Using the terminal for advanced users

For those who prefer the command line to a graphical interface, macOS provides powerful tools via Terminal. This method allows access to information without unnecessary mouse clicks. However, it requires precision in typing commands, as the system is case-sensitive and syntax-sensitive.

Open the Terminal app (you can find it via Spotlight). To retrieve the password, use the utility security, which interacts with the keychain. The command requires the network name and the name of the key where the data is stored. Typically, this is "login.keychain."

security find-generic-password -wa"Your_Network_Name"

After entering the command, press Enter. The system will ask for permission to access the key. You'll need to click "Always allow" or enter the administrator password. The terminal will respond with a clear text password, which you can use immediately. This method is especially convenient for quickly copying data to the clipboard.

If you don't have administrator rights, the command may not work. Also, make sure you enter the network name accurately, including spaces and capitalization, otherwise the system will return an "item not found" error.

Command parameter Description Example of meaning
find-generic-password Search for a general type record Basic command
-w Output only the password value Hides unnecessary information
-a Specifying an account name Often not required for Wi-Fi
"SSID" Wireless network name "Home_WiFi"

Syncing passwords via iCloud

One of the strengths of the Apple ecosystem is seamless data synchronization. If iCloud Keychain is enabled on your Mac, your Wi-Fi passwords are automatically stored in the cloud. This means you can find the password not only on your MacBook but also on your iPhone or iPad, as long as they use the same Apple ID.

To check your settings, go to System Preferences and select your name at the top of the list. Next, select "iCloud" and make sure the "Keychain" toggle is turned on. When enabled, any password entered on one device will be available on all other trusted devices.

This is especially useful if you've forgotten your password and your MacBook is currently off or out of battery. You can take your iPhone, go to Wi-Fi settings, click the information icon next to the network, and see the password, copying it. Then simply enter it on your computer.

⚠️ Attention: For syncing to work, two-factor authentication for your Apple ID must be enabled on all devices. Without this level of security, Cloud Keychain will not work.

If you've just changed your Apple ID password, syncing may be temporarily paused until you confirm it on your other devices. Make sure all your devices are connected to the internet and have the correct date and time, as clock synchronization can disrupt encryption.

What to do if syncing is stuck?

If your passwords aren't updating, try turning the "Keychain" toggle off and then back on in iCloud settings. Signing out of your iCloud account and signing back in may also help, but this will take time for all your data to resync.

Restoring access via a router

If none of the software methods help, or you want to change the password to a more complex one, you can access the router's settings. To do this, you'll need to know the gateway IP address, which is usually listed on a sticker on the bottom of the device or in the documentation. Default addresses are often 192.168.0.1 or 192.168.1.1.

Enter the address in your MacBook's browser. This will open the router administrator login page. If you haven't changed the default settings, the login and password can also be found on the sticker. Once in the control panel, find the "Wireless" or "Wi-Fi" section, which displays the current security settings and access key.

Here you can not only view the current password but also change it. After changing the settings, all connected devices will lose connection and will need to be reconnected with a new key. This is a good way to secure your network if you suspect the password has been compromised.

  • 🌐 Open your browser and enter your router's IP address.
  • 🔑 Enter the administrator login and password (often admin/admin).
  • 📡 Find the Wireless/WLAN section.
  • 🔒 Look at the "Password" or "Pre-Shared Key" field.

Router interfaces vary greatly between manufacturers. Asus, TP-Link, D-Link, and Keenetic have different menu names. However, the logic remains the same: look for words like "Wireless," "Security," "WLAN," or "Wi-Fi Settings." If you can't access the control panel, the administrator password may have been changed previously.

☑️ Check before resetting your router

Completed: 0 / 4

Problems and their solutions

Sometimes users encounter errors when trying to view their password. For example, the system may display "incorrect password" when entering Mac administrator credentials. Make sure you're entering the account password, not your Apple ID password, although in some configurations they may be the same.

Another common issue is a network missing from the keychain list. This can happen if the network was previously deleted or if you're trying to find the password for a guest network you haven't connected to in a while. In such cases, clearing the DNS cache or resetting network settings can help, but these are extreme measures.

If you're using a corporate MacBook, your network administrator may have disabled password visibility via security policies (MDM). In this case, you won't be able to see the key even with local computer administrator rights. Contact your organization's IT department to gain access.

⚠️ Attention: Operating system and router interfaces are constantly updated. Menu locations and item names may change in new software versions. Always consult the official documentation from your equipment manufacturer if the default paths don't work.

It is also worth mentioning that A Wi-Fi password and a router admin panel password are two different things.Don't try to enter your Wi-Fi password to access your router settings through a browser; these are different access levels. To access the router, you need the information printed on its housing.

Questions and Answers (FAQ)

Is it possible to find out the Wi-Fi password if the MacBook is not connected to it right now?

Yes, if you've ever connected to this network and haven't removed it from your known list, the password is saved in your keychain. You can find it in Keychain Access, even if Wi-Fi is currently off or you're out of range.

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

Without an administrator password, it's impossible to view saved security keys. This is a fundamental security feature of macOS. You'll need to reset your account password through your Apple ID or Recovery Mode, which may take time.

Where can I find my password if I'm using an older Mac OS X (pre-Yosemite)?

The way Keychain works hasn't changed for many years. Find the utility in the Applications → Utilities folder. The interface may look a bit outdated, but the functionality of searching by network name and displaying the password after entering administrator rights works the same.

Is it safe to store passwords in iCloud Keychain?

Yes, Apple uses end-to-end encryption for your keychain data. This means that not even Apple has access to your passwords. Encryption keys are stored only on your trusted devices, making this method one of the most secure on the market.