Here’s what to do when Safari quits unexpectedly

5 min read

Apple’s Safari is one of the speediest and most stable browsers around. But occasionally it does run into problems. One of these is that it can shut down, displaying a message that says ‘Safari quit unexpectedly’ or something similar. Fortunately, there are several things you can do to make sure the problem doesn’t re-occur.

Tip: Before we get started, some of the tips below involve several steps and can be a bit laborious. There is an easy way to deal with that, though. CleanMyMac contains tools that allow you to quickly free up RAM, among other things. And the lack of RAM memory is what sometimes crashes browsers. So, check this app out (or get a free trial of this software).


What to do if Safari quits unexpectedly on your Mac

If you find yourself frustratedly googling ‘why does Safari keep closing on my Mac?’, here’s what to do.

Check your extensions

Out of date or corrupt extensions are one possible cause of problems with Safari.

  1. Launch Safari.

  2. Click on the Safari menu and choose Preferences.

  3. Select the Extensions tab.

  4. Review the list of installed extensions.

  5. If you see any that look suspicious or that you no longer use, click on them and press Uninstall.

Remove website data

Data like cookies and temporary files can sometimes cause problems for Safari. The solution is to remove them. Unfortunately Safari’s tools for doing that don’t allow for a great deal of choice in what to remove. 

  1. Go to Preferences in Safari again.

  2. Click on Privacy.

  3. Press the button labelled ‘Manage Website Data’

  4. To remove data for individual websites, browse through the list until you find the site, or search for it using the search box. When you find it, select it.

  5. Click Remove.

  6. To remove data for all websites, press Remove All.

  7. Press Done when you’re finished.

The above steps remove all the data, like cookies for shopping carts, that websites use to track what you do while you’re on the site. It may mean that you have to log in to sites again, even if you previously selected ‘Keep me logged in’. The steps above don’t remove your browser history. 

Change your startup preferences

If you find that Safari quits unexpectedly as soon as you start up, it could be that a tab or window that you had open the first time it quit reopens when you relaunch and causes it to crash again. Here’s how to prevent that.

  • In Safari Preferences, choose the General tab.

  • If the top menu, ‘Safari opens with’ is set to ‘all windows from last session, or ‘All private windows from last session,’ click on it.

  • Choose ‘A new window’ or ‘A new private window’

  • Close Preferences and restart Safari.

Stop plug-ins

Plug-ins allow users to see and hear different types of content on websites, like Flash animation. If none of the steps above have solved your problem, try turning them off.

  1. Open Safari Preferences and click Advanced.

  2. Check the box next to ‘Stop plug-ins to save power’

  3. Close preferences.

Use the Develop menu to empty cache

As we said earlier, using Manage Website Data to get rid of cache files isn’t ideal. However, there is another way, using Safari’s Develop menu.

  1. Launch Safari’s Preferences again and click on the Advanced tab.

  2. At the bottom of the window, check the box next to ‘Show Develop menu in menu bar’

  3. Close Preferences.

  4. Click on the Develop menu.

  5. Choose Empty caches.

Manually remove Safari data files

If none of the above fix the problem, you’ll have to go deeper and search for data files in the Finder and remove them. Here’s how to do that. 

  • Click on the Finder in the Dock and navigate to the Go menu.

  • Choose Go to Folder

  • In the box, paste in: ~/Library/

  • You will find yourself in your user Library, where preferences and cache files are found. 

  • Choose the Caches folder and look for the following files

com.apple.Safari

com.apple.Safari.SearchHelper

com.apple.SafariServices

com.apple.WebKit.PluginProcess

com.apple.WebProcess

Metadata/Safari

  • Drag any of the files you find to the Trash.
  • Now, look for a folder called Preferences and drag the following two files to the Trash, if they are there:

com.apple.WebKit.PluginHost.plist

com.apple.WebKit.PluginProcess.plist

com.apple.Safari.plist

  • Finally, look for a folder called Saved Application State and drag this file to the Trash

com.apple.Safari.savedState

  • Empty the Trash.

How to fix ‘Safari quit unexpectedly’ the easy way

If all the steps above seem like a lot of time-consuming work, you’ll be pleased to know there is an easier way to clear website data, disable extensions and get rid of cache data. CleanMyMac does all of this and more. Here’s how to use it.

We’ll be using a free version of CleanMyMac. You can download it here.

    • After you’ve installed the app, click on the Uninstaller tab in the sidebar.
    • Find Safari in the list.
    • Now, select Safari components for deletion.

      For example, you can select:

      Preferences
      Supporting Files
      Binaries

Safari reset selected in the Uninstaller module in CMM

      Clicking Your Selection reveals a dropdown menu.
  • Choose Reset.
  • Finally, click the big Reset button underneath.


This operation t’s kind of similar to the previous part where we manually removed caches from Safari. But this time we’ve done it with CleanMyMac with much less dirty work. 

More Safari magic with CleanMyMac

As we’ve said above, Safari often quits when your Mac doesn’t have enough temporary memory, or RAM. There’s a button to instantly free up RAM in CleanMyMac.

Go to the Maintenance tab > Free up RAM

Free up Mac RAM with CleanMyMac

When Safari quits unexpectedly, it can be frustrating, especially if it happens repeatedly. However, if you follow the steps above, you should be able  to fix the problem quite quickly. It will be even quicker and easier if you use CleanMyMac to help.

Follow us
Blog FAQ