It's quite common to have friends or colleagues over and you can't remember your wireless network password. Luckily, the operating system macOS Stores all previously used access keys in a dedicated secure vault. You don't need to reset your router or look for a sticker on the bottom to connect a new device.
In this article, we'll take a detailed look at how to view a WiFi password on a Mac using the system's built-in tools. We'll cover both the graphical interface for beginners and the command line for advanced users, so you can choose the most convenient method for your needs.
Using iCloud Keychain
The main repository of confidential information in the ecosystem Apple is a utility called Bunch of keysThis is where the system stores passwords for websites, apps, and, most importantly for us, Wi-Fi networks. This storage is accessible through standard macOS tools, so you don't need to install any third-party software.
To find the key you need, open the program using Spotlight or Finder. Search for "Keychain Access" or follow the path Programs → Utilities → KeychainAfter launching the app, you'll see a list of all saved accounts. Find the name of your wireless network in the list. If the list is large, use the search bar in the upper-right corner of the window.
Double-click your network name to open its properties. In the window 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 administrator password or use Touch ID. Once successfully authenticated, the required access code will appear in the field next to the checkbox.
⚠️ Note: Keychain syncs across all your Apple devices. If you change your password here, it may also update on other devices connected to your iCloud.
Finding a password using the macOS Terminal
For users who prefer to work with the command line, there is a quick way to access saved data via TerminalThis method is especially convenient if the graphical interface isn't working correctly or if you're used to text-based commands. It allows you to instantly extract the information you need without unnecessary clicks.
Open the Terminal app (found via Spotlight) and enter the following command, replacing "NetworkName" with the actual name of your router:
security find-generic-password -wa"NetworkName"
After pressing the key Enter The system will ask for permission to access the key. Enter the Mac user password. If entered correctly, the terminal will display a line with the WiFi password. This method works reliably on all modern versions. macOS, including Monterey, Ventura and Sonoma.
If you misspell even one letter, the system will return the error "-25299: couldn't decode password in keychain." In this case, simply check the exact network name in the WiFi menu and try again.
What to do if the command doesn't work?
If the command returns an error, make sure you use quotation marks around the network name if it contains spaces. Also, check that the network was previously saved on this Mac.
Checking your password in macOS Ventura and later settings
In the latest versions of the operating system Apple Viewing saved data has become even more intuitive. Starting with macOS Ventura, network management has been moved to the main system settings, allowing for quick access keys without the need for complex utilities. This change has significantly simplified life for regular users.
To get started, open System Preferences from the Apple menu or Dock. Go to the "Wi-Fi" section in the sidebar. Find the network you're connected to or that's saved in the known list, and click the "More Details" button (or the "i" icon in a circle). In the window that opens, find the "Password" field.
Tap the hidden password field (usually covered by dots). The system will ask you to confirm the action using Face ID, Touch ID, or your account password. Once confirmed, the password will become visible, and you can copy it or simply view it. This is the fastest method on modern MacBooks.
- 🔑 Open System Preferences via the Apple menu.
- 📡 Go to the section
Wi-Fiand find the desired network. - 👁️ Click on the eye icon or password field to display.
- ✅ Complete biometric or password authorization.
☑️ Preparing to view your password
Comparison of Access Key Search Methods
Each of the methods described above has its advantages and disadvantages depending on your situation and operating system version. The Keychain graphical interface is versatile, but requires more steps. Terminal is fast, but requires precise input. The new macOS settings are convenient, but are only available on the latest software versions.
Below is a table to help you choose the best method for your situation. It takes into account the complexity of the task, the required OS version, and the speed of results. Choosing the right tool will save you time.
td>It doesn't depend
| Method | macOS version | Complexity | Speed |
|---|---|---|---|
| Bunch of keys | All versions | Average | 2-3 minutes |
| Terminal | All versions | High | 30 seconds |
| System Preferences | Ventura+ | Low | 1 minute |
| Router (web interface) | High | 5-10 minutes |
If you use a corporate Mac, your access rights may be restricted by your system administrator. In this case, even with the account password, you may not be able to view saved WiFi keys due to your organization's security policies.
Possible problems and their solutions
Despite the simplicity of the procedure, users sometimes encounter difficulties. For example, the system may return an error when attempting to display the password, even if you enter the correct information. This is often due to a desynchronization of access rights or a corrupted key database.
One common problem is when the desired menu item is simply missing. This can occur if the network was connected via a configuration profile or if the key file is corrupted. In such cases, it is recommended to restart the computer and try again.
⚠️ Note: The macOS interface may vary slightly depending on the specific update version. If you don't see the item described, check for system updates.
It's also worth keeping in mind that if you changed the password on your router but haven't updated it on your Mac, the system will attempt to connect with the old key. In this case, the old, no longer valid password may be displayed in Keychain Access. To fix this, delete the network entry and reconnect.
Security measures when working with passwords
Knowing where your access keys are stored makes you responsible for their security. Administrator password A Mac is a critical security element. Anyone with physical access to an unlocked computer and knowledge of this password can access all saved networks.
We recommend regularly reviewing the list of saved networks in Keychain and deleting those you no longer use. This will reduce the risk of potential hacking if your device falls into the wrong hands. Also, avoid storing passwords in text files on your desktop.
- 🛡️ Use complex passwords to log in to macOS.
- 🗑️ Regularly clear the list of unnecessary WiFi networks.
- 🔒 Do not leave your computer unattended when unlocked.
- 🔄 Enable Find My Mac to lock your Mac remotely.
If you're selling or giving away your Mac, be sure to perform a full data wipe. Simply deleting files isn't enough, as Keychain data can be recovered using specialized utilities. Use the standard reset procedure via the Recovery menu.
Frequently Asked Questions (FAQ)
Is it possible to see a WiFi password if a Mac isn't connected to it?
Yes, this is possible. If you've connected to this network before, the password is saved in your Keychain. You can find it there even if you're currently outside the router's coverage area.
What should I do if I forgot my Mac account password?
Without the administrator account password, it's impossible to view saved WiFi keys. This is a system security feature. You'll need to remember the password or reset it via your Apple ID, if you've previously set up this feature.
Where is the WiFi password file stored on Mac?
Physically, the Keychain Access database is located at /Library/Keychains/login.keychain-db in the user folder. However, editing this file directly is not recommended, as it may result in data corruption.
Does this method work on older versions of macOS (High Sierra, Mojave)?
Yes, the Keychain Access and Terminal method works on all supported versions of macOS. The interface may look slightly different, but the logic and utility names remain the same.
Is it possible to copy the password directly to the clipboard?
There is no direct "Copy" button in the Keychain interface, but you can select the password with your mouse after it is displayed and click Cmd + CIn newer versions of macOS, clicking on the password field often displays a copy option.