Caches · Safari

How to clear the Safari cache on a Mac

Choose Safari → Settings, click Advanced and turn on Show features for web developers. Then choose Develop → Empty Caches. That empties Safari's network cache and its other caches, and leaves your history, passwords, bookmarks and sign-ins alone. To sign out of sites and remove what they stored, use Settings → Privacy → Manage Website Data instead.

Clear only the cache: Develop → Empty Caches

  1. In Safari, choose Safari → Settings and click Advanced.
  2. Turn on Show features for web developers. A Develop menu appears in the menu bar.
  3. Choose Develop → Empty Caches.

Apple's description of the command is that it empties "the network cache and other Safari caches". Nothing asks you to confirm and nothing says it is done, so don't wait for a message. Pages load a little slower the first time afterwards, while Safari fetches them again. You can turn the developer setting off again once you are done; the cache stays empty.

Three different things Safari can clear

Searches for "clear cache" often mean one of the other two, so it is worth knowing which is which:

  • The cache (Develop → Empty Caches): copies of pages, images and scripts Safari keeps so sites load faster. Safe to clear; it is rebuilt as you browse.
  • Cookies and website data (Settings → Privacy → Manage Website Data): what sites stored to remember you. Removing it signs you out of those sites and can change how they behave, and Apple warns it may change or remove the same data in other apps.
  • History (History → Clear History): pages you visited, recent searches, the downloads list and the like. Downloaded files stay. If iCloud is set up for Safari, the history is removed from your other Apple devices too.

Clear cookies and data for one site

When one site misbehaves, clear just that one rather than everything:

  1. Choose Safari → Settings, then click Privacy.
  2. Click Manage Website Data.
  3. Select the site (the search field finds it), then click Remove. Remove All does every site at once.

You'll need to sign in to that site again.

How much space Safari's cache takes

Safari keeps its cache in your Library folder. To measure it, open Terminal and run:

du -sh ~/Library/Caches/com.apple.Safari 2>/dev/null

If that prints nothing, macOS is keeping Terminal out of Safari's folders; it needs Full Disk Access in System Settings → Privacy & Security to see them. The cache is usually not where a full Mac's space has gone. If you are clearing it to free storage, see Mac storage full? for the bigger things first.

What not to delete

  • ~/Library/Safari. That folder holds your bookmarks, history and Reading List, not the cache. Deleting it loses them.
  • Safari's folders in Finder in general. Use Safari's own commands, which know what is cache and what isn't.

Where the app comes in

RefreshYourMac has no Safari category: Safari's own Empty Caches is the right tool for Safari. For every other app's cache, its Application Caches category measures ~/Library/Caches, rated Safe for auto removal, in both editions (in the Mac App Store edition, once you allow the folder in Settings → Folders). For Chrome, Firefox and Teams, which keep caches of their own, see how to clear the cache on a Mac, the Firefox cache and the Teams cache.

What to do next: see these numbers for your own Mac. Download RefreshYourMac free, or get it on the Mac App Store.

What it costs to have an app do this

RefreshYourMacCleanMyMacMacKeeper
Pay once$24.99€119.95 on MacPaw’s store; $89.99 for CleanMyMac X on the Mac App Storesubscription only
Yearly$14.99 a year, first 7 days free$39.99/yr; €19.91/yr for the cleaning-only Essential Trio€71.40 for the first year, 1 Mac. Their page shows it against a €119.40 list price
Monthly$1.99 a month$9.99/mo€10.95/mo
Account neededNoYesYes

Before you pay anything, both versions give you 3 free scans. CleanMyMac and MacKeeper prices read from their own pages and the Mac App Store on 27 October 2026; the full comparison is at RefreshYourMac vs CleanMyMac and MacKeeper.

Frequently asked questions

How do I clear the Safari cache without losing my passwords or history?

Choose Safari → Settings, click Advanced and turn on Show features for web developers, then choose Develop → Empty Caches. It empties Safari’s network cache and other caches, and leaves history, passwords, bookmarks and sign-ins alone.

What is the difference between clearing the cache, website data and history in Safari?

The cache is copies of pages Safari keeps to load them faster, and is rebuilt as you browse. Website data (Settings → Privacy → Manage Website Data) is what sites stored to remember you, so removing it signs you out. History (History → Clear History) is the pages you visited, and with iCloud set up for Safari it is removed from your other devices too.

How do I clear Safari’s data for just one website?

Choose Safari → Settings, click Privacy, then Manage Website Data. Select the site and click Remove. You will need to sign in to it again.