The situation when you need to connect a new device to a wireless network, but you have hopelessly forgotten the password, is familiar to many technology users. AppleFortunately, macOS has built-in security and credential storage mechanisms that make it easy to recover a forgotten password. You won't need third-party software or complex router manipulation if you've ever connected to this network from your laptop.
In this article, we will take a detailed look at several proven methods that allow you to view WiFi password on a MacBook. We'll cover both classic methods using Keychain Access and new features introduced in recent versions of macOS, such as Ventura and Sonoma. Restoring access will only take a couple of minutes if you follow the instructions.
It's worth noting that to perform most of the steps described, you'll need to know your Mac's administrator password. This is a standard security measure to prevent unauthorized access to your stored data. If you're the sole owner of the device, this shouldn't be a problem.
Using iCloud Keychain on macOS
The most reliable and traditional way to find forgotten data is to access the system password storage. iCloud Keychain iCloud Keychain syncs your login credentials across all Apple devices linked to a single Apple ID. This is where macOS stores logins, website passwords, and, crucially for us, wireless network access keys.
To get started, open the Keychain Access utility. You can do this through Spotlight search by pressing the key combination Command + Space and entering the program's name. You can also access it through Finder: go to the folder Programs, then Utilities and select the desired tool.
In the window that opens on the left, select the "Passwords" or "All Items" category. Find the name of your Wi-Fi network in the list in the center. If the list is long, use the search bar in the upper right corner. Double-click the item to open its properties.
In the dialog box that appears, check the box next to "Show password." The system will ask you to verify your identity: you'll need to enter your Mac account password or use Touch ID. Once successfully authenticated, the required character combination will appear in the field next to the checkbox.
⚠️ Attention: If the "Show Password" option is grayed out, it means the current user doesn't have permission to view the item's data. Make sure you're logged in as an administrator.
This method is universal for most versions of macOS, from older builds to modern ones. It doesn't require an internet connection while viewing, as the data is already saved locally or previously synced. the only way, guaranteed to work even if the router is turned off or located far away.
Viewing your password in macOS Ventura and Sonoma settings
In the latest versions of the operating system, the company Apple Network settings management has been significantly simplified. The interface has become more iOS-like, making many features, including viewing Wi-Fi passwords, accessible directly from the system settings. This eliminates the need for users to search for specialized utilities.
To use this method, open System Preferences from the Apple menu or the Dock. Select "Wi-Fi" in the sidebar. If you're currently connected to a network, you'll see its name at the top of the window. If not, find the desired network in the "Known Networks" list.
Click the "More" button (or the "i" icon in a circle) next to the network name. In the window that opens, find the "Password" field. Next to it, you'll see a copy icon or hidden dots. Click this icon, and the system will prompt you to authenticate with biometrics or enter a password.
After successful confirmation, the password will be displayed in clear text and can be copied to the clipboard. This method is particularly convenient because it doesn't require delving into the file system or using advanced tools.
It's important to understand that the interface may differ slightly depending on the specific update version. However, the logic remains the same: Wi-Fi settings contain all the necessary connection information. If you're using a corporate-owned Mac, access to these settings may be restricted by security profiles.
Using the Terminal for Advanced Users
For those who prefer the command line to a graphical interface, macOS offers powerful tools through TerminalThis method allows you to get information about the network using the system utility securityIt is especially useful if the graphical interface does not work correctly or if automation of the process is required.
Open Terminal via Spotlight or the Utilities folder. To retrieve the password for the network you're currently connected to, you can use the following command. Copy it and paste it into the Terminal window:
security find-generic-password -wa"YourNetworkName"
Replace Your_Network_Name Enter the exact name of your Wi-Fi network (SSID). Note that the name must be enclosed in quotation marks if it contains spaces. After entering the command, the system will ask for permission to access the security key. Click "Always allow" and enter the administrator password.
If the command is successful, the terminal will display the password in plain text. If the network is not found or an error occurs, you will see a corresponding message. This method is advantageous for its speed and lack of unnecessary windows, but it does require careful entry.
⚠️ Attention: Commands in Terminal execute instantly and without any additional confirmation (except for the password prompt). Be careful when entering syntax to avoid system errors.
You can also get a list of all saved networks through the Terminal using the command security find-generic-password -l "name", although this is overkill for simply viewing a password. The main advantage of this method is the ability to quickly copy the result or use it in scripts.
Finding a password through the router's web interface
If none of the macOS methods work (for example, you changed your MacBook and the new data didn't sync), the only option is to turn to the internet source—the router. Almost all modern routers have a web interface for configuration, where you can view or change the Wi-Fi password.
To do this, your Mac must be connected to the router, preferably via an Ethernet cable, but you can also use Wi-Fi if you remember the password or it's entered automatically. Open any browser and enter the router's IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1.
After logging in (you will need the login and password of the router administrator, often this is admin/admin(If you haven't changed them), find the "Wireless" or "Wi-Fi" section. It will list the network name (SSID) and the password field (Password/Key).
The table below lists standard addresses for popular router manufacturers that may be useful:
| Manufacturer | Standard IP address | Default login | Default password |
|---|---|---|---|
| TP-Link | 192.168.0.1 | admin | admin |
| ASUS | 192.168.1.1 | admin | admin |
| D-Link | 192.168.0.1 | admin | (empty) |
| Netgear | 192.168.1.1 | admin | password |
| Zyxel | 192.168.1.1 | admin | 1234 |
Router interfaces may differ, but the logic for finding wireless network settings is the same. If you've changed your router's administrator password and forgotten it, you'll have to reset the device to factory settings, which will require a complete internet reset.
☑️ Checking access to the router
Syncing passwords via iCloud Keychain
Ecosystem Apple iCloud Keychain offers a unique feature: if you have other devices (iPhone, iPad) connected to the same iCloud account, your Wi-Fi password may already be there. iCloud Keychain ensures instant syncing of your credentials across devices.
Check your iPhone: go to Settings → Wi-Fi. Tap the info icon next to the network you want to know the password for. Tap the hidden field with dots, use Face ID or Touch ID, and the password will be revealed. You can immediately copy and paste it on your Mac.
This method is often the fastest, as mobile devices are always at hand. The main requirement is that key syncing must be enabled on both devices. You can check this in the iCloud settings on both devices.
If syncing isn't working, make sure your devices are running the latest software version and two-factor authentication is enabled for your Apple ID. Without these conditions, the transfer of sensitive data between devices may be blocked by the security system.
Why isn't my password syncing?
Syncing may not work if you use different Apple IDs on your devices, if Keychain is disabled in iCloud settings, or if one of your devices has failed two-factor authentication. Also, check your iCloud storage space.
What to do if nothing helps
In rare cases, the password isn't saved anywhere: it's not in the keychain, it's not displayed in macOS settings, and there's no access to the router. In this situation, the only option left is to reset the router to factory settings.
On the back of your router, look for a small hole labeled Reset or RestorePress it with a paperclip and hold it for 10-15 seconds until the lights blink. After rebooting, the router will operate with the factory password, which is located on the sticker on the bottom of the device.
After this, you'll need to reconfigure your connection to your provider (using the username and password specified in your contract) and set a new Wi-Fi password. Write the new password down in a safe place or immediately add it to your Mac's keychain.
⚠️ Attention: Resetting your router will erase all your settings, including your network name, password, IPTV settings, and port forwarding. Use this method only as a last resort.
To avoid similar situations in the future, it's recommended to export saved passwords or save them in a password manager. Digital hygiene helps save time and stress in critical moments.
Frequently Asked Questions (FAQ)
Is it possible to find out the Wi-Fi password if the Mac is not currently connected to this network?
Yes, you can. If you've previously connected to this network and saved the password in your keychain, you can find it using the Keychain Access utility, even if your laptop is currently out of range or connected to a different internet connection.
Where are Wi-Fi passwords physically stored on a MacBook?
Passwords are stored in the system's encrypted database, known as the Keychain. The database files are located at /Library/Keychains/ in the system folder, but access to them without authorization is impossible due to encryption.
Why does macOS require an administrator password to browse Wi-Fi?
This is a security measure. The operating system protects stored credentials from unauthorized access. If any running script or user could easily read passwords, it would create a huge breach in the security of personal data.
Is it possible to recover my password if I changed my MacBook and didn't enable iCloud sync?
Unfortunately, no. If your old MacBook is unavailable, iCloud sync was disabled, and you don't remember the password, you can't recover it programmatically on your new device. You'll need to access or reset your router.