Guide

How to clear the Safari cache on a Mac

Clear the Safari cache on your Mac without losing your history, passwords or bookmarks: all at once from the Develop menu, or one website at a time.

Updated 5 min read

To clear the Safari cache on a Mac without losing anything else, turn on Safari's Develop menu once, then choose Develop → Empty Caches or press Option Command E. That removes the copies of web pages, images and scripts Safari keeps so sites load faster. Your history, bookmarks, passwords and logins stay. To clear a single website instead, use Manage Website Data. Below are both methods, how they differ from Clear History, where the cache lives on disk, and when clearing it actually helps.

Clear the whole Safari cache from the Develop menu

These steps are the same in Safari 17 and Safari 18, on macOS Sonoma and Sequoia.

  1. Open Safari and choose Safari → Settings, or press Command ,.
  2. Click Advanced and turn on Show features for web developers at the bottom. In Safari 16 and earlier, the same option is called Show Develop menu in menu bar.
  3. Close Settings. A Develop menu now appears between Bookmarks and Window.
  4. Choose Develop → Empty Caches, or press Option Command E.

The cache is emptied straight away. Reload any page that was open to load it fresh. You can leave the Develop menu turned on: it adds the menu and an Inspect Element item when you Control-click a page, and changes nothing else about browsing.

What Empty Caches removes, and what it keeps

It removes cached copies of pages, images, scripts and stylesheets. The next time you visit a site, Safari downloads those files again, so the first visit can be a little slower.

It keeps:

  • Your browsing history.
  • Bookmarks and the Reading List.
  • Saved passwords and autofill details.
  • Cookies and other website data, so you stay signed in and sites remember your settings.
  • Open tabs, Tab Groups, profiles and extensions.

Clear the cache for one website

When only one site misbehaves, you don't need to clear everything.

  1. Choose Safari → Settings → Privacy.
  2. Click Manage Website Data… and wait for the list to load.
  3. Type the site's name in the search field, select it and click Remove, then Done.

This removes everything that site has stored, not only its cache: cookies and local storage go too, so you will be signed out of that site. Other sites aren't affected. The Remove All button does the same for every site and signs you out everywhere, which is rarely what you want when you only meant to clear the cache.

Reload one page without the cache

If a single page looks out of date, try this first: press Option Command R. Safari calls it Reload Page From Origin. It loads the page again and fetches its files from the website instead of using cached copies. Nothing else is cleared.

How Clear History is different

History → Clear History… is the option most people find first, but it does much more than clear the cache. After you pick a time range (the last hour, today, today and yesterday, or all history), Safari removes:

  • Your browsing history for that period.
  • Cookies and website data, so you are signed out of sites.
  • Cached files and other data Safari saved while you browsed, such as recent searches and the list of downloads. The downloaded files themselves stay.

Bookmarks and saved passwords are kept. If Safari is turned on in iCloud settings, the history is cleared on your other devices signed in to the same Apple Account as well.

If you want to clear history but stay signed in, hold Option while the History menu is open: the item changes to Clear History and Keep Website Data…. If you only want to clear the cache, use Empty Caches instead.

Where Safari keeps its cache on disk

Safari's cache lives in two places in your Library folder:

  • ~/Library/Caches/com.apple.Safari
  • The Caches folder inside Safari's container, at ~/Library/Containers/com.apple.Safari/Data/Library/Caches

macOS protects Safari's folders. Terminal may report "Operation not permitted", and other apps may see nothing, unless you give them Full Disk Access in System Settings → Privacy & Security → Full Disk Access.

You don't need to delete these folders by hand. Empty Caches does the same job safely while Safari is running. If you do remove files manually, quit Safari first, and leave ~/Library/Safari alone: that folder holds your history and bookmarks, not the cache. For other apps' caches, read is it safe to delete Library Caches.

Safari on iPhone and iPad is separate

Your iPhone and iPad keep their own Safari cache, and clearing it on your Mac doesn't touch them. iOS has no cache-only button like Empty Caches. On iPhone, Clear History and Website Data is in Settings → Safari (in iOS 18, Settings → Apps → Safari), and it also removes history and cookies. To clear one site, go to Advanced → Website Data on the same screen.

When clearing the cache helps, and when it doesn't

Clearing Safari's cache is worth doing when:

  • A site shows old content, or its layout looks broken after the site was updated.
  • A web page you are building keeps loading an old version of its files.
  • The cache has grown large and you need the space. It will grow again as you browse.

It usually won't help when:

  • Safari feels slow overall. The cache makes sites faster, so clearing it slows the next visits. Many open tabs, a heavy extension or memory pressure are more likely causes; see how to check memory usage and how to speed up your Mac.
  • Every site loads slowly. That points to your connection. Test your internet speed first.
  • A site doesn't load at all, or goes to the wrong place after a network or DNS change. Flush the DNS cache instead.
  • You can't sign in to one site. Remove that site in Manage Website Data, which clears its cookies too.

If you are clearing caches to free space, they come back as you use your Mac. How to free up space on your Mac covers what frees space for longer.

What about Chrome and other browsers?

Every browser keeps its own cache, so emptying Safari's doesn't affect Chrome, Firefox, Edge or Arc. In Chrome, press Shift Command Delete and tick only Cached images and files. The steps for each browser are in how to clear the cache on your Mac.

Clear Safari's cache with Roomy

Roomy's System Junk cleaner lists Safari under Browser Caches, next to Chrome, Firefox and the other browsers you use, with the size of each. It looks in ~/Library/Caches/com.apple.Safari and removes only the cache; bookmarks, passwords, history, open tabs and logins stay, because Safari stores them elsewhere.

  • Safari's cache is rated Safe when Safari is closed.
  • If Safari is open, it's rated Review with a note to quit Safari first, so nothing is pulled out from under it.
  • If macOS doesn't let Roomy read the whole folder, it's also rated Review. With Full Disk Access, Roomy can measure it fully and also checks the Caches folder inside Safari's container.
  • Safari's Safe Browsing data is skipped.

Only Safe items are selected for you, and every item shows what is removed and what stays before you clean.

Frequently asked questions

Will clearing the Safari cache sign me out of websites?

Not if you use Develop → Empty Caches. It removes only cached files, and your logins are kept in cookies, which it leaves alone. Removing a site in Manage Website Data, or using History → Clear History, does remove cookies, so you are signed out of those sites.

Does Empty Caches delete my history, bookmarks or passwords?

No. History, bookmarks, the Reading List, saved passwords, open tabs and extensions all stay. Empty Caches only removes the copies of web pages, images and scripts that Safari keeps to load sites faster.

Why can't I find Empty Caches in Safari?

It lives in the Develop menu, which is hidden until you turn it on. Choose Safari → Settings → Advanced and turn on Show features for web developers (Show Develop menu in menu bar in older versions of Safari).

Does clearing Safari's cache on my Mac clear it on my iPhone?

No. Each device keeps its own cache. Clearing history is different: if Safari is turned on in iCloud settings, clearing history on one device clears it on your other devices too.

How often should I clear the Safari cache?

Only when you have a reason: a site shows old content or looks broken, or you need the space. The cache is what makes sites you revisit load quickly, so clearing it on a schedule only makes browsing slower for a while.

Give your Mac room to breathe.
Start with a free scan.

Download Roomy, see exactly what is taking up space, and clean up to 500 MB for free. Nothing is removed until you say so.

Version 1.2.1 10.8 macOS 14 Sonoma or later Apple silicon and Intel