How to View Your Wi-Fi Password on Mac: A Complete Guide

Every Apple device owner is familiar with the situation of needing to connect a new device to a wireless network but completely forgetting the Wi-Fi password. Fortunately, macOS has a built-in mechanism for storing all access keys ever used. This data is securely encrypted and stored in system storage accessible to the user. You won't have to reset your router or find your ISP contract to regain access.

In this article, we'll cover two main methods for recovering forgotten passwords: using the Keychain graphical interface and the Terminal command line. Both methods are secure, don't require installing third-party software, and work on current versions of macOS, including Ventura and Sonoma. You'll be able to retrieve the key for the current network or any other network your computer has previously connected to.

Before you begin, make sure you have physical access to a computer that has already been authorized to the desired network. Without administrator rights You won't be able to access your saved data without signing in or entering your Mac account password. This is an important element in protecting your personal information from unauthorized access.

Using the Keychain Access utility

The easiest and most visually understandable way to find out a password is to use the built-in utility Safari Keychain or the system's Keychain. This method is ideal for users who don't want to mess with codes. The program's interface allows you to manage all saved passwords, certificates, and keys in one place.

To get started, you need to open the utility. This can be done through Spotlight search by pressing the key combination Command + Space and entering the program's name. Alternatively, you can find it in the Applications → Utilities folder. After launching, a list of all saved entries will open.

Find your wireless network name (SSID) in the list. If the list is too long, use the search field in the upper-right corner of the window. Once you find the desired line, double-click it. A properties window will open, where you should check the "Show password" box. The system will ask you to verify your identity—enter your Mac account password or use Touch ID.

  • 🔍 Click Command + Space and type "Keychain" to quickly search.
  • 📁 In the side menu, select the "System" or "Login" category to find your saved Wi-Fi keys.
  • 👁️ After entering the administrator password, the network password will be displayed in the text field.

It is important to note that in newer versions of macOS, such as Ventura And SonomaThe Keychain interface has been redesigned and integrated into System Preferences. If the classic utility looks different or is missing, look for the "Passwords" section in the main system settings. The process there is similar: find a network, click on it, and authenticate using biometric or text authentication.

☑️ Checking Keychain Access

Completed: 0 / 4

Password recovery via Terminal

For users who prefer the command line, or in cases where the graphical interface does not work correctly, there is a powerful tool - TerminalThis method allows you to get the exact password with a single command, bypassing unnecessary windows and menus. It's especially useful if you need to copy the password to paste it on another device.

Open Terminal via Spotlight search or from the Utilities folder. You'll need to enter a special command that will access your system keychain. The command syntax is precise, so be careful with quotes and spaces. A single character error will result in a missing element error.

security find-generic-password -wa "YourNetworkName"

Replace the text "YourNetworkName" with the actual name of your Wi-Fi network. Note: if the network name contains spaces, the quotation marks are required. After entering the command, press EnterThe system will ask for permission to access the key. Confirm the action, and the password will immediately appear on the next line in the terminal.

⚠️ Note: Be careful with case when entering the command. Network names are case-sensitive, and "MyWifi" is different from "mywifi."

This method is universal and even works on remote SSH connections, as long as you have access to the Mac's console. It also allows you to automate the password recovery process using scripts, which can be useful for system administrators.

What to do if the command returns an error?

This error most often means that a network with that name isn't found in your Mac's memory. Check the spelling of the SSID. If the network was previously removed from the list of known networks, you won't be able to recover the password this way.

Viewing your password in macOS Ventura and later

Starting with macOS Ventura, Apple significantly redesigned the system settings, making them more consistent with the iPadOS interface. Wi-Fi password management is now located in a separate, convenient section. This makes life easier for users accustomed to Apple's mobile ecosystem.

To find your password, open System Preferences via the Apple menu (). In the left sidebar, select "Wi-Fi." On the right side of the window, look for the "Advanced" or "Known Networks" button (depending on the specific update version). This displays a complete list of networks your computer has connected to.

Next to the desired network name, you'll see an icon with three dots or a "More Details" button. Tapping it will take you to the network's properties menu. There you'll find a "Password" field. When you tap the hidden characters, the system will ask you to confirm the action using Touch ID or your user password. Once verified, the password will be displayed in plain text.

macOS version Location of settings Authorization method
macOS Sonoma System Preferences → Wi-Fi → Known Touch ID / Passcode
macOS Ventura System Preferences → Wi-Fi → Details Touch ID / Passcode
macOS Monterey Keychain (Utilities) Account password
macOS Big Sur Keychain (Utilities) Account password

The interface of new versions of macOS is focused on touch control and simplicity. Visual cues make the access recovery process intuitive even for inexperienced users. However, if you're used to the classic view, there's nothing stopping you from using the old methods through utilities.

📊 Which method of viewing your password is more convenient for you?
Via Keychain Access
Via the Terminal
Via System Preferences
Via a router

What to do if your Mac doesn't remember the network

Sometimes, your computer doesn't display the desired network in the list of saved networks. This can happen after resetting network settings, reinstalling the operating system, or clearing access keys. In this case, standard methods for viewing the password on the device itself won't work.

If your Mac doesn't remember the network, but you have access to another Apple device (such as an iPhone or iPad) that is synced to the same Apple IDYou can view the password there. Thanks to iCloud Keychain, Wi-Fi network data is shared between all your devices. Open Wi-Fi settings on your iPhone, tap the "i" icon next to the network, and tap the password field.

In situations where none of the Apple devices remember the password, the only option is to view the data on the router itself. To do this, connect to the router via cable or Wi-Fi (if available) and log in to the administrator's web interface. The page address is usually located on a sticker on the bottom of the device (e.g., 192.168.0.1 or 192.168.1.1).

⚠️ Note: Router interfaces from different manufacturers (TP-Link, Asus, Keenetic) vary significantly. The exact location of the password field depends on the model and firmware version.

In the router's web interface, look for the "Wireless" or "Wi-Fi" section. The current access key will be displayed in the "Password/Key" field. If the field is hidden by asterisks, you can often reveal it by clicking the eye icon or unchecking the "Hide" box.

Password security and synchronization

Storing passwords in Keychain is convenient, but it requires understanding security principles. Your data is encrypted and protected by your account password. However, if your Mac falls into the hands of an attacker who knows or guesses your login password, they will have access to all your stored Wi-Fi keys.

For increased security, we recommend using two-factor authentication for your Apple ID and strong passwords when signing in. You should also regularly review the list of devices that have access to your iCloud Keychain. You can do this in your account security settings on the Apple website.

Passwords are automatically synced between devices via iCloud. If you change the Wi-Fi password on your router but still have the same password on your Mac, a conflict will occur. In this case, macOS will prompt you to "Forget" the network and reconnect. Always confirm password updates on all trusted devices.

  • 🔒 Change your Apple ID password regularly to protect your Keychain.
  • 📱 Check the list of trusted devices in your Apple ID security settings.
  • 🔄 When changing your router password, reconnect all devices to update the data in the cloud.

Common problems and their solutions

When attempting to view a password, users may encounter various errors. For example, the system may display "Unable to find the item" or endlessly request a password without accepting it. This is often resolved by restarting the Keychain service or the operating system itself.

If your Keychain is corrupted, macOS may prompt you to create a new one. Be careful: this will delete old saved passwords. It's always recommended to back up your data using Time Machine before doing this. Corruption of the keychain can occur after an improper shutdown or a file system crash.

In rare cases, antivirus software or system cleaners may block access to system utilities. If you use third-party security tools, try temporarily disabling them and then attempting to view the password again. Also, ensure there's enough free disk space for system processes to run.

⚠️ Note: Interfaces and menu item names may differ slightly depending on your locale and the specific macOS update version.

If all else fails, creating a new user on your Mac can be a diagnostic step. If the problem persists in the new user profile, the issue is with the system files. If not, the problem lies with the settings of your primary profile.

Is it possible to find out the Wi-Fi password if I have never connected to this network from this Mac?

No, macOS cannot "steal" or guess passwords for networks the device hasn't connected to. The password must be saved to the device's memory after successful authentication.

Where is the password file physically stored on a Mac?

The Keychain Access database is located at /Users/USERNAME/Library/Keychains/However, these are protected system files, and directly editing their contents without specialized knowledge will result in data loss.

Will this method work with Terminal on someone else's Mac?

Only if you have physical access to the computer and know the administrator password for this account. Without authorization, the system will not release the saved keys.

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

For security reasons, accessing Keychain is impossible without your account password. You'll need to reset your user password through your Apple ID or recovery mode.