You can see every Wi-Fi network your Mac has ever connected to by opening the Terminal and running a single command. This article shows you exactly how to list those networks, explains what the list means, and answers common questions about managing your Mac’s saved Wi-Fi history.
Why Your Mac Remembers Wi-Fi Networks
When you connect to a Wi-Fi network and enter its password, macOS stores that network’s name (SSID) and password in a system database called the System Keychain. This is what allows your Mac to automatically join known networks when they are in range, without asking you to re-enter the password each time. The list of saved networks is also used by the Wi-Fi status menu, where you can see a subset of known networks under the “Known Networks” section (accessible via System Settings > Wi-Fi > Advanced on newer macOS versions).
This stored history is convenient, but it also means your Mac retains a record of every network you have joined, including networks you may have forgotten about. If you want to audit that history—for privacy, troubleshooting, or just curiosity—you can retrieve the full list.
How to View the Full List of Saved Wi-Fi Networks
The most reliable way to see every network your Mac has connected to is to use the defaults command in Terminal. This command reads the preferences file where macOS stores the list of known Wi-Fi networks. Here is the step-by-step process:
- Open the Terminal app (found in Applications > Utilities).
- Type or paste the following command and press Enter:
defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences - The output will show a property list containing all saved networks. Look for the
RememberedNetworksarray—each entry includes the SSID (network name) and other details like the security type and the date it was last joined.
If you prefer a cleaner output, you can use a more targeted command that extracts just the SSIDs:
defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences | grep -E "SSID" | sed 's/.*= "\(.*\)";/\1/'
This will print a simple list of network names, one per line. Note that the command reads a system-level file, so it may require administrator privileges; if you get a permissions error, prefix the command with sudo and enter your password.
What the List Actually Shows
The saved networks list includes more than just the network name. Each entry in the RememberedNetworks array typically contains:
- SSID_STR: The human-readable network name (e.g., “CoffeeShopWiFi”).
- SecurityType: The encryption protocol used (e.g., WPA2, WPA3, WEP, or None for open networks).
- LastJoined: A timestamp of when you last connected to that network.
- AutoJoin: A Boolean value indicating whether your Mac automatically joins this network when in range.
This information is stored in a binary plist format, so the raw output may look cryptic. The grep command above simplifies it to just the SSIDs, which is usually what people want when they ask “list Wi-Fi networks Mac has connected to.”
It is important to note that this list does not include networks you connected to via a USB adapter or a virtual machine, nor does it include networks that were manually added but never actually joined. It reflects only networks that your Mac has successfully associated with.
How to Remove a Network from the List
If you want to delete a specific network from your Mac’s history, the easiest way is through the graphical interface:
- Open System Settings (or System Preferences on older macOS).
- Go to Wi-Fi, then click “Advanced” (or “Known Networks” on newer versions).
- You will see a list of saved networks. Select the one you want to remove and click the minus (-) button.
Alternatively, you can remove a network using the networksetup command in Terminal:
sudo networksetup -removepreferredwirelessnetwork <interface> <network-name>
Replace <interface> with your Wi-Fi interface name (usually en0) and <network-name> with the exact SSID. To find your interface name, run networksetup -listallhardwareports.
Removing a network does not delete the password from your keychain entirely; it only removes the auto-join preference. If you want to completely forget the password, you would also need to delete the corresponding keychain entry via the Keychain Access app.
Why the List Might Not Be Complete
There are a few reasons why the list you see might not include every network you have ever connected to:
- macOS updates: Some macOS updates have changed how Wi-Fi preferences are stored, and in rare cases, older entries may be migrated or pruned.
- Reset of network settings: If you have ever reset your Mac’s network settings (e.g., deleting the preferences file), the history would have been cleared.
- Multiple user accounts: The list is per-user. If you use multiple accounts on the same Mac, each account has its own saved networks.
- Networks joined via other devices: If you connected to a network using a different device (like an iPhone) and then used Instant Hotspot, that network might not appear in the Mac’s list.
If you are troubleshooting a Wi-Fi issue, an incomplete list can be misleading. For example, if you are trying to forget a network that no longer appears, it may have been removed by a system update or by a previous cleanup.
Privacy and Security Considerations
Knowing which networks your Mac has connected to can be useful, but it also raises privacy questions. The list of saved networks is stored in a system file that is readable by any user with administrator access. If you share your Mac, anyone with an admin account can see your Wi-Fi history. For that reason, it is a good idea to periodically review and remove networks you no longer use, especially public or untrusted networks.
Another security consideration is that macOS automatically tries to join known networks. If a network name is common (e.g., “Home” or “Guest”), your Mac might automatically connect to a malicious network with the same name that is broadcasting nearby. To mitigate this, you can disable auto-join for specific networks by editing the AutoJoin setting in the saved network list, or by turning off “Ask to join networks” in Wi-Fi settings.
Finally, if you are selling or giving away your Mac, you should erase all personal data, including saved Wi-Fi networks. The standard “Erase All Content and Settings” option (available on Apple Silicon Macs) will remove this history, but on older Intel Macs, you may need to manually delete the preferences file and keychain entries.
Frequently Asked Questions
Can I see when I last connected to a specific network?
Yes. The LastJoined field in the saved networks list shows the exact date and time of your last connection to that network. You can view it by running the full defaults read command and looking for the timestamp next to the network’s SSID.
Does the list include networks I connected to via Ethernet or VPN?
No. The list is specifically for Wi-Fi networks. Ethernet connections and VPNs are stored separately and do not appear in the Wi-Fi preferences file.
Why does my Mac show a network I never connected to?
There are a few possibilities: another user on your Mac connected to it, you joined it through a captive portal (e.g., a hotel or airport Wi-Fi) without actually entering a password, or the network was added manually by a system administrator profile. Also, if you used your Apple ID to share passwords with other devices, a network could have been saved automatically.
Will clearing the list slow down my Wi-Fi?
No. The list is only used for auto-join and for displaying known networks. Clearing it will not affect your current connection speed or performance. It may, however, cause your Mac to ask for a password the next time you encounter a network you previously joined.
Can I export the list to a file?
Yes. You can redirect the output of the defaults command to a text file using the > operator. For example: defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences > wifi_history.txt. This will create a file in your current directory containing the full property list.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Gadgets After Support Ends: Do They Improve?
- Delete Google Search Results About You
- OnePlus Buds Pro 3 Price Drop: Are They Worth It?
- Cloud Migration Ways to Prepare
- Remote Work Productivity Hacks That Actually Work
- Epic Games Removes Dark and Darker? Fact Check