📑 Table of Contents
Every Mac maintains several layers of cached data designed to make your computer faster. When you open an app, visit a website, or load a document, macOS stores temporary copies of frequently accessed data so it can be retrieved more quickly next time. Over months and years, however, these caches can grow to consume tens of gigabytes of precious storage space. The challenge is knowing which caches are safe to remove and which ones should be left alone.
In this guide, we will explore every type of cache on your Mac, explain the difference between system caches and user caches, walk through browser-specific cache clearing for Safari, Chrome, and Firefox, and provide terminal commands for advanced cache management. No third-party tools required — just Finder and Terminal.
macOS automatically manages system caches and will purge them when disk space runs low. In most cases, manually clearing system caches provides no lasting benefit because macOS will immediately begin rebuilding them. Focus your cleanup efforts on user and browser caches instead.
What Are Caches and Why Do They Exist?
A cache is a temporary storage layer that holds copies of data for faster future access. When your Mac fetches data from a slow source (the internet, a large file on disk, a computation result), it stores a copy in a faster location. The next time that data is needed, the cached copy is served instantly instead of repeating the slow operation.
Caches exist at every level of your Mac:
- CPU caches (L1/L2/L3) — Hardware-level, managed by the processor. You cannot and should not touch these.
- Disk caches — macOS kernel caches for file system metadata and recently read disk blocks.
- Application caches — Each app stores its own cached data: images, compiled assets, API responses.
- Browser caches — Web browsers cache HTML, CSS, JavaScript, images, and fonts from websites.
- System caches — macOS caches fonts, icons, Spotlight indexes, and framework data.
Types of Caches on macOS
On macOS, cached data is stored in three primary locations:
User Caches: ~/Library/Caches/
This folder contains per-application caches for the current user. Each app has its own subfolder, typically named with its bundle identifier (e.g., com.apple.Safari). These caches are generally safe to delete, though the app may take longer to load the next time it launches as it rebuilds its cache.
System Caches: /Library/Caches/
System-level caches shared across all users. These support system services and should be treated more carefully. Deleting the wrong system cache can cause temporary glitches or slower performance until macOS rebuilds it.
Kernel and Boot Caches: /System/Library/Caches/
Critical system caches required for macOS to boot and operate. Never manually delete anything from this location. On modern macOS with System Integrity Protection (SIP) enabled, you physically cannot modify these files anyway.
Never delete caches from /System/Library/Caches/. These are protected by System Integrity Protection for good reason. Tampering with them can prevent your Mac from booting.
Clearing User Caches via Finder
- Open Finder and press Cmd + Shift + G (Go to Folder).
- Type
~/Library/Cachesand press Enter. - You will see folders for each application. To clear a specific app's cache, open its folder and delete the contents (not the folder itself).
- To clear all user caches, select all folders with Cmd + A, then move to Trash.
- Empty the Trash to reclaim the space.
Before deleting caches, note the total size by selecting all items and pressing Cmd + I (Get Info). This lets you see exactly how much space you will reclaim. Common savings range from 2–15 GB depending on usage patterns.
Browser Cache Clearing
Safari
- Open Safari and go to Safari → Settings (or press Cmd + ,).
- Click the Privacy tab.
- Click "Manage Website Data..."
- Click "Remove All" to clear all cached website data.
Alternatively, enable the Develop menu (Safari → Settings → Advanced → "Show Develop menu") and use Develop → Empty Caches for a quick cache-only clear.
Google Chrome
- Open Chrome and press Cmd + Shift + Delete.
- Set the time range to "All time".
- Check "Cached images and files" (uncheck others if you only want caches).
- Click "Clear data".
Mozilla Firefox
- Open Firefox and press Cmd + Shift + Delete.
- Set the time range to "Everything".
- Check only "Cache" and click "Clear Now".
System Caches: What Is Safe?
System caches at /Library/Caches/ require more caution. Here is a safety guide:
| Cache Type | Location | Safe to Delete? |
|---|---|---|
| User app caches | ~/Library/Caches/ | ✅ Yes, apps rebuild them |
| Browser caches | Via browser settings | ✅ Yes, use browser tools |
| System shared caches | /Library/Caches/ | ⚠️ Caution — research first |
| Font caches | /Library/Caches/com.apple.ATS/ | ✅ Safe, restart required |
| Kernel caches | /System/Library/Caches/ | ❌ Never touch |
| DNS cache | In memory | ✅ Flush via Terminal |
Terminal Commands for Cache Management
View total user cache size
du -sh ~/Library/Caches/Clear all user caches
rm -rf ~/Library/Caches/*The rm -rf command permanently deletes files without moving them to Trash. Triple-check the path before running this command. Never run rm -rf / or rm -rf ~.
Flush DNS cache
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponderUseful when websites are not loading properly or you have changed DNS servers.
Rebuild Spotlight index
sudo mdutil -E /Forces Spotlight to rebuild its entire index. Useful when search results seem wrong or incomplete.
Built-in vs Third-Party Cache Cleaners
| Feature | Manual (Finder/Terminal) | Third-Party Cleaner |
|---|---|---|
| User cache clearing | ✅ Full control | ✅ One-click |
| Browser caches | ✅ Per-browser settings | ✅ All browsers at once |
| System cache safety | ✅ You choose what to delete | ⚠️ May be too aggressive |
| Selective deletion | ✅ Full granularity | ❌ Usually all-or-nothing |
| Cost | Free | $30–$50/year |
| Risk | Low (with knowledge) | Medium (automated) |
When and How Often to Clear Caches
- Browser caches: Monthly, or when websites display incorrectly.
- User app caches: Quarterly, or when disk space runs low.
- DNS cache: Only when experiencing DNS-related browsing issues.
- System caches: Rarely. Only when troubleshooting specific system issues, and after research.
Remember: caches exist to make your Mac faster. Clearing them too frequently forces your Mac to rebuild them repeatedly, temporarily making things slower. The goal is balance — remove bloated caches periodically, but do not obsessively clean them daily.