33300066304
academy
Security
Privacy
Performance
English

How to Clear the Cache on Your Mac

Over time, your Mac’s cache gets bloated with old files and data, eating up system space and slowing your MacBook down. These cached files build up in your browser, your system, and your apps, impacting performance. Read on to learn how to clear the cache on Mac manually or download a specialized cleanup tool to do it in just a few clicks.

time-award
2024
World's best
brands
How_to_Clear_Cache_on_your_Mac-Hero
Written by

Updated on September 29, 2025
Reviewed by
This Article Contains
This Article Contains

    1. Identify which Mac caches to clean

    Macs generate several kinds of cache, including system data, application files, and browser data. This can make it tricky to pinpoint the source of performance issues. The good news is that there are various ways to identify which caches are safe to clear, without affecting your Mac’s stability.

    Via Activity Monitor

    Similar to Task Manager for Windows, Activity Monitor allows you to see all the running processes on your Mac, as well as information relating to cached data.

    Here’s how to check your Mac’s caches using Activity Monitor:

    1. Go to Finder > Applications > Utilities > Activity Monitor > Click the Cache tab.

      Locating Activity Monitor in Finder, Mac settings.
    2. Use the drop-down menu at the bottom of the window to view cached data for different periods.

    3. If you don’t see the Cache tab, go to Apple menu > System Settings > General > Sharing. Tick Content Caching and then restart your Mac.

      Enabling Content Caching on Mac.
    4. Reopen Activity Monitor. The Cache tab will now be visible.

    Via ~/Library/Caches

    Every app on your Mac stores its own cached files in the ~/Library/Caches folder. To locate them:

    1. Open Finder and click Go on the menu ribbon at the top of the screen.

    2. Select Go to Folder, type ~/Library/Caches, and click Go.

    3. You’ll see folders for each app — open them to review cached files.

      Screenshot to show how to locate caches on Mac.

    Via storage management

    Storage Management provides an overview of disk usage and helps you spot areas where cached data may be taking up unnecessary space.

    To locate storage management on a Mac, click the Apple icon in the top-left corner of your screen, select System Settings, then click Storage and review the items listed under Recommendations.

    Reviewing Storage and System Data on Mac.

    Here, you can also review categories like System Data and Applications for cache-related usage.

    Via Terminal commands

    Terminal provides direct access to system files and cache directories, but mistakes can cause serious issues. For that reason, it’s a tool best reserved for advanced Mac users.

    If you’re experienced with using command-line tools, here’s how you can find cache data using Terminal:

    1. Open Finder and go to Applications > Utilities > Terminal.

    2. Type “ls ~/Library/Caches” in Terminal and press Return.

      Using Terminal on Mac to find cache files.
    3. To see the size of each cache folder, type “du -sh ~/Library/Caches/*” and press Return.

      Run du -sh ~/Library/Caches/* command in Terminal, Mac.

    2. Restart your Mac

    Some performance problems can be resolved by restarting your Mac. This is because many cache files, especially temporary system caches and app caches, automatically clear upon a restart.

    To reboot your Mac, click the Apple icon in the top-left corner of your screen and select Restart.

    If your Mac is running very slowly, restarting your Mac in Safe Mode can help diagnose the problem. Safe Mode clears extra caches, checks your startup disk, and loads only essential system processes. This makes it easier to tell whether the slowdown is caused by third-party apps or system extensions.

    3. Clear browser cache on Mac

    No matter which browsing software you use, clearing the browser cache on your Mac or MacBook is relatively straightforward. Let’s take a closer look at how to do it on the most popular browsers.

    Keep in mind that the cache begins rebuilding as soon as you start browsing again. To stay on top of it, consider using a dedicated browser cleaner with automatic maintenance to keep your cache tidy without extra effort.

    In Safari

    Here’s how to delete the browser cache in Safari:

    1. Open Safari, click Safari in the top menu bar, and choose Settings.

    2. Select Advanced and tick Show features for web developers.

      The Advanced settings in Safari, with a tick next to Show features for web developers.
    3. In the top menu bar, click Develop and select Empty caches.

      Click Empty Caches in the Develop menu to clear the caches on your Mac.

    Once you’ve enabled the Develop menu, you can use a keyboard shortcut. Just press Command + Option + E to automatically clear your Safari browser cache.

    In Chrome

    Here’s how to clear the cache on Chrome for Mac:

    1. Open Chrome, click the three dots in the top-right corner, and select Settings > Privacy and security > Clear browsing data.

      Screenshot to show users how to find browsing data in Chrome.
    2. Use the Time range drop-down menu to filter data by timeframe. Select All time to completely clear your Mac’s Chrome cache.

      Screenshot to show users how to change cache timeframe data in Chrome.
    3. Tick Cached images and files and click Clear data.

      Screenshot to show users how to clear cached images and files in Chrome.

    You can also hit Command + Shift + Delete to quickly open the Clear browsing data menu.

    You can limit cached file buildup by browsing in Incognito mode in Chrome, which uses a temporary cache that’s erased when you close all private windows. The trade-off is convenience — you’ll need to open a private window each time you browse, making it less user-friendly as a long-term solution.

    In Firefox

    Here’s how to erase your cache in Firefox:

    1. Open Firefox, select History from the top menu bar, and then click Clear Recent History…

      Screenshot to show users how to find browsing data in Firefox.
    2. Use the Time range to clear dropdown to choose a timeframe (select Everything to completely clear your Mac’s Firefox cache). Then, tick Cache and click OK.

      Screenshot to show users how to clear cached images and files in Firefox.

    You can also use the keyboard shortcut Command + Shift + Delete to quickly bring up the Clear Recent History menu.

    In Avast Secure Browser

    Here’s how to clear your cache in Avast Secure Browser:

    1. Open Avast Secure Browser, click the three dots in the top right corner, and select Settings.

      Screenshot to show users how to locate settings in Avast Secure Browser.
    2. Click Privacy and security and select Privacy Cleaner.

      Screenshot to show users how to find browsing data in Avast Secure Browser.
    3. In the Time range dropdown, select All time (or your preferred period to clear). Then tick Cached images and files and click Clear data.

      Screenshot to show users how to clear cached images and files in Avast Secure Browser.

    You can also use the keyboard shortcut Command + Shift + Delete to bring up the Privacy Cleaner window.

    While cleaning up your temporary files can help improve your browsing experience, it doesn’t protect you from being tracked. Advertisers use web tracking techniques to gather insights into your habits and interests and target ads to you more precisely.

    An image of Avast Secure Browser.

    Even more invasive techniques like browser fingerprinting can also be used to create profiles of you based on your device, web browser, and IP address — making it easier to pick you out from the crowd.

    To experience the open internet without being tracked or targeted, use Avast Secure Browser to scrub your online footprints, block ads, and more.

    4. Clear system, application, and user cache

    Deleting system files can cause serious issues, which is why you should never remove them. However, you can safely delete user and application caches to free up space.

    While some of the cached files help your Mac RAM load apps faster, you may need to delete others to troubleshoot problematic programs. If you’re unsure, use a dedicated computer optimization app to help you figure out which ones can be safely removed.

    Before you start, back up your Mac using Time Machine so you can easily restore any files if something goes wrong after deletion. Whether you’ve got a MacBook Air or MacBook Pro, here’s how to clear cache files on any Mac model:

    1. Open Finder, click Go, and select Go to Folder…

      Screenshot to show users how to locate Folders on Mac.
    2. Type ~/Library/Caches and click Go.

      Screenshot to show users how to locate ~/Library/Caches on Mac.
    3. Click Caches, select the specific app’s folder you recognize, and drag its contents (not the whole folder) into Trash.

      Screenshot to show users how to delete system caches on Mac.

    Make sure to empty the Trash to remove files permanently. If you’re uncertain about whether a file is important, it’s best to err on the side of caution and leave it in place.

    5. Empty (“flush”) your Mac’s DNS cache

    Your Mac’s DNS resolver translates website names into IP addresses and caches the results to speed up future connections. If it becomes outdated or corrupted — for example, after DNS changes or DNS poisoning — some sites may load incorrectly or not at all.

    Emptying, or “flushing”, the DNS cache can fix these issues, but it doesn’t erase your full browsing history (including incognito browsing history).

    Here’s how to flush the DNS cache:

    1. Open Finder, and go to Applications > Utilities > Terminal.

    2. Type sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder and press Return.

    3. Enter your administrator password and press Return.

      Running "sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder" command in terminal, Mac.

    When entering your password, no characters or asterisks will appear. After you press Return, you won’t see a confirmation message either, but if no error message shows up, the command has worked.

    6. Use an automatic Mac cache cleaner

    While clearing your browser is pretty straightforward, it’ll immediately start to build up again. And when it comes to system and application caches, it’s best not to mess around with folders that might accidentally break something.

    Third-party cleanup tools like Avast Cleanup for Mac provide an easy, automated way to manage cache and temporary files on your Mac.

    Image of Avast Cleanup interface showing cache and temporary files.

    Simply download, install, and launch Avast Cleanup. Then click Start scan to see which files are taking up space.

    What are caches on Mac?

    Cached files are temporary files that your computer downloads and stores to save time when you reopen apps and programs in the future. The next time the cached files are needed, your computer quickly loads the data from the cache rather than downloading it again or searching for it in your system’s permanent storage.

    There are three main types of caches:

    • Browser cache: Your browser downloads images, videos, scripts, and other multimedia whenever you visit a webpage. These caches are saved on your Mac’s disk to enable faster page loads.

    • Application cache: Also called the user cache, the app cache stores cached files that are created by all other user applications. This includes Apple’s own apps, such as Spotlight and Maps, and third-party software such as photo and video editing programs.

    • System cache: macOS stores cached files on disk to help system services run smoothly. Don’t delete or alter these files — it can cause your computer to crashor other serious problems.

    Together, the files stored in your system cache, browser cache, and application cache form part of “Other” storage/System Data on your Mac.

    What does clearing cached data do?

    Clearing your cache deletes unnecessary data and frees up disk space. It also refreshes browser content — allowing you to view the most recent version of webpages — and helps troubleshoot app issues so they run more smoothly.

    Every website you’ve ever visited online — every e-shop, social media profile, and search you’ve made — stores cached files, images, and videos on your Mac. Add in your system and application caches, and you end up with gigabytes of unnecessary files taking up space.

    That’s why regularly clearing the cache is a great way to help clean up your Mac and speed it up. The same goes for iOS devices — clear the cache and cookies on your iPhone or iPad for faster, smoother browsing.

    Can I delete all my cache files on a Mac?

    No, you can’t delete your entire cache, because your computer accesses some cached files at all times. You can remove all cache files that aren’t actively in use, but that doesn’t necessarily mean you should.

    When dealing with system and user (application) caches, you can safely delete inactive files — but do so selectively. Caches are designed to speed up loading times, so clearing them for apps you use often, like a photo editor, can slow things down, especially mid-project. System caches, in particular, usually contain files essential for smooth operation, so use extra caution when clearing them.

    If your browser is running slowly or you want to free up space by removing junk, clearing your browser cache is a safer choice than deleting system or app files. Browser caches aren’t essential to your Mac’s performance, while system and application caches should only be cleared when troubleshooting issues or if storage is critically low. To reclaim space more safely, consider uninstalling apps you no longer use and removing unnecessary bloatware.

    Cache clearing made simple with Avast Cleanup for Mac

    Clearing your cache sounds simple, but it isn’t always straightforward. Browser caches refill almost instantly, and digging into system or app caches can be risky if you’re not an expert — one wrong move could disrupt how your Mac runs.

    An image of the Avast Cleanup app.

    Want to safely reclaim gigabytes of extra space instantly? Avast Cleanup clears out junk like caches, crash reports, log files, and old downloads — without touching the files you care about. It also helps you slim down your photo collection by finding duplicates and low-quality shots, and makes it easy to delete large, forgotten files. Keep your Mac running lean and clean with automatic maintenance from Avast Cleanup.

     

    More Performance Articles

    How to Clear the Instagram Cache on Your Device

    The Applications Folder on Mac: How to Find and Access Your Apps

    How to Clear System Data or “Other” Storage from Your iPhone

    How to Fix Corrupted Files on Windows Using SFC And DISM

    How to Lower CPU Usage on Windows

    How to Fix the Blue Screen of Death (BSOD) on Windows 10 and 11

    How to Clean Your Computer Screen Without Damaging It

    How to Clear Cache in Chrome and Other Browsers

    How to Screen Record on Your Mac or Macbook (With or Without Audio)

    How to Delete Cache and Cookies on Your iPhone

    How to Clear the Cache on Your Mac

    Android Safe Mode: How to Turn On & Disable Safe Mode on Your Phone

    Supercharge your iPhone with Avast Cleanup

    Avast Cleanup

    Free install

    Supercharge your Android with Avast Cleanup

    Avast Cleanup

    Free install
    Cleaning
    Performance
    Oliver Buxton
    10-03-2023