How to Clear Cache on a Mac (App, Browser and DNS Cache)
Clear your cache is the first thing anyone suggests when a Mac misbehaves. Sometimes it is exactly the right fix: a website keeps showing an old version, an app crashes on launch, or the disk is nearly full and caches are taking 20 GB. Other times it does nothing useful, and the Mac feels slower while everything rebuilds. This guide covers each kind of cache and how to tell which situation applies.
Quick answer: To clear app caches, quit your apps, open Finder, press ⇧⌘G, go to ~/Library/Caches and delete the contents of the folders you want to clear (not the folders themselves), then empty the Trash. To clear Safari's cache, turn on Settings → Advanced → Show features for web developers, then choose Develop → Empty Caches (⌥⌘E). In Chrome, press ⇧⌘Delete. To flush the DNS cache, run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder in Terminal. Disclosure: we make Space App, which lists caches by app and size.
What are the different kinds of cache on a Mac?
A Mac holds app caches, browser caches, system caches and a DNS cache, and each is cleared in a different place. Knowing which one is causing trouble decides which fix is worth trying.
| Cache | What it does | Where it lives | Why you'd clear it |
|---|---|---|---|
| App caches | Speeds up apps by keeping downloaded or processed data | ~/Library/Caches, and sometimes inside ~/Library/Application Support | Free space; fix an app that misbehaves |
| System caches | Speeds up macOS itself | /Library/Caches and protected system folders | Rarely needed; Safe Mode clears some |
| Browser cache | Stores images and files from websites | Inside each browser | A site looks broken or out of date |
| Cookies and site data | Keeps you signed in, stores site preferences | Inside each browser | Privacy; fix sign-in problems |
| DNS cache | Remembers which server a web address points to | In memory | A site won't load after it moved servers, or after changing networks |
When does clearing the cache actually help?
Clearing a cache helps when an app crashes or shows corrupted data, a website shows an outdated page, or caches fill a nearly full disk. As a routine speed-up it does not help.
Helps: an app crashes or shows corrupted data, a website shows an outdated page, the disk is nearly full and caches are a big part of it, or an app you no longer use still holds a large cache.
Does not help: routine speed-ups. macOS already removes caches that are safe to delete when it needs the space. Deleting caches in use forces apps to rebuild them, so they run slower for a while. Finder, for example, has to regenerate every Quick Look thumbnail.
How much space do caches really take on a Mac?
On the one Mac we measured, the user Caches folder held 11.9 GB across 302 folders, and the five largest folders made up 8.8 GB of it. Developer and browser data dominated, not Apple apps.
The figures come from one developer Mac running macOS 26.6.2 on 2026-11-03, measured with du on ~/Library/Caches without Full Disk Access, so the numbers are a lower bound and not an average. A Mac used for office work will look different. The method is in the Sources.
How do I clear app caches on a Mac?
Quit the apps, open ~/Library/Caches in Finder, delete the contents of the folders you want to clear, and empty the Trash. Leave the folders themselves, because some apps expect them to exist.

Quit the apps whose caches you want to clear. Deleting caches under a running app can cause errors.
In Finder, choose Go → Go to Folder (or press ⇧⌘G), type ~/Library/Caches and press Return.
To see what is big, switch to List view (⌘2), press ⌘J and tick Calculate all sizes, then sort by Size.
Open the folders of the apps you want to clear and delete what is inside them.
Empty the Trash, then restart your Mac.
Some apps keep their real caches elsewhere. Chrome, Slack, Teams, Discord and other apps built on web technology often store them in ~/Library/Application Support/App name/Cache, and App Store apps keep theirs inside ~/Library/Containers.
Which cache files are safe to delete and which are not?
Contents of ~/Library/Caches are designed to be disposable, so deleting them is generally safe once the app is closed. Application Support folders, keychains and Mail or Messages databases hold real data and should stay.
| Usually safe to clear | Leave alone |
|---|---|
| Caches of apps you no longer use | Anything inside /System |
| Browser caches (from inside the browser) | Caches of apps that are open right now |
| Spotify, Slack, Teams and similar media or chat caches | Folders in ~/Library/Application Support that hold real data, not caches |
| Xcode DerivedData, if you develop | Keychains, Mail and Messages databases |
Doing this by hand works once, but it is tedious to work out which of 200-plus folders belong to which app. Space App lists app and system caches with their sizes in its Caches category, pre-selects only the ones that are safe to remove, and sends them to the Trash so a clean can be undone.
How do I clear the cache in Safari?
Safari hides the cache button behind its developer features. Turn on the Develop menu in Advanced settings, then choose Empty Caches or press ⌥⌘E. Signed-in sessions stay intact.
Open Safari and choose Safari → Settings (⌘,).
Click Advanced and tick Show features for web developers.
Choose Develop → Empty Caches from the menu bar, or press ⌥⌘E.
To also clear history, choose History → Clear History and pick a time range. This removes visited pages, recent searches and site icons. Downloaded files are not deleted.
How do I clear cookies in Safari?
Open Safari Settings, go to Privacy, choose Manage Website Data and remove the sites causing trouble. Removing cookies signs you out of those sites, so clear single sites before removing everything.
Choose Safari → Settings → Privacy.
Click Manage Website Data.
Select specific sites and click Remove, or click Remove All.
How do I clear the cache in Chrome, Firefox, Edge and Brave?
Each browser has a clear browsing data dialog with a cache option. Pick a time range, tick only the cache option, and leave cookies and passwords unticked to stay signed in.
| Browser | Shortcut | Where to choose what to clear |
|---|---|---|
| Chrome | ⇧⌘Delete | Choose a time range, tick |
| Firefox | ⇧⌘Delete | Choose a time range and tick |
| Edge | ⇧⌘Delete | Same as Chrome |
In Chrome, if you are signed in with sync turned on, clearing browsing data can also clear it on your other devices. Brave is built on Chromium, and we did not verify its menu names, so use its Settings search for the clear data option. Firefox and Edge menu names match third-party help guides we found by search, not the vendor pages, and they change between versions.
How do I flush the DNS cache on a Mac?
Run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder in Terminal and enter your password. The command prints nothing on success and frees no disk space; it makes the Mac look up web addresses afresh.
The full walk-through, with commands for older macOS versions and fixes for when a site still fails, is in How to Flush the DNS Cache on a Mac (and When You Need To).
Can I clear system caches with Safe Mode?
Yes. Apple says starting in Safe Mode clears certain system caches, which are rebuilt as needed. It is a troubleshooting step, not a cleanup tool, and it frees little space.
Do not delete system caches by hand. On an Apple silicon Mac, shut down, hold the power button until Loading startup options appears, select your startup disk, then hold Shift and click Continue in Safe Mode. Restart normally afterwards.
FAQs
Is it safe to delete cache files on a Mac?
Yes, for the contents of ~/Library/Caches once the relevant apps are closed. Avoid system folders, and do not delete caches while apps are running, because that can cause errors or crashes.
How often should I clear my Mac's cache?
Only when there is a reason, such as a problem to fix or space you need back. Clearing caches on a schedule mostly makes your apps rebuild them and run slower for a while.
Will clearing the cache delete my passwords?
No. Clearing a browser's cache keeps passwords. Clearing cookies signs you out of websites, but saved passwords in Passwords or your browser's password manager are kept.
Why does my cache come back after I clear it?
Apps are working as intended. Browsers, chat apps and streaming apps cache data to load faster, and they refill their caches as you use them, so a cleared cache grows again.
How much space do caches take on a Mac?
Space use varies a lot. The developer Mac we measured held 11.9 GB, and 5 to 20 GB is plausible on a Mac used daily, more with video editing or software development.
Does clearing the cache make a Mac faster?
Usually not. Caches exist to make apps faster, so deleting them makes the next launch slower. It helps only when a corrupted cache is causing a crash or a full disk.
Sources
Measurement: du -sk on ~/Library/Caches, one Mac, macOS 26.6.2, 2026-11-03, no Full Disk Access.
The Eclectic Light Company: Caches and purging in macOS Tahoe
The Eclectic Light Company: Will flushing caches free up disk space?
