To clear cache on a Mac, first pick the cache that’s causing the problem, because each kind is cleared in a different place. A cache is data an app can make again when it needs it, so it fills up again as you use the app.
The quick answer, by kind of cache
- A website looks broken or out of date. Clear that browser’s cache. Safe: cookies stay, so you stay signed in.
- A sign-in is stuck, or you want sites to forget you. Clear cookies. Check first: you may be signed out.
- One app misbehaves, or its cache is huge. Delete that app’s cache. Usually safe: it goes to the Trash, and you can put it back while it’s still there.
- You need room briefly, such as for a macOS update. Start up in safe mode. Safe: macOS clears some system caches itself.
- A site won’t load after its address changed. That’s the DNS cache. Restart your Mac.
- Your whole disk is full. Don’t start with caches. See how to free up space on a Mac.
Leave every other cache alone: /Library/Caches, and anything in /System or /private/var. A MacBook works the same way.
Cache, cookies and history are three different things
Chrome and Firefox put all three in one dialog. Each costs you something different.
- Cache: parts of pages, such as images, kept so they open faster. Clearing it loses nothing of yours.
- Cookies: files sites create to remember you. Clearing them may sign you out.
- History: where you browsed. Clearing it in Safari also removes recent searches and the downloads list.
What each one costs you, in detail
- Cache. Some sites seem slower after you clear it, until their content loads again.
- Cookies. They remember that you’re signed in, and your preferences. Saved preferences can go when you clear them.
- History. In Safari, clearing it removes the list of downloads but not the downloaded files.
How to clear the browser cache on a Mac or MacBook
Safari: empty the cache
- Choose Safari > Settings, then click Advanced.
- Select “Show features for web developers”. A Develop menu appears in the menu bar.
- Choose Develop > Empty Caches.
This deletes the caches Safari has stored. Apple describes no undo, and you won’t need one: Safari stores pages again as you browse.
Safari’s other controls, and why not Clear History
- Safari > Settings > Privacy > Manage Website Data removes cookies and website data, for the sites you pick or for all of them. Apple’s guides for macOS Tahoe 26 and macOS 27 title that page “Clear your cache and cookies in Safari on Mac”, and warn that it may sign you out.
- History > Clear History removes your browsing history for a period you choose. If iCloud is set up for Safari, it goes from your other Apple devices too.
Clear History is the heavy option. Apple’s list of what it removes doesn’t include the cache. On macOS Tahoe 26, Safari’s own text for Clear History says it also removes related cookies and other website data, so you may be signed out. Apple describes no undo for it either.
Apple documents Empty Caches as a tool for web developers.
Chrome: cached images and files
- Open Chrome. At the top right, select More, then Delete browsing data.
- Choose a time range, such as Last hour or All time.
- Select “Cached images and files”. Deselect anything you want to keep, such as “Cookies and other site data”.
- Select Delete data.
This removes text and images Chrome kept from pages you’ve visited. Google’s page describes no undo.
If you’re signed in to Chrome
Google’s dialog for deleting browsing data covers history, cookies and cache together. When you’re signed in to Chrome, Google says deleting data saved to your Google Account, such as history, also removes it from your other devices and from the account.
Firefox: temporary files
These are the names in Firefox 161, current as this is written.
- In the menu bar, choose Firefox > Settings.
- Select the Privacy and security panel.
- In the Browsing data section, click Clear browsing data.
- Set When to All time, and make sure “Temporary files” is the only box checked.
- Click Delete.
With All time selected, Firefox warns that this can’t be undone.
Older Firefox versions
Older versions use other names:
- The panel was Privacy & Security before Firefox 151.
- The section was Cookies and Site Data before Firefox 152.
- The button was Clear Data before Firefox 145.
- Before Firefox 161, step 4 read Everything and “Temporary cached files and pages”.
- Before Firefox 160, the last button was Clear.
How to clear cookies on a Mac
To fix one site, remove only that site’s data.
- Safari. Choose Safari > Settings, click Privacy, then click Manage Website Data. Select one or more sites and click Remove, or click Remove All.
- Chrome. Select More > Delete browsing data, choose a time range, select “Cookies and other site data”, then select Delete data.
- Firefox. Open the same dialog as for the cache, check “Cookies and site data” and click Delete (Clear in older versions).
One site in Chrome or Firefox, and Apple’s notes
- Chrome, one site. Select More > Settings > Privacy and security > Third-party cookies > See all site data and permissions. Search for the site, select Delete next to it and confirm.
- Firefox, the site you’re on. Click the shield to the left of the address bar (a padlock before Firefox 149), then click Clear cookies and site data. Mozilla says this clears that site’s cached files too.
- Safari. Apple warns that removing website data may sign you out of sites or change how they behave, and that it may change or remove the same data in other apps.
How to delete an app’s cache on a Mac
Apple tells app makers that cache files can be made again, and that apps should never rely on them being there. So removing one app’s cache is usually safe, and it comes back.
Find the big caches first
- In Finder, choose Go > Go to Folder, type
~/Library/Cachesand press Return. - Switch to List view, then choose View > Show View Options.
- Select “Calculate all sizes” (its name on macOS Tahoe 26).
- Click the Size column header to sort.
Where app caches live
App caches live in two places in your home Library, which Finder hides by default:
~/Library/Caches. By Apple’s convention, each app keeps its cache in a folder named after its ID, which looks likecom.company.AppName.~/Library/Containers. macOS creates a container here for each sandboxed app, and every Mac App Store app is sandboxed.
Prefer Terminal? See your biggest caches
Terminal is the Mac’s built-in app for typing commands.
du -sh ~/Library/Caches 2>/dev/null
du -hd 1 ~/Library/Caches 2>/dev/null | sort -h | tail -n 10
The first line totals the folder. The second lists the nine biggest folders inside it, largest last, then the total again. Both only read, and 2>/dev/null hides the errors for any folder Terminal isn’t allowed to open.
Clear one app’s cache
- Quit the app.
- In
~/Library/Caches, find the folder named for that app. - Drag the folder to the Trash, or select it and press Command-Delete.
- Open the app and check that it works. It may be slower while it rebuilds.
- If something’s wrong, quit the app, open the Trash, select the folder and choose File > Put Back.
- When you’re satisfied, empty the Trash.
You remove only that one folder: data the app has to download or build again. It stays in the Trash, and you can put it back, until you empty the Trash. If “Remove items from the Trash after 30 days” is on in Finder settings, that’s 30 days at most.

Sandboxed apps
Mac App Store apps keep their cache inside a container. Never trash the container: it holds the app’s other data too.
Clear a Mac App Store app’s cache
On macOS Tahoe 26, the cache is in Data/Library/Caches inside the app’s folder in ~/Library/Containers. Quit the app, then trash what’s inside that Caches folder, not the folder. You lose the same kind of data, and Put Back works the same way until the Trash is emptied.
System caches: leave them to macOS
These aren’t yours to manage. When space is needed, macOS clears caches and logs that are safe to delete. These include interrupted downloads, staged macOS and app updates, and Safari website data.
What’s in /Library/Caches, /System and /private/var
/Library/Cachesis in the top-level Library, which holds items for apps that every user of the Mac shares./Systemholds macOS itself. Apple’s documentation says users can’t add, remove or alter items there./private/var/foldersis where macOS Tahoe 26 keeps a temporary folder and a second cache folder for each user. Its manual says the system may remove temporary files not opened in 3 days.

What safe mode clears
Starting up in safe mode clears some system caches, including font caches and the kernel cache. macOS makes them again as needed, so the extra room is temporary. Apple suggests it for a task that needs space only while it runs, such as installing a macOS update.
- Mac with Apple silicon. Shut down. Press and hold the power button until you see “Loading startup options”. Select your startup disk, hold Shift and click Continue in Safe Mode.
- Intel-based Mac. Turn on or restart your Mac, then immediately hold Shift until the login window appears.
To leave, choose Apple menu > Restart. You delete nothing yourself, so there’s nothing to put back.
What else to know about safe mode
- Apple notes that some features, including Wi-Fi and file sharing, might not work as expected in safe mode.
- The macOS manual adds that a safe boot removes the files in each user’s cache folder under
/private/var/folders.
The DNS cache
This one is about network lookups, not storage. macOS keeps a cache of the answers it gets when it looks up a site’s address. If a site won’t load after its address changed recently, restart your Mac. Apple says that updates the cached information.
Prefer Terminal? Reset the DNS cache
Apple’s archived article on the DNS cache gives this command for OS X 10.10.4 or later.
sudo killall -HUP mDNSResponder
sudo runs the command as root, past the checks that normally stop you, and asks for your password. The rest signals the macOS DNS service, which the article says resets the cache. The article is written for OS X and no longer updated, so restart instead unless you can’t.
When clearing a cache is worth it, and when it’s pointless
Worth it when a site shows an old version or loads badly, an app keeps misbehaving, or you want less tracking. Also when a removed app left its cache behind, since nothing will rebuild it: see uninstalling apps on a Mac.
Pointless:
- As routine cleaning for space. Caches regrow, and macOS clears the safe ones when needed. Apple calls the gain temporary.
- To make your Mac faster. Caches exist for speed.
- To shrink System Data for good. System Data, the category for files that fit no other, changes size with the state of your Mac. See our guide.
Why, in more detail
- Google lists an old version of a site, or one that loads badly, as reasons to clear the browser cache.
- Apple’s safe mode article allows that clearing caches can be what resolves an issue.
- Apple says removing cookies and website data may reduce tracking.
- Apple’s article on freeing up storage has one cache step, safe mode, and calls the gain temporary.
- Apple’s documentation says apps can use cache data to improve performance, and Google says sites can seem slower after you clear the cache.
- Apple counts caches in System Data.
What not to do
- Don’t trash the Caches folder itself. Only the data inside it can be made again.
- Don’t delete everything in
~/Library/Cachesat once. Go app by app. - Don’t delete anything in
/Systemor/private/var. macOS manages them. - Don’t paste
sudo rmcommands or cleanup scripts from the web.rmskips the Trash. - Don’t treat Application Support like a cache. It can hold your data.
Why these matter
- By default, no process can write to the system volume (a part of a disk that shows up as its own disk), not even Apple’s own.
/private/varholds working data macOS manages. sudoruns a command as root, past the checks that normally stop you.- Apple’s documentation says Application Support can hold files with your data.
Every cache on a Mac, at a glance
| Cache | Safe to clear? | Comes back? | How |
|---|---|---|---|
| Safari cache | Safe | Yes, as you browse | Develop > Empty Caches |
| Chrome cache | Safe | Yes, as you browse | More > Delete browsing data |
| Firefox cache | Safe | Yes, as you browse | Settings > Privacy and security > Clear browsing data |
| Cookies and website data | Check first: can sign you out | When you sign in again | Safari: Settings > Privacy > Manage Website Data. Chrome and Firefox: the cache dialog |
| One app’s cache | Usually; quit the app first | Yes, as you use the app | Trash its folder in ~/Library/Caches |
| A sandboxed app’s cache | Check first | Yes, as you use the app | The app’s own button, or trash what’s inside its Caches folder in ~/Library/Containers |
| App caches, with Disk Whisk | Safe items picked for you | Yes, as you use the apps | Scan and review free; clearing to the Trash is Pro |
| Shared and system caches | Leave alone | Yes, automatically | Safe mode, for room you need briefly |
| DNS cache | Not a storage item | Yes | Restart |
Sources and how we checked
- These steps use only what’s built into macOS and your browser. The Safari menus are the same in Apple’s Safari User Guide for macOS Sequoia 15, macOS Tahoe 26 and macOS 27.
- What a browser cache is, and when to clear it: Google.
- What cookies are, and clearing them in Chrome: Google.
- Clearing Chrome’s cache: Google.
- What Safari’s Clear History removes: Apple. Its note on cookies is Safari’s own text on macOS Tahoe 26.
- Develop > Empty Caches: Apple. We confirmed the command in Safari on macOS Tahoe 26.
- Turning on the Develop menu: Apple.
- Manage Website Data, its warnings and tracking: Apple.
- Clearing Firefox’s cache, and older panel, section and button names: Mozilla.
- Firefox’s names, from its own string files: Firefox 161, Firefox 160, Firefox 159.
- Clearing cookies in Firefox: Mozilla.
- Caches can be made again, and Application Support can hold your data: Apple.
- The hidden Library,
/System, and apps using caches for speed: Apple. - App containers: Apple. Every Mac App Store app is sandboxed: Apple.
- Go to Folder: Apple.
- Show View Options: Apple.
- The Trash, Put Back, the 30-day setting, and emptying for good: Apple.
- Space freed when the Trash is emptied, and safe mode for an update: Apple.
- Spotify’s Clear cache: Spotify.
- The top-level Library: Apple.
- What macOS clears by itself when space is needed: Apple.
- Safe mode, what it clears and how to start it: Apple.
/private/var/folders, the 3-day rule and the safe boot cleanup: the macOS manual pageman confstr.- The DNS cache: the manual page
man mDNSResponder, and Apple’s archived DNS article. - System Data and caches: Apple.
- The system volume: Apple Platform Security.
