How to Clear Your Cache on a Mac: A Complete Guide

Caches are supposed to make your Mac run faster — and most of the time, they do. But over time, bloated or corrupted cache files can slow things down, cause apps to behave strangely, or eat into your storage. Knowing how to clear them gives you a useful troubleshooting tool and a way to reclaim disk space.

The tricky part: "cache" on a Mac isn't one thing in one place. It's several types of stored data, spread across your system, your browser, and individual apps — each cleared in a different way.

What Is a Cache, and Why Does It Build Up?

A cache is a collection of temporary files your Mac stores so it doesn't have to re-fetch or reprocess the same data repeatedly. When Safari loads a webpage faster the second time, or when an app launches without rebuilding its interface from scratch, that's the cache doing its job.

There are three main categories on a Mac:

  • System cache — created by macOS itself to speed up core processes
  • User/app cache — stored by individual apps like Mail, Spotify, or Xcode
  • Browser cache — webpage assets (images, scripts, stylesheets) saved by Safari, Chrome, or Firefox

Each type accumulates naturally over time. Most files are harmless and small. But some apps — especially developer tools, video editors, or streaming apps — can generate caches that grow to several gigabytes without you noticing.

How to Clear Your Browser Cache 🖥️

This is the most common reason people go looking for cache-clearing options, and it's the most straightforward.

Safari:

  1. Open Safari and go to Safari > Settings (or Preferences on older macOS versions)
  2. Click the Advanced tab and enable Show Develop menu in menu bar
  3. From the menu bar, select Develop > Empty Caches

Alternatively, go to Safari > Clear History, which removes cache, cookies, and history together — a broader action than just the cache alone.

Google Chrome:

  1. Press ⌘ + Shift + Delete
  2. Set the time range to All time
  3. Check Cached images and files, then click Clear data

Firefox:

  1. Press ⌘ + Shift + Delete
  2. Select Cache from the list and choose your time range
  3. Click Clear Now

Clearing your browser cache is safe to do at any time. You'll be signed out of some sites temporarily, and pages may load slightly slower on the first visit while the cache rebuilds.

How to Clear App and System Cache on a Mac

This is where macOS is less obvious. There's no single "Clear Cache" button in System Settings — you access it through the file system directly.

Using Finder:

  1. Open Finder and press ⌘ + Shift + G to open the Go To Folder dialog
  2. Type ~/Library/Caches and press Enter
  3. You'll see a folder for each app that stores cache data
  4. You can delete the contents of individual app folders — but avoid deleting the folders themselves

The ~ symbol means this is your user library, which is separate from the system library at /Library/Caches. The system library cache is managed more tightly by macOS and is generally best left alone unless you're troubleshooting a specific issue.

What's safe to delete: Contents of individual app folders within ~/Library/Caches. Apps will rebuild these files as needed.

What to be cautious about: Bulk-deleting everything in one pass. Some apps store data in their cache folders that isn't easily rebuilt — particularly creative apps or those with large local databases. If you're not sure what a folder belongs to, look at the folder name; it usually matches the app's bundle identifier (e.g., com.apple.Safari).

Using macOS Built-In Tools to Free Up Storage

If your goal is reclaiming space rather than fixing a software issue, macOS has a built-in path that's safer for most users than manually navigating the Library.

Go to Apple menu > System Settings > General > Storage. From here you can:

  • See what's consuming space by category
  • Use Recommendations to offload unused files
  • Access Optimize Storage features

This won't clear all cache types, but it handles a lot of the routine cleanup automatically — without the risk of accidentally deleting something an app depends on.

DNS Cache: The Hidden One Worth Knowing About

There's another cache most guides skip: the DNS cache. Your Mac remembers the IP addresses of websites you've visited so it doesn't have to look them up every time. If a site has moved or you're experiencing connection issues with a specific domain, flushing the DNS cache can help.

To flush the DNS cache:

  1. Open Terminal (found in Applications > Utilities)
  2. Type: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  3. Enter your administrator password when prompted

This is safe, has no visible effect, and takes effect immediately.

What Actually Changes Based on Your Setup

How much clearing your cache matters — and which type you should focus on — depends on factors that vary from one Mac to another.

FactorWhy It Matters
macOS versionCache locations and Safari options vary across versions
Available storageLow-storage Macs benefit more from regular cache clearing
Apps installedDeveloper tools and media apps generate far larger caches
Browser usedEach browser has its own cache system and clearing method
How issues appearSlow browsing vs. slow apps vs. connection problems point to different caches

A Mac used primarily for web browsing with 512GB of storage and no developer tools will have very different cache accumulation than a machine running Xcode, Final Cut Pro, and multiple browsers daily. 🔍

The type of problem you're experiencing — or whether you're just doing routine maintenance — changes which of these steps is actually worth your time. Your specific combination of apps, storage situation, and what's been going wrong is what determines where to start.