How to Find Your Wi-Fi Password on a Mac: A Step-by-Step Guide

It's quite common to need to connect a new device to the network but forget the password, even though the Mac is already connected. Unlike smartphones, where you can view the passkey in a couple of clicks, on macOS this process requires specific steps through system utilities. Users often wonder where exactly this data is stored and how to safely retrieve it without resetting the router.

operating system macOS Over the years, Microsoft has been refining its security mechanisms, hiding confidential information in secure storage. However, if you have physical access to an already authorized computer, recovering a forgotten password combination is entirely possible. This applies to both older versions of the operating system and the latest updates, including Sonoma And Ventura.

In this guide, we'll cover all the current methods for accessing your wireless network's encryption key. We'll cover using the Keychain Access system utility, settings in the latest versions of macOS, and Terminal features for advanced users. It's important to understand that you'll need administrator privileges to perform these steps.

Using the Keychain Access utility

The most universal and time-tested method is to use the built-in password manager. The utility Bunch of keys stores all saved credentials, including website logins, certificates, and Wi-Fi network access keys. This method works on the vast majority of macOS versions, from very old to modern ones.

To get started, you need to launch Spotlight search by pressing the key combination Command + Space, and enter the program name. After opening the utility, you'll see a list of categories on the left; we're interested in the "System" or "Login" section, where network settings are typically saved. In the central list, you'll need to find the name of your wireless network (SSID).

  • 🔍 Open the program through the search or the "Applications" → "Utilities" folder.
  • 📡 Find the desired network in the list by name (SSID).
  • 🔑 Double-click on the network name to open properties.
  • ✅ Check the "Show password" box and enter the administrator password.

After checking the box, the system will ask you to verify your identity. You'll need to enter the username and password of the Mac account you're currently logged in with. This is a critical step. authentication, which prevents data theft by unauthorized persons with access to a running computer. After successfully entering the data, the desired character combination will appear in the text field.

⚠️ Note: If you're using a corporate Mac with management profiles (MDM), access to Keychain may be restricted by your network administrator. In this case, the standard method won't work, and you'll need to contact your IT department.

The program interface may vary slightly depending on the operating system version, but the logic remains the same. Sometimes a network may appear multiple times if you connected to it with different security types or at different times. In this case, it's worth checking the entries labeled "AirPort" or "Wi-Fi."

📊 What version of macOS are you using?
macOS Ventura (13)
macOS Sonoma (14)
macOS Monterey (12)
Older version
I don't know

Viewing your password in macOS Ventura and later

In recent operating system updates, Apple has significantly simplified access to saved data. Starting with version macOS VenturaThe key viewer feature has been integrated directly into the main System Preferences, making the process more intuitive for the average user. No more searching for hidden utilities buried deep in folders.

To use this method, go to the Apple menu (the apple in the upper left corner) and select "System Preferences." In the left navigation panel, find the "Wi-Fi" section. This displays the current connection status and a list of known networks. If you're within range of the network you want to find the key for, the process will only take a few seconds.

A special icon in the form of an ellipsis or information button will appear next to the name of an active or previously saved network. Clicking on it will display a detailed network card. The password is often hidden at the bottom of this window; you can copy it or view it by clicking the corresponding eye icon. The system will also require confirmation via Touch ID or account password.

System Preferences → Wi-Fi → Network Details → Copy Password

This method is particularly convenient because it allows you to immediately copy the code to the clipboard and send it, for example, to a friend via messenger or paste it into printer settings. However, keep in mind that on older Mac models without a biometric scanner, the authorization process may take slightly longer due to manual data entry.

macOS version Location of settings Authorization required Copyability
macOS Sonoma System Preferences Touch ID / Passcode Yes
macOS Ventura System Preferences Touch ID / Passcode Yes
macOS Monterey Bunch of keys User password No (view only)
macOS Big Sur Bunch of keys User password No (view only)

Using the Terminal command line

For users who prefer a keyboard over a mouse, or in situations where the graphical interface is unstable, a great solution is TerminalThis is a powerful tool that allows you to interact with the system at a low level. It can be used to request a saved password from the system using a special command.

Open Terminal via Spotlight or find it in the Utilities folder. To get the password, use the command security, which accesses the system keychain. The command syntax requires the exact network name. If the network name contains spaces, they must be enclosed in quotation marks or escaped with a backslash.

security find-generic-password -wa"Your_Network_Name"

After entering the command and pressing Enter, the system will ask for permission to access the key. You'll need to agree in the system window that appears by entering your administrator password. If everything is done correctly, the Terminal window will immediately display the password you're looking for in plaintext. This is one of the fastest methods if you know the exact network name.

What to do if the command returns an error?

If you see an error message, check the spelling of the network name. It must match, including capitalization. Also, make sure the network has been previously saved on this Mac. If the network has never been connected to, the password cannot be retrieved.

The command line method is great for its versatility, but it requires careful input. A single typo in the SSID name will result in the system not finding the entry. Furthermore, this method isn't suitable for bulk password extraction, as the query is strictly based on a specific name.

☑️ Check before entering a command

Completed: 0 / 4

Restoring access via a router

If none of the software methods on the computer itself work, or if the Mac has never connected to this network (and therefore the password isn't saved), physical access to the hardware remains. The default password is often found on a sticker on the bottom or back. routerThis is relevant if you have not changed the factory settings.

If the default key has been changed, but you have access to the router's web interface (for example, via an Ethernet cable or from another device), you can view or change the password in the wireless network settings. To do this, enter the gateway IP address (often 192.168.0.1 or 192.168.1.1) in the browser. The login and password for entering the router settings can also be standard (admin/admin).

  • 🏷️ Check the sticker on the device body for factory data.
  • 🌐 Log in to the router's web interface via a browser.
  • ⚙️ Find the Wireless or Wi-Fi Settings section.
  • 👁️ The Security or Password field will display a key (often hidden by asterisks, but it can be shown).

It's worth noting that modern router firmware often hides the password with asterisks, even in the user account. In this case, you might not be able to see it, but you can easily change it to a new one you'll definitely remember. After changing the settings, all devices will require reconnecting with the new key.

⚠️ Important: Resetting your router to factory settings (pressing the Reset button) deletes all customized settings, including your ISP's PPPoE data. Make sure you know your internet connection settings before resetting.

Problems with iCloud syncing

Apple's ecosystem includes a feature called iCloud Keychain, which syncs passwords across all devices linked to a single Apple ID. This means that a Wi-Fi password saved on your iPhone automatically appears on your Mac, and vice versa. However, sometimes this mechanism fails, and the data doesn't update correctly.

If you've changed your router password, but your Mac continues to try to connect with the old key, you'll get stuck in a connection error loop. In this case, you'll need to delete the old network entry on your Mac. You can do this through Keychain Access or in Wi-Fi System Preferences by selecting "Forget This Network."

After deleting a network profile, your computer will forget all information about it, including the security type and key. The next time you try to connect, the system will ask for the current password. If the network is saved on your iPhone and iCloud is working correctly, your Mac can automatically retrieve the correct password without your intervention, only asking for confirmation via a notification on your phone.

Sync conflicts often occur after iOS or macOS updates, when key encryption protocols can change. If the issue persists, temporarily disabling and then re-enabling Keychain in iCloud settings on all devices can sometimes help.

Security and storage of access keys

Understanding how macOS stores passwords is important not only for recovering them but also for ensuring their security. All data in Keychain is encrypted. The encryption key is tied to your login password. This means physical access Access to an unlocked computer is equivalent to access to all your networks.

It's recommended to use complex passwords for your Mac administrator account. If an attacker gains access to your computer, they can easily extract all stored Wi-Fi keys using the methods described above. Therefore, never leave your computer unlocked and unattended in public places.

It's also worth regularly checking your list of saved networks. If you see networks you haven't used or that belong to previous workplaces or schools, it's best to delete them. This reduces your potential attack surface and prevents you from automatically connecting to unsafe or known access points in the future.

In corporate environments, access to these features is often blocked by security policies. Administrators may prohibit password visibility or Terminal use for regular users to prevent corporate data leaks. At home, you have full control over these settings.

Frequently Asked Questions

Is it possible to find out a Wi-Fi password if a Mac has never connected to it?

No, the operating system doesn't store passwords for networks the device has never connected to or that haven't been manually entered by the user. In this case, the only solution is to use the router sticker or access its settings.

Where is the Wi-Fi password file stored on Mac?

Physically, the Keychain Access database is located at /Library/Keychains/login.keychain-db for user keys. However, this is a binary encrypted file, and its contents cannot be read with a simple text editor without using system utilities.

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

Without an administrator password, you won't be able to view saved keys in Keychain or confirm actions in Terminal. In this case, you'll need to reset your user password via Apple ID or Recovery Mode, if your device's security policy allows it.

Do Wi-Fi passwords sync between different Apple IDs?

No, iCloud Keychain only syncs data between devices using the same Apple ID. Password sharing is only possible between different IDs using AirDrop/password sharing when the devices are nearby and trusted.