You Need That Wi-Fi Password Right Now
You just got a new phone, tablet, or smart speaker. Or maybe a friend is visiting and needs to get online. You go to connect it to your home Wi-Fi, and your mind goes blank. What was that password again?
You know it’s saved on your Mac because you’re connected right now. But the password itself is a string of random characters you typed in once years ago and promptly forgot. Sound familiar? You’re not alone. This is one of the most common tech support headaches.
The good news is your Mac has been securely storing that password all along. You don’t need to dig out the tiny sticker on the back of your router or perform a factory reset. With a few clicks, you can reveal the password for any network your Mac has ever joined. This guide will show you exactly how, using built-in Apple tools that are safe, legal, and surprisingly simple.
How Your Mac Securely Stores Network Keys
Before we dive into the steps, it helps to understand what’s happening behind the scenes. When you first connect to a Wi-Fi network and enter the password, your Mac doesn’t just remember it in a plain text file. That would be a major security risk.
Instead, it uses a system called the Keychain. Think of the Keychain as a secure digital vault managed by macOS. It stores all sorts of sensitive information—website passwords, secure notes, certificates, and yes, Wi-Fi network passwords.
Each item in the Keychain is encrypted. To view a password, you must first prove you have permission by entering your Mac’s administrator password. This ensures that if someone gains physical access to your computer, they can’t immediately steal all your saved credentials.
The Keychain is synced across your Apple devices via iCloud Keychain, which is why a Wi-Fi password you enter on your iPhone might automatically work on your Mac later. For our purposes, we’ll be accessing the local Keychain on your specific Mac to find the password.
Method 1: Using Keychain Access (The Most Reliable Way)
This is the definitive method for finding any saved Wi-Fi password on a Mac. It works for every network your computer has ever connected to, provided you saved the password at the time.
Open the Keychain Access Application
First, you need to launch the right tool. Click the Spotlight search icon in the top-right menu bar (or press Command + Spacebar). Type “Keychain Access” and press Enter to open the application.
You’ll see a window divided into two main sections. On the left is a sidebar listing different keychain categories, and on the right is a list of entries.
Locate Your Wi-Fi Network
In the sidebar, make sure “Login” is selected under Keychains and “Passwords” is selected under Category. This filters the view to the passwords stored for your user account.
Now, look at the search bar in the top-right corner of the window. Type the exact name of your Wi-Fi network (the SSID). As you type, the list below will filter. Find the entry with your network name and a kind listed as “AirPort network password.” Double-click it.
Reveal the Hidden Password
A new window will pop up with details about this keychain entry. At the bottom, you’ll see a checkbox labeled “Show password.” Click it.
macOS will now ask you to authenticate. You need to enter the username and password you use to log into your Mac—this is your administrator account password. You may also need to click “Allow” or “Always Allow” depending on your settings.
After successful authentication, the password field will change from a row of dots to the actual plain-text password. You can now click and drag to select it, then copy it (Command + C) to paste into your other device.
Method 2: Using Terminal (For Power Users)
If you’re comfortable with the command line, you can retrieve the password even faster using Terminal. This method is great for scripting or if you prefer keyboard commands.
Launch Terminal and Enter the Command
Open Terminal from your Applications > Utilities folder, or via Spotlight. You’ll need a single command that tells the system to query the security framework for the specific network password.
Type the following command, but replace “YOUR_NETWORK_NAME” with the exact name of your Wi-Fi network. Keep the quotation marks around the network name.
security find-generic-password -wa “YOUR_NETWORK_NAME”
For example, if your network is called “HomeNet,” the command would be: security find-generic-password -wa “HomeNet”
Authenticate and Receive the Password
Press Enter. Terminal will immediately prompt you for your Mac’s administrator password. Type it and press Enter again. Note that for security, your password won’t appear as you type it—this is normal.
If the network name is correct and the password is stored, the next line Terminal outputs will be the Wi-Fi password in plain text. You can now use it directly.
A word of caution: The password will be visible in your Terminal history. If you’re on a shared computer, you may want to clear the line afterwards by typing “history -d” followed by the line number, or simply closing the Terminal window without saving.
Method 3: Sharing Directly to Another Apple Device
If the device you’re trying to connect is another Apple product—like an iPhone, iPad, or another Mac—there’s a magical, zero-password method. This uses Apple’s proprietary Wi-Fi password sharing feature.
Prerequisites for Seamless Sharing
For this to work, both devices must meet several criteria. Your Mac must be running macOS High Sierra or later. The other device needs iOS 11 or later, or iPadOS. Both devices must be signed into iCloud with the same Apple ID, or have each other saved as a contact in the Contacts app.
Also, Bluetooth and Wi-Fi must be enabled on both devices, and the other device must be unlocked and nearby. Personal Hotspot should be turned off on the receiving device.
Initiate the Connection
On the new Apple device, go to Settings > Wi-Fi. Select the network you want to join (the same one your Mac is connected to). It will prompt for a password.
Now, on your Mac, a system prompt will appear near the top-right of the screen. It will say something like, “[Other Device’s Name] is trying to join the Wi-Fi network “[Your Network]”.
Simply click “Share” on the prompt. The password will be transmitted securely between the devices, and the new device will connect instantly. You never have to see or type the password yourself.
What to Do If the Password Isn’t in Your Keychain
Sometimes, you might search for your network and not find it. Don’t panic. Here are the most common reasons and solutions.
You’re searching in the wrong keychain. In the Keychain Access sidebar, try selecting “System” under Keychains instead of “Login.” Some networks, especially those configured in enterprise or school environments, are stored system-wide.
The network name has changed. If you recently renamed your Wi-Fi network on the router, the Keychain entry will still be under the old name. Try searching for any network names you remember using in the past.
The password was never saved. If you initially connected to a public network that didn’t require a password, or you checked “Don’t save this network,” it won’t be in the Keychain. In this case, you’ll need to get the password from another source.
Official Recovery Methods When All Else Fails
If your Mac never knew the password, you must retrieve it from the source: your wireless router. This is the only legal and reliable method for finding a network’s current password.
Check the Router Itself
Most home routers have a default Wi-Fi password printed on a label on the bottom, back, or side of the device. It’s often called the “Wireless Key,” “WPA2 Key,” or “Network Password.” This is either the default password or, on some newer models, a unique one generated at the factory.
If you changed the password when you set up the router and can’t remember it, you’ll need to access the router’s admin panel.
Access Your Router’s Web Interface
To do this, you need to be connected to the router’s network, either via Wi-Fi or an Ethernet cable. Open a web browser on your Mac and type your router’s gateway address into the address bar. Common addresses are 192.168.1.1, 192.168.0.1, or 10.0.0.1.
You’ll be prompted for a router admin username and password. This is different from your Wi-Fi password. If you never changed it, check the router’s label for the default admin credentials, which are often “admin” for both fields.
Once logged in, navigate to the wireless or Wi-Fi settings section. The exact location varies by brand. Look for a field labeled “Wireless Password,” “Pre-Shared Key (PSK),” or “Security Key.” This will show your current Wi-Fi password.
The Last Resort: Factory Reset
If you’ve lost both the Wi-Fi password and the router’s admin password, a factory reset is your final option. This will erase all custom settings, including your Wi-Fi name and password, reverting them to the defaults on the label.
Find the small reset button on your router, usually in a tiny hole. Use a paperclip to press and hold it for about 10-15 seconds until the router’s lights flash. After it reboots, you can connect using the default credentials on the label. You should then immediately log into the admin panel to set a new, strong password.
Keeping Your Wi-Fi Secure After Finding the Password
Now that you have access, it’s a perfect time to think about security. Using the default password or a weak one is an open invitation to trouble.
Create a strong, unique password. It should be at least 12 characters long and include a mix of uppercase, lowercase, numbers, and symbols. Avoid dictionary words or personal information. Consider using a password manager to generate and store it.
Update your router’s firmware. Manufacturers release updates to fix security vulnerabilities. Log into your router’s admin panel and check for a firmware update section.
Enable WPA3 security if your router and devices support it. It’s the latest and most secure wireless encryption protocol. If WPA3 isn’t available, ensure you are using WPA2-Personal (AES). Never use the outdated and insecure WEP.
Your Connection, Back Under Your Control
Being locked out of your own Wi-Fi is frustrating, but as you’ve seen, your Mac is designed to help. Whether you prefer the graphical interface of Keychain Access, the speed of Terminal, or the elegance of Apple’s device-to-device sharing, the solution is just a few moments away.
Make Keychain Access your first stop. It’s the comprehensive vault for every network you’ve trusted. For future peace of mind, take five minutes today to log into your router and write down your current Wi-Fi password in a secure place, or save it as a secure note in your very own Keychain. Then, the next time a new gadget arrives or a friend asks to connect, you’ll be ready to get them online in seconds, no stress required.