Safari crashing when you close a tab can be incredibly frustrating. One moment you’re browsing smoothly, and the next, the entire browser vanishes. While this problem can be annoying, it’s usually not difficult to fix. The causes are often related to memory overload, corrupted data, or problematic extensions. Let’s break down the steps to resolve it and get Safari running smoothly again.
Start by Forcing Safari to Quit
Sometimes, after a crash, Safari leaves background processes running that can trigger another crash when you try to close a tab. The first step is to force quit Safari:
- Press Command + Option + Esc.
- Select Safari and click Force Quit.
Alternatively, you can open Activity Monitor, locate Safari, and force quit it there.
Once Safari is fully closed, you’re starting fresh.
Clear Out Unnecessary Tabs
If you have many tabs open, Safari might run out of memory when trying to close a tab, causing a crash. To prevent this:
- Right-click the tab you want to keep open.
- Choose Close Other Tabs.
This clears the excess tabs in one go and helps stop the crash cycle.
Restart Your Mac
A simple restart can resolve many issues, including memory or system process problems that might be affecting Safari.
- Click the Apple icon.
- Select Restart and confirm.
This clears cached system data and resets everything Safari relies on, often solving the issue.
Clear Safari’s Cache and Cookies
Corrupted website data can also cause Safari to crash when trying to unload a tab. To clear it:
- Go to Safari > Settings > Privacy.
- Tap Manage Website Data.
- Click Remove All, then Remove Now.
Relaunch Safari. This action will log you out of most sites but remove problematic files that cause crashes.
Check Your Safari Extensions
Extensions like ad blockers or script tools can cause crashes. If the crashes happen on specific sites or when closing certain tabs, disable your extensions:
- Go to Safari > Settings > Extensions.
- Uncheck all extensions.
Test Safari, and if the crashes stop, re-enable extensions one by one to identify the culprit.
Update Safari
If you’re running an outdated version of macOS, Safari might have bugs affecting performance. Ensure Safari is up to date:
- Go to System Settings > General > Software Update.
- Install any available updates.
Safari updates alongside macOS, so this will include bug fixes related to browser stability.
Check for Malware
While rare, malware can destabilize Safari and cause crashes. If you’ve experienced other unusual behavior on your Mac, scan for malware to rule out any potential issues.
Reset Safari Preferences
Corrupted preference files can cause Safari to crash. To reset them:
- Quit Safari.
- Open Finder, hold Option, and click Go, then Library.
- Open Preferences and delete files starting with com.apple.Safari.
- Empty the Trash and relaunch Safari.
This resets Safari’s settings, so make sure to back up important information before doing this.
How to Avoid Crashes Going Forward
Here are a few habits to help prevent future crashes:
- Keep your number of open tabs reasonable.
- Regularly clear history and website data.
- Remove unused extensions.
- Update macOS and Safari regularly.
Safari should no longer crash every time you close a tab. With these fixes, it will become stable and predictable again, allowing you to browse smoothly.





