Is it safe to clear Safari’s cache and website data on a Mac?
- Yes. The cache is copies of pages, images and scripts Safari saved so sites open faster, and Safari fetches them again as you browse. Bookmarks, history and passwords are kept separately and stay.
- What it costs you: slower first visits. Removing website data as well (cookies and site storage) signs you out of websites, and Apple notes it can change that data in other apps too.
- Does it come back? Yes, the cache refills as you browse. Clear it from Safari’s own settings rather than by deleting folders.
- SiftMac’s verdict: Rebuilds
1. What it is
Safari keeps two kinds of things for the sites you visit. The cache is copies of page parts, such as images, scripts and style sheets, so a site you return to doesn’t download everything again. Website data is what sites store on purpose: cookies that keep you signed in, local storage, databases and offline data for web apps.
Both build up again by browsing. The difference is what you lose on the way. An empty cache only means slower first loads. Removing website data means signing in again and losing small site preferences, like a chosen language or a cookie notice you already dismissed.
- Not part of either: your bookmarks, your browsing history (cleared separately with History › Clear History), saved passwords in your keychain, and files you downloaded.
2. Where it is
~/Library/Caches/com.apple.Safari
~/Library/Containers/com.apple.Safari
~/Library/Safari
Safari’s cache and website data are spread across these folders, and ~/Library/Safari also holds your bookmarks and history. Apple doesn’t document which file is which, and recent macOS versions guard these folders, so Finder and Terminal may need Full Disk Access just to look inside. That’s why the safe route is Safari’s own settings below, not the folders.
3. How big it gets
There’s no fixed size. It depends on how much you browse and which sites you use: web apps that work offline and sites full of video and images store the most. Safari › Settings › Privacy › Manage Website Data lists every site that has stored something. To measure the main cache folder in Terminal:
du -sh ~/Library/Caches/com.apple.Safari
4. How to clear it safely
Cache, cookies and site data together
- In Safari, choose Safari › Settings, then click Privacy.
- Click Manage Website Data.
- Select one or more websites and click Remove, or click Remove All to clear every site.
This is Apple’s own way to clear Safari’s cache and cookies. Removing sites one at a time keeps you signed in everywhere else.
Only the cache
- Choose Safari › Settings, click Advanced and turn on Show features for web developers. A Develop menu appears in the menu bar.
- Choose Develop › Empty Caches.
Apple describes Empty Caches as emptying the webpage cache and Safari’s other caches. Cookies are a different kind of data, so this is the gentler choice when you only want stale pages gone.
History › Clear History is something else again: it removes the list of pages you visited, recent searches and similar records, and if Safari syncs through iCloud, Apple says it removes them from your other devices as well.
5. What happens afterwards
- Each site loads a little slower on your next visit while Safari saves fresh copies.
- After Remove All, you’re signed out of websites and some forget settings such as language.
- Apple notes that removing cookies and website data in Safari may change or remove them in other apps.
- Bookmarks, history, open tabs, passwords and downloaded files stay as they were.
6. What not to delete instead
Don’t delete ~/Library/Safari to save space: it holds your bookmarks and history along with site data. Browser caches are rarely what fills a Mac anyway. The bigger wins are usually elsewhere: the Downloads folder, the caches other apps keep in ~/Library/Caches, and the steps in how to clear cache on a Mac.
Questions
Does clearing Safari’s cache delete my passwords or bookmarks?
No. Manage Website Data and Empty Caches work on cached files and site data. Bookmarks, history and the passwords in your keychain aren’t part of either.
Will clearing Safari’s cache sign me out of websites?
Empty Caches works on caches, not cookies, so it’s the gentle option. Remove All in Manage Website Data removes cookies as well, which signs you out; remove single sites if you only want to reset a few.
Is clearing history the same as clearing the cache?
No. Apple lists what Clear History removes, such as visited pages, recent searches and frequently visited sites, and the cache isn’t on that list. Clear the cache with Manage Website Data or Develop › Empty Caches.
Can I clear Safari’s cache from Terminal?
It isn’t worth it. Apple doesn’t document the folders, macOS guards them, and one of them also holds your bookmarks. Safari’s two built-in options do the job without guessing.
How SiftMac handles it. SiftMac leaves Safari to Safari. Apple’s own caches (folders named com.apple.…) are on its list of things it never touches, since macOS often guards them, and its space map shows ~/Library/Safari and ~/Library/Containers as private instead of reading them. Use Manage Website Data or Empty Caches.
Download SiftMac · scanning is free, and so is your first 2 GB of cleaning · See how it works