How to clear cache on Mac
Short answer
To clear app caches on a Mac, quit your apps, open Finder, press Shift Command G, go to ~/Library/Caches, move the contents of the folders you want to clear to the Trash, and empty the Trash. Browser caches are cleared from inside each browser. Deleting caches is safe: apps rebuild them, though the first launch afterwards can be a little slower.
The kinds of cache on a Mac
| Cache | Where it lives | Safe to clear? |
|---|---|---|
| App (user) cache | ~/Library/Caches | Yes. Apps rebuild it. |
| Browser cache | Each browser’s own folder, mostly under ~/Library/Caches | Yes. Pages reload once. |
| System cache | /Library/Caches | Usually. macOS rebuilds it. |
| Developer caches | ~/.npm, ~/Library/Caches/Homebrew, Xcode DerivedData | Yes. Tools download or rebuild. |
Clear app caches
- Quit the apps whose cache you want to clear.
- In Finder, press Shift Command G.
- Type
~/Library/Cachesand press Return. - Press Command J and tick Calculate All Sizes to see which folders are big.
- Open a large folder and move its contents to the Trash. Keeping the folder itself avoids permission problems.
- Empty the Trash to get the space back.
Clear browser caches
Safari
- Open Safari → Settings → Advanced and tick Show features for web developers. On older versions it is called Show Develop menu in menu bar.
- Choose Develop → Empty Caches, or press Option Command E.
Chrome
- Press Shift Command Delete.
- Tick Cached images and files, choose a time range and confirm.
Firefox
- Open Firefox → Settings → Privacy & Security.
- Under Cookies and Site Data, click Clear Data, tick the cached files option and confirm.
Note: clearing the cache does not sign you out. Clearing cookies does, so leave that box unticked if you want to stay logged in.
Clear system caches
System caches live in /Library/Caches (no ~ at the start). macOS and shared components rebuild them, and they are usually small. You will be asked for your password to remove them. Leave /System/Library/Caches alone, because macOS protects and manages it.
Is it safe, and how often should you do it?
Clearing caches is safe. The trade-off is speed: caches exist so apps do not have to download or rebuild the same data, so the first launch after clearing can be slower and the cache will grow back.
That is why you do not need to clear caches on a schedule. Do it when you are short on space, or when one app is misbehaving and a fresh cache might fix it.
Clear every cache in one pass with iClearer
iClearer finds app caches, browser caches, system caches, logs and developer caches in one scan and shows how much space each one uses. Caches your Mac rebuilds are labelled Safe. You tick what goes, and it moves to the Trash so you can undo it.
Scanning is free on every Mac and the free plan includes 500 MB of cleanup. Unlimited cleanup starts at $29.99 per year for one Mac, with a 14-day money-back guarantee. Needs macOS 13 Ventura or later, Intel or Apple silicon.Frequently asked questions
Is it safe to delete everything in ~/Library/Caches?
Yes. Everything in ~/Library/Caches is data apps can recreate. Quit your apps first, and delete the contents of the folders rather than the folders themselves. Apps may open more slowly the first time afterwards.
Will clearing the cache delete my passwords or log me out?
No. Caches hold temporary copies of data, not passwords. Passwords are stored in Keychain. You are only signed out of websites if you also clear cookies.
Does clearing the cache make a Mac faster?
Not usually. It frees disk space and can fix an app that is behaving oddly, but caches exist to make apps faster, so apps can feel slower until the cache rebuilds. A Mac with a nearly full disk does run better once space is freed.
How often should I clear the cache on my Mac?
Only when you need the space or an app is misbehaving. There is no benefit to clearing caches on a fixed schedule, because they grow back as you use your apps.
Where are cache files stored on a Mac?
App caches are in ~/Library/Caches, system caches are in /Library/Caches, and browsers keep theirs in their own folders, mostly under ~/Library/Caches. In Finder, press Shift-Command-G and type the path to open any of them.
Related guides
- Mac storage full? How to free up space safelyStartup disk almost full? See what is using your Mac’s storage, then clear caches, System Data, large files and developer junk safely, step by step.
- How to clear System Data on MacSystem Data taking up too much space? Learn what it contains and how to shrink it safely: caches, logs, Time Machine snapshots and app leftovers.
- Free up disk space on a Mac for developersReclaim tens of gigabytes on a developer Mac. Safe commands to clear Xcode DerivedData, npm, pnpm, pip, Homebrew, Docker, simulators and AI model caches.