
Why Is My Mac Not Connecting to Wifi? Keychain Corruption Fix
Introduction If you have ever stared at your Mac’s Wi-Fi icon spinning endlessly or showing that dreaded exclamation mark, you know how frustrating it can be. You click “Connect,” enter your password, and nothing happens. Or worse, it says “connected” but no i
Introduction
If you have ever stared at your Mac’s Wi-Fi icon spinning endlessly or showing that dreaded exclamation mark, you know how frustrating it can be. You click “Connect,” enter your password, and nothing happens. Or worse, it says “connected” but no internet loads. One of the most overlooked culprits behind this issue is keychain corruption. In this guide, we will explore Why Is My Mac Not Connecting to Wifi? and walk you through the keychain corruption fix step by step, along with other troubleshooting methods that actually work.
Whether you are on a MacBook Pro, MacBook Air, iMac, or Mac mini, Wi-Fi problems can stem from software glitches, corrupted network preferences, outdated macOS, or damaged keychain entries. The good news is that most of these issues are fixable without expensive repairs. By the end of this article, you will have a clear roadmap to diagnose and resolve your Mac’s Wi-Fi connection problems.
Table of Contents
- What Is the macOS Keychain?
- Why Is My Mac Not Connecting to Wifi?
- How Keychain Corruption Breaks Wi-Fi
- Signs Your Keychain Is Corrupted
- Before You Start: Quick Checks
- Step-by-Step Keychain Corruption Fix
- Resetting Network Preferences
- Flushing DNS and Renewing DHCP
- Adjusting Wi-Fi Settings
- Hardware and Router Checks
- Updating macOS and Drivers
- Troubleshooting Methods Comparison
- Tips and Best Practices
- Frequently Asked Questions
- Conclusion
What Is the macOS Keychain?
The macOS Keychain is Apple’s built-in password management system. It securely stores your passwords, certificates, secure notes, and Wi-Fi credentials. Whenever you connect to a wireless network and choose to “Remember this network,” macOS saves that Wi-Fi password inside the keychain. The next time your Mac tries to join that network, it retrieves the password automatically.
Because the keychain handles sensitive data, it uses encryption. If a keychain file becomes damaged, corrupted, or out of sync with your user account, macOS may fail to read the stored Wi-Fi password correctly. This results in repeated password prompts, failed authentication, or a complete inability to connect.
Why Is My Mac Not Connecting to Wifi?
When you ask yourself, “Why Is My Mac Not Connecting to Wifi?”, the answer is rarely just one thing. Wi-Fi failures can be caused by a combination of software, configuration, and hardware issues. Here are the most common reasons:
- Corrupted keychain entries: Damaged Wi-Fi password records prevent authentication.
- Outdated macOS: Bugs in older versions can break wireless connectivity.
- Corrupted network preference files: Plist files storing network settings may become damaged.
- Router issues: The router may be broadcasting on a congested channel or using incompatible security.
- DNS problems: Incorrect DNS settings can make it seem like Wi-Fi is down.
- Interference: Bluetooth devices, microwaves, and other electronics can disrupt the signal.
- Hardware failure: A faulty Wi-Fi card or antenna can cause persistent drops.
Understanding these causes helps you target the right fix instead of guessing. In many cases, the keychain corruption fix resolves the issue in minutes.
How Keychain Corruption Breaks Wi-Fi
Keychain corruption can happen after a macOS update, a failed password change, a Time Machine restore, or simply over time as files degrade. When the keychain that stores your Wi-Fi credentials becomes inconsistent, macOS may:
- Fail to retrieve the saved password and prompt you repeatedly.
- Send an incorrect or empty password to the router, causing authentication failure.
- Loop between “connecting” and “disconnecting” without ever establishing a stable link.
- Show “Incorrect password” even when you type the correct one.
The keychain corruption fix involves locating and removing the damaged entries so macOS can create fresh, valid ones. This is usually safe and does not affect other stored passwords if done carefully.
Signs Your Keychain Is Corrupted
Before jumping into fixes, look for these telltale signs:
- You are asked for your Wi-Fi password every time you connect, even though you saved it.
- The password you enter is rejected despite being correct.
- Keychain Access app crashes or shows errors when opened.
- Other saved passwords, like email or app logins, also stop working.
- Wi-Fi works on other devices but not on your Mac.
If several of these apply, keychain corruption is likely the root cause.
Before You Start: Quick Checks
Perform these quick checks before deep troubleshooting:
- Toggle Wi-Fi off and on from the menu bar.
- Restart your Mac.
- Restart your router and modem.
- Move closer to the router to rule out range issues.
- Check if other devices connect to the same network.
- Verify the Wi-Fi password on another device.
If these do not help, proceed to the keychain corruption fix and other advanced steps below.
Step-by-Step Keychain Corruption Fix
Follow these steps carefully to repair a corrupted keychain and restore Wi-Fi connectivity.
Step 1: Open Keychain Access
Press Command + Space to open Spotlight, type “Keychain Access,” and press Enter. This opens the keychain management utility.
Step 2: Locate Wi-Fi Password Entries
In the left sidebar, select “login” under Keychains and “Passwords” under Category. Use the search box in the top right to search for your Wi-Fi network name (SSID). You may see multiple entries for the same network.
Step 3: Delete Corrupted Entries
Select the Wi-Fi entries associated with your network. Right-click and choose “Delete.” Confirm the deletion. Do not delete unrelated passwords. If you are unsure, delete only entries clearly tied to the problematic network.
Step 4: Reconnect to Wi-Fi
Click the Wi-Fi icon in the menu bar, select your network, and enter the password when prompted. Check “Remember this network” so macOS creates a fresh keychain entry.
Step 5: Verify the Fix
Disconnect and reconnect to confirm the password is saved and connection is stable. Open Keychain Access again to confirm a new, valid entry was created.
Alternative: Reset the Entire Login Keychain
If individual deletion does not work, you can reset the entire login keychain. In Keychain Access, go to Keychain Access menu > Preferences, then click “Reset My Default Keychain.” This creates a new empty keychain and moves the old one to a backup. You will need to re-enter passwords for apps and websites, but this often resolves stubborn corruption.
Resetting Network Preferences
If the keychain fix alone does not resolve the issue, corrupted network preference files may be the problem. macOS stores network settings in plist files that can become damaged.
Follow these steps:
- Turn off Wi-Fi.
- Open Finder, click “Go” in the menu bar, then “Go to Folder.”
- Enter
/Library/Preferences/SystemConfiguration/and press Go. - Find and move these files to your Desktop (do not delete them yet):
com.apple.airport.preferences.plistcom.apple.network.identification.plistcom.apple.wifi.message-tracer.plistNetworkInterfaces.plistpreferences.plist
- Restart your Mac.
- Turn Wi-Fi back on and reconnect to your network.
macOS will regenerate fresh preference files. If everything works, you can delete the old files from your Desktop.
Flushing DNS and Renewing DHCP
Sometimes Wi-Fi connects but pages do not load. This can be a DNS or DHCP issue rather than a true connection failure.
Flush DNS Cache
Open Terminal and run the following command:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Enter your admin password when prompted. This clears the DNS cache.
Renew DHCP Lease
Go to System Settings (or System Preferences) > Network > Wi-Fi > Details (or Advanced) > TCP/IP, then click “Renew DHCP Lease.” This requests a fresh IP address from the router.
Adjusting Wi-Fi Settings
Certain Wi-Fi settings can cause connection instability:
- Preferred networks order: Remove old or duplicate networks from your preferred list.
- Auto-join: Enable auto-join for your main network.
- Security type: Ensure your router and Mac agree on WPA2 or WPA3. Older Macs may struggle with WPA3-only networks.
- Location services: In some cases, disabling and re-enabling Location Services for networking can help.
To manage preferred networks, go to System Settings > Wi-Fi > (i) next to your network > “Forget This Network,” then reconnect fresh.
Hardware and Router Checks
If software fixes fail, check hardware:
- Router firmware: Update your router’s firmware from the manufacturer’s admin panel.
- Channel congestion: Use a Wi-Fi analyzer app to find a less crowded channel (1, 6, or 11 on 2.4GHz).
- Band selection: Try switching between 2.4GHz and 5GHz. Some Macs have weaker 5GHz antennas.
- Bluetooth interference: Temporarily disable Bluetooth to test.
- SMC reset: On Intel Macs, resetting the SMC can resolve power-related Wi-Fi issues. On Apple Silicon Macs, simply restart.
Updating macOS and Drivers
Apple frequently patches Wi-Fi bugs in macOS updates. Go to System Settings > General > Software Update and install any available updates. Also check for firmware updates for your router. Keeping both sides updated ensures compatibility with modern security protocols.
Troubleshooting Methods Comparison
The table below compares common fixes, their difficulty, and when to use them.
| Method | Difficulty | Time Required | Best For |
|---|---|---|---|
| Toggle Wi-Fi / Restart | Easy | 1 minute | Temporary glitches |
| Delete Keychain Wi-Fi Entries | Easy | 5 minutes | Password rejected or repeated prompts |
| Reset Entire Login Keychain | Moderate | 10 minutes | Multiple apps and passwords failing |
| Reset Network Preferences | Moderate | 15 minutes | Corrupted plist files |
| Flush DNS / Renew DHCP | Easy | 3 minutes | Connected but no internet |
| Router Firmware Update | Moderate | 20 minutes | Router-side compatibility issues |
| macOS Update | Easy | 30+ minutes | Known bugs and driver issues |
Tips and Best Practices
- Always back up your keychain before major changes by copying
~/Library/Keychains/to a safe location. - Use a strong, unique Wi-Fi password and update it periodically.
- Avoid using special characters in SSIDs that may confuse macOS.
- Keep a wired Ethernet connection handy for troubleshooting without internet.
- Document your network settings before resetting preferences.
- If you use a VPN, disable it temporarily during Wi-Fi troubleshooting.
- Restart your Mac after major network changes to ensure settings apply.
Frequently Asked Questions
Why Is My Mac Not Connecting to Wifi even with the correct password?
This usually indicates keychain corruption. macOS may be sending a stale or corrupted saved password instead of the one you type. Deleting the Wi-Fi entries in Keychain Access and reconnecting fresh typically resolves this.
Will resetting my keychain delete all my passwords?
Resetting the entire login keychain creates a new empty keychain and archives the old one. You will need to re-enter passwords for apps and websites, but the old keychain file is preserved as a backup in case you need to recover data.
Can a router cause my Mac to not connect while other devices work?
Yes. Some routers use security settings or channels that certain Mac models struggle with. Updating router firmware, changing the security mode to WPA2, or switching bands can help.
Is it safe to delete files in SystemConfiguration?
Yes, as long as you move them to your Desktop first instead of deleting them. macOS will regenerate fresh copies on restart. If something breaks, you can move them back.
How do I know if my Wi-Fi card is broken?
If no networks appear at all, the Wi-Fi icon shows a question mark, or the card is not detected in System Information, hardware failure is likely. You can also test by booting into Safe Mode; if Wi-Fi works there, the issue is software-related.
Does Safe Mode help diagnose Wi-Fi issues?
Yes. Booting into Safe Mode loads only essential drivers and can reveal whether third-party software is causing the problem. If Wi-Fi works in Safe Mode, a login item or extension is likely interfering.
Conclusion
When you find yourself asking, “Why Is My Mac Not Connecting to Wifi?”, start with the simplest fixes and work your way up. The keychain corruption fix is one of the most effective and least invasive solutions, especially when your Mac repeatedly rejects a known-correct password. By deleting damaged keychain entries, resetting network preferences, flushing DNS, and keeping your system updated, you can resolve the vast majority of Wi-Fi problems without professional help.
Remember to back up important data before making system changes, and do not hesitate to contact Apple Support if hardware failure is suspected. With patience and the right steps, your Mac can be back online in no time.