Forgot your home or office Wi-Fi password, but your MacBook Automatically connects to the network? Don't rush to reset your router or call your ISP. macOS has built-in tools that let you retrieve your saved password in just a few clicks. These instructions are suitable for all modern models—from MacBook Air M1 to MacBook Pro 2023 with chips Apple Silicon or Intel.
We will consider 5 proven methods: from the standard "Keychain" to commands in Terminal and third-party utilities. Important: Some methods require administrator rights, and on corporate networks, the password may be hidden by security policies. If you're renting a place or connected to a public network (for example, at a cafe), these methods won't work — the password is simply not saved in the system.
Before you begin, make sure your MacBook Have successfully connected to the target network at least once. If the network appears in the list but the connection fails, first troubleshoot the connection issue.
1. How to find your Wi-Fi password using Keychain Access (the easiest way)
"Keychain" (Keychain Access) is a built-in password manager in macOS that stores all saved login data, including Wi-Fi network passwords. This method works on all versions of the system, starting with macOS Mojave (2018).
Instructions:
- 🔍 Open Spotlight (keyboard shortcut
Command + Space) and type "Keychain Access". Alternatively, go toPrograms → Utilities → Keychain. - 📂 Select a category in the left column "System" (or "Local Elements" if the network is not in the system link).
- 🌐 In the list, find the name of your Wi-Fi network (the network name is displayed in the column "Name").
- 🔑 Double-click on the network and check the box next to it Show password and enter the password for your account Mac (the one you use to log in).
After this, a window with a field will open Show password, where the code you're looking for will be displayed. If the field is empty or the "Element not found" error appears, then:
- ❌ The network is not saved in the connection (it may have been a one-time connection).
- ❌ You do not have administrator rights (you need to enter the superuser password).
- ❌ The password is hidden by security policies (relevant for corporate networks with certificates).
⚠️ Warning: If you use macOS Sonoma 14.4+, the Keychain interface may differ slightly - some menu items have been moved to the context menu (right-click on the network).
☑️ What to check if your password isn't displayed
2. How to find out the Wi-Fi password via Terminal (for advanced users)
If Keychain Access didn't work or you prefer the command line, you can extract the password via TerminalThis method requires knowing the exact network name (SSID) and administrator rights.
Step-by-step instructions:
- Open Terminal (
Programs → Utilities → Terminalor throughSpotlight). - Enter the command to search for all saved networks:
security find-generic-password -ga | grep "acct"Find the one you need in the list SSID (network name).
- Copy the network name and run the command (replace
YOUR_WIFI_NAME(in real name):security find-generic-password -wa "YOUR_WIFI_NAME" - Enter your account password Mac, when the system asks for confirmation.
After executing the command, the following line will be displayed in the Terminal password: "your_password"If an error occurs Could not find password, Means:
- 🔄 The network is not saved in the system (try connecting to it again).
- 🔒 You don't have permission to view this (you need to run Terminal as administrator).
- 🛡️ The network is protected by an enterprise certificate (the method does not work for WPA2-Enterprise).
3. View your password through System Preferences (macOS Ventura and later)
In the latest versions of macOS (Ventura 13.0+ And Sonoma 14.0+Apple has simplified access to Wi-Fi passwords directly from the Settings panel. This method doesn't require any additional utilities and is suitable for most home networks.
How to watch:
- Open System Preferences (gear icon in the Dock or via
Spotlight). - Go to the section «Wi-Fi».
- Find your network in the list and click on it.
- Click the button "Additionally" (or "Learn More," depending on your macOS version).
- In the window that opens, go to the tab "Password" and enter your account information Mac.
If there is no “Password” tab, then:
- 📡 The network is not saved in the profile (for example, if the connection was through WPS).
- 🔐 Password hidden by administrator (relevant for work laptops with MDM).
- 🖥️ You are using an outdated version of macOS (update your system).
⚠️ Attention: In corporate networks with 802.1X (for example, in universities or offices), the password may be linked to the user's certificate. In this case, it cannot be extracted using standard tools.
4. Third-party utilities for viewing Wi-Fi passwords
If built-in methods don't work, you can use third-party programs. They often offer additional features, such as exporting all saved passwords to a file or searching across multiple networks simultaneously.
Popular utilities for Mac:
| Name | Functions | Price | Compatibility |
|---|---|---|---|
| WiFi Password Revealer | Shows all saved passwords, export to CSV | For free | macOS 10.12+ |
| Keychain Access Pro | Advanced password manager with iCloud integration | $9.99 | macOS 11.0+ |
| MacPass | Open source, plugin support | For free | macOS 10.13+ |
| Secrets | User-friendly interface, search across all keychains | $19.99 | macOS 12.0+ |
Advantages of third-party utilities:
- 🔍 Ability to bulk export passwords (useful for backups).
- 🔄 Automatic network database update.
- 🛡️ Additional security features (e.g. complex password generation).
Flaws:
- ⚠️ Risk of installing malware (download only from Mac App Store or official websites).
- 💰 Plugins and premium features are often paid.
- 🔧 Disabling may be required Gatekeeper for installation (not recommended).
5. How to find the Wi-Fi password on a MacBook if the network is not saved
If your MacBook If you've never connected to the network or the data isn't saved, standard methods won't help. In this case, there are two options:
Option 1: View the password on the router
- 🌐 Connect to the router via cable or another network.
- 🔗 Enter in your browser
192.168.1.1or192.168.0.1(the address is indicated on the router sticker). - 🔑 Log in (login and password are usually
admin/adminoradmin/password from sticker). - 📡 Go to the section "Wi-Fi" → "Security"** and look at the field "Password" (or «PSK»).
Option 2: Reset the router to factory settings
If you have lost access to the router's web interface, you can do the following: hard reset:
- Press and hold the button “Reset”** on the back panel of the router (10–15 seconds).
- After rebooting, connect to the network with the router name (for example,
TP-Link_1234). - The default password is located on the sticker on the device (usually
8 digitsoradmin).
⚠️ Warning: Resetting your router will delete all settings, including PPPoE-connection (you will have to re-enter your provider data).
What should I do if my router doesn't provide internet access after a reset?
After resetting, you'll need to reconfigure your connection to your provider. Typically, you'll need to enter your contract details: connection type (PPPoE, DHCP), login/password, and VLAN ID (if applicable). You can find these details by contacting your provider's technical support or accessing your personal account on their website.
6. Common mistakes and how to avoid them
When trying to extract a Wi-Fi password, users often encounter common problems. Let's look at the most common ones and how to solve them.
Error 1: "Item not found" in Keychain Access
Reasons and solutions:
- 🔌 Network not saved: Reconnect to Wi-Fi and check if it appears in the connection.
- 👤 No rights: Log in as an administrator.
- 🗑️ The connection is broken: run the command in Terminal:
sudo security repair-keychain /Library/Keychains/System.keychain
Error 2: The terminal displays "Could not find password"
Possible reasons:
- 📛 Invalid network name: check SSID in Wi-Fi settings (may differ in case).
- 🔒 The network is protected by enterprise policies: in this case, the password is stored on the authentication server.
- 🖥️ macOS is out of date: update to the latest version.
Error 3: No Internet After Resetting the Router
Actions:
- Check if the indicator light is on "Internet"** on the router.
- Reconnect the cable from your provider (it may have come loose).
- Call your provider's support team and clarify the settings. PPPoE/DHCP.
7. Security: How to protect your Wi-Fi from hacking
Once you've learned your Wi-Fi password, it's important to ensure network security. Hacking your home router can lead to data theft, slow internet speeds, or even illegal activity in your name.
Basic protective measures:
- 🔐 Change the default password: Use a combination of 12+ characters (letters, numbers, special characters). Example:
k7#pL9!vQ2$mR5. - 🛡️ Enable WPA3: In the router settings, select the encryption type WPA3-Personal (or WPA2/WPA3 for compatibility).
- 📵 Disable WPS: This function is vulnerable to brute force attacks.
- 🔄 Update your router firmware: Check for updates every 3-6 months.
- 👤 Create a guest network: for friends and smart devices (eg Amazon Alexa or Google Home).
Additional tips:
- 📡 Hide your SSID: Disable network name broadcasting in your router settings (but this isn't a panacea—experienced hackers will find the network anyway).
- ⏱️ Set up a schedule: Turn off Wi-Fi at night when no one is using it.
- 📱 Use VPN on your devices: This will protect your traffic even if the network is hacked.
Important: If you notice suspicious devices in the list of connected devices (in the router's web interface), immediately change the password and scan your computers for viruses.
FAQ: Answers to Frequently Asked Questions
Is it possible to find out the Wi-Fi password that another MacBook was connected to?
No, unless you have access to that device. Wi-Fi passwords are stored locally in each device's Keychain. MacBook and are not synced via iCloud (unless the feature is enabled) "Family Sharing"** and password sharing is explicitly allowed).
Why does Terminal say "error: The specified item could not be found"?
This error means that the network with the specified name was not found in the keychain. Possible causes:
- You entered an incorrect SSID (check the register).
- The network is not saved (for example, the connection was through Instabridge or another program).
- You are using a guest profile on MacBook (try logging in as administrator).
How to export all Wi-Fi passwords to a file?
For bulk export, you can use the command in Terminal:
security dump-keychain -d login.keychain | grep "airport" | awk '{print $NF}' | xargs -I {} security find-generic-password -ga {} 2>&1 | grep "password:"
Or install the utility WiFi Password Revealer, which allows you to save all your passwords in CSV-file.
Does this method work on MacBook with M1/M2 chip?
Yes, all the methods described (including Keychain Access and Terminal) work on MacBook with chips Apple Silicon (M1, M2, M3). The processor architecture does not affect the storage of Wi-Fi passwords - they are still stored in the system key.
Is it possible to find out the Wi-Fi password in a cafe or airport?
No. Public networks (eg. Starbucks_WiFi or Free_Airport_WiFi) usually do not store the password in the keychain, because they use:
- Portal authentication (entering login/password in the browser).
- Time limit (password is only valid for a few hours).
- Dynamic keys (change with each connection).
In such cases, the password can only be obtained from the establishment's staff.