How to clear cache and cookies on Mac and why even care about it? Because if left unnoticed, these files can quickly eat up 65+ GB of space. Ultimately, it may lead to all kinds of glitches: overall Mac and browsers slowdown, increased startup time, and interference with app and macOS updates. But how to delete cache on Mac and where to look for these files if they are hidden? Keep on reading to learn answers to these questions and even more.

What is cache on Mac and how does it work?

Cache is a small file storing temporary data. When you open a web browser or an app, this information is then retrieved instead of being downloaded to make the work or this app or browser faster and address your request within seconds.

There are roughly three main types of caches on your Mac.

Main cache types

Browser cache: Temporary web data storage

No matter what web browser you use, they all have their own cache. Those caches store files and their elements like HTML, CSS, JavaScript, cookies, or images that your browser uses to display websites: for instance, product page images, login information, shopping cart content, etc.

    System cache: macOS background files

    Mac's system cache is a memory bank that connects the main memory and the processor. This allows the CPU — or central processing unit — to retrieve data that your device uses to execute instructions quickly and without the need to load it bit by bit.

    DNS cache: Network connection history

    It is a subtype of system cache. DNS cache is a list of domain names attributed to the websites you’ve visited. However, it is not the same as browser history since domain name information is coded in numbers. So, essentially, DNS cache is a logbook that translates this numerical information into a human-readable website name.

    Application cache: User app data

    Just like a web browser, each app maintains cache files of its own. It helps quickly reload images, search history, videos, and other needed information to speed up as well as improve the performance and efficiency of the apps.

    Is cache necessary?

    It is. Cache helps make the user experience more enjoyable because this temporary data makes the work of your devices, browsers, and apps faster. Cache can accumulate over time and cause issues, though.

    Why you should clear cache on Mac: 8 key benefits

    1. Improve system performance and speed and get faster loading, reduced lag, and better system responsiveness.
    2. Free up valuable disk space: depending on how you use your MacBook, you may free up megabytes or gigabytes of space.
    3. Fix website loading and display issues: deal with outdated content, broken pages, and formatting errors.
    4. Enhance online privacy and security due to tracking data removal and cookie/browsing history deletion.
    5. Troubleshoot crashing or freezing apps: fix app instability and remove outdated app files.
    6. Ensure you see updated website content: current versions, updated pages, and fresh data.
    7. Resolve network and DNS connection problems: get rid of DNS errors, connection failures, and network glitches.
    8. Prepare your Mac after system updates: ensure macOS compatibility, remove outdated files, and fix update conflicts.
    Where cache files are stored

    When should you clear cache on Mac?

    Warning signs your Mac cache needs clearing

    Here are a few issues that cache clearing can fix:

    🚩 Your Mac feels sluggish or has become unresponsive and it takes forever to start up.

    🚩 Your apps started to take a long time to open or respond and crash frequently.

    🚩 Your browsers have become slow, even though your internet connection is stable and fast.

    🚩 Your Mac is displaying system errors.

    🚩 You are running low on space and, specifically, note that System Data has grown large.

    Recommended clearing frequency by user type

    Based on how you use your MacBook, the need to clear type may be different:

    • Casual users (browsing, watching videos, education) — quarterly
    • Heavy users (video and photo edition, streaming) — monthly
    • Developers (developer tools and virtual machines) — weekly
    When is the best time to clear Mac cache?

    There’s no right or wrong answer because cache clearing can be a part of routine Mac maintenance or troubleshooting Mac glitches. However, there is a good rule of thumb — clear it before updating your Mac or right after to ensure system compatibility.

    What you can (and can't) safely delete: Critical guidelines

    You cannot rely on macOS to automatically delete caches. While it does rebuild some system caches, it does not remove any automatically, so you will have to do it manually to free up some space and troubleshoot glitches.

    But not everything is safe to delete. Here’s the main breakdown:

    Safe to delete

    ⁉️ Approach with caution

    Never delete

    Browser cache

    System cache in use

    System folders

    DNS cache

    Active app files

    Complete cache folders

    Old app data

    Critical macOS files

    Before you start deleting cache, take these precautions, too:

    📝 Back up your Mac — preferably, using Time Machine

    📝 Quit apps running in the background

    📝 Make sure you have the needed login credentials (website logins, app accounts, etc.) stored in a safe place or noted down

    How to clear browser cache on Mac (All major browsers)

    Potential space reclaimed: up to 15% 

    If not deleted, browser cache can pile up quickly and generate some privacy-related issues. The process depends on the browser you use. It's important to delete cache for all browsers you have installed on your Mac. Clearing cache in one browser will not automatically clear it for all other browsers because each browser manages its data and cache separately.

    After clearing cache in browsers, websites may load slower at first because all elements are re-downloaded. But this slowdown is temporary, and your browsers will eventually become faster than before the cleanup.

    Also, here are a few popular concerns for you to consider:

    • You will have to log into all websites once again because clearing cache will log you out.
    • Clearing cache does not delete autosaved passwords or other autofill data.
    • You will not lose any personal files downloaded via the browser, bookmarks, saved settings, and data stored in the cloud.
    • Clearing cache files may help prevent online tracking, but won’t stop it entirely because it is mainly handled by cookies.
    • Clearing cache removes only temporary website files (like images) and does not affect a broader range of personal information like browsing history or cookies.

    Now, to browser cache cleanup.

    🛠️ How to clear cache in Safari

    🛠️ How to clear cache in Chrome

    🛠️ How to clear cache in Firefox

    🛠️ How to clear cache in Edge

    What's the relationship between cache and swap memory?

    Swap memory and cache are both related to how your Mac manages data for performance. However, caches are a high-speed memory used to store frequently accessed data, while swap memory is a slower storage area on a hard disk that is an extension to RAM. When RAM is full, less-used data is moved to this slower swap space.


    How to clear Safari cache on Mac

    Deleting cache files in Safari is not as straightforward as in other browsers. However, it's still not too complex if you follow the steps we outline. The steps vary for macOS Ventura and later and macOS Monterey and older.

    Using the Develop menu

    macOS Ventura or later
    1. Open Safari and go to Settings from the menu bar.
      Open Safari settings
    2. Navigate to the Advanced tab and make sure that the box next to the "Show Develop menu in menu bar" option is selected. In some macOS versions, it is named "Show features for web developers."
      Safari Settings
    3. Quit Settings.
    4. Now, navigate to Develop > Empty Caches.
    empty caches in Safari
    macOS Monterey or older
    1. Open Safari and go to Preferences > Advanced.
    2. Enable "Show Develop menu in menu bar".
    3. Quit Preferences.
    4. Click Develop from the menu bar > Empty caches.

    Finally, restart the browser. Note that you'll have to enter your login info once again, as it will be removed along with the auto-fill details.

    Clear Safari data via Privacy settings and remove browsing history and cookies

    To delete cache and other data for a specific website, go to Settings > Privacy and click Manage website data. Select the website and click Remove. This way, you can also clear cookies on Mac in Safari, and if you click Remove All, it will delete cookies for all websites you've ever visited. It is a good way to reduce tracking.

    Now, click History > Clear History in the menu bar.

    How to clear browsing history in Safari

    Tip: While in Settings > Privacy, you can also select the checkbox next to Prevent cross-site tracking — it limits third-party cookies and other data collectors from following you across different websites.

    Let's move on to the next browser.

    How to clear cache in Chrome

    Clearing browser cache in Chrome is less tricky. Here's how:

    1. Open Chrome and paste the following in the search bar chrome://settings. Now, press Return.
    2. Navigate to the "Privacy and security" section and click "Delete browsing data" there.
      Delete cache in Chrome
    3. From the list, select "Cached images and files".
    4. In "Time range," choose "More" >"All time" and click "Delete from this device".
      Clear cache in Chrome

    And if you want to prevent cross-site tracking, in Privacy and security, click Third-party cookies and select Block third-party cookies.

    Selective cache clearing

    If you want to remove cache for a specific website, paste this path into the search bar: chrome://settings/content/all

    Now, find your website in the list and click the trash icon next to it — you will now delete all site-related data. Note that it will log you out of the website and delete any offline data.

    Tip: Another way to speed up your browsers is to delete cookies, not only browser cache. To delete cookies in Chrome, select the checkbox next to Cookies and other site data before clicking Delete data.

    What's the difference between clearing browsing data and cache?

    These two terms are frequently used interchangeably, but browser data is a broader term that includes cache, cookies, and browsing history. So, when you clear browsing data, you remove more information compared to clearing cache.

    Let's move on to our third browser.

    How to clear cache in Firefox

    In Firefox, the process is somewhat similar to Chrome. Here's how to delete cache in Firefox manually:

    1. Open Firefox and paste about:preferences into the search bar.
    2. Navigate to the Privacy & Security section.
    3. Find Cookies and Site Data in the pane and click "Clear browsing data".
      remove cache in Firefox in macOS Tahoe
    4. Choose "Temporary cached files and pages" and click "Clear" to confirm.
    Delete cache in Firefox

    If you want to clear cache for a particular website, instead of Clear browsing data, click Manage browsing data. Now, find your target website, select it, and click Remove Selected.

    If you want to prevent tracking, in the Privacy & Security section of Settings, choose the option that works best for you under Enhanced Tracking Protection.

    How to delete cookies on Mac in Firefox

    Similar to Chrome, select Cookies and site data before clicking Clear.

    How to clear cache in Edge on Mac

    The steps for Edge are somewhat similar to those for Chrome and Firefox. Here’s what to do:

    1. Open Edge.
    2. Click the three-dot icon top right.
    3. Go to Settings > Privacy, search, and services and click Clear browsing data.
      how to clear cache in Edge on Mac
    4. Click Choose what to clear and All time under Time range and Cached images and files.
    5. Click Clear now.
      how to clear cache in Edge on Mac

    If you were wondering how to clear cookies on Mac in Edge, it is just like for two other browsers (Chrome and Firefox). All you need to do is select Cookies and other site data before clicking Clear now, and the cookies will be gone.

    In the same section of Settings (Privacy, search, and services), you can prevent tracking by clicking Tracking prevention and choosing your preferred option.

    To clear cache for a specific website, open it first. Now, press Fn (globe key) + F12 to open Developer tools. Right-click the refresh icon to the left of the address bar and choose Empty cache and hard refresh.

    Tip💡

    If you use another browser like Opera or Brave, the steps for clearing cache, cookies, and browsing history are pretty much the same, but the wording of the settings may differ.

    Is there a shortcut to empty cache on Mac?

    There is a shortcut to delete browser cache. In Safari, it is Option + Command + E. If it doesn't work for your Mac, check what it is by clicking Develop in the menu bar with Safari open and looking next to Empty Caches. For Chrome and Firefox, it is Command + Shift + Delete. It should bring up the Clear data window.

    How to clear system cache on Mac (Manual method)

    Potential space reclaimed: Up to 10%

    Now, let'c continue our cache-clearing journey by deleting system cache files — files built into macOS system services generate for proper operation. To locate them, open the Finder, and from the Go menu, choose Go to Folder. Now, paste /Library/Caches and press Return.

    Delete system cache

    If you want to find out how much space it occupies, right-click the Caches folder and choose Get Info from the menu. You'll see the size of the folder in the info window:

    Check the size of caches folder

    To remove system cache files, browse through the com.apple folders you see and send files to the Trash. Note that only files can be deleted — keep the folders. It is generally safe to remove the contents of the folder, and the system should work just fine after the cleanup.

    Alternatively, you can use the rm - rf command in Terminal. Type it and then drag the content of the folder you want to remove. Press Return, and the files are gone. Repeat for all folders. Note that they are deleted permanently instead of being sent to the Trash, so we do not recommend using this command unless you are 100% sure what you are about to remove.

    Extra commands to run in Terminal:

    ls ~/Library/Caches to find cache data

    du -sh ~/Library/Caches/* to see the size of the Caches folder

    Tip

    Clearing cache is one way to speed up your Mac. One more way to do it is to lower memory usage. To find out how to do it, check out this article on how to free up RAM on Mac.


    How to clear application cache on Mac

    As we mentioned, apps also generate cache files, so you may delete them as well. Some users believe these files are needed; still, deleting them is absolutely safe.

    Some apps may create more cache than others, for instance, Spotify, Xcode, and Steam. But removing it is still a piece of cake.

    1. You can get rid of the app cache on Mac by opening ~/Library/Caches from the Go menu of the Finder.
    2. There, you'll find different app cache — for example, com.spotify.client stores Spotify cache.
    3. Clear up these folders: press Command-A to highlight all files, then right-click them and move to Trash.
      Remove app cache

      To delete cache generated by other apps, just repeat the process for other folders with "com.[app name]" or simply named as the app itself. Look for the Cache or Caches folder inside and remove the contents. Do not forget to first quit the app if it's running.

      Which apps generate the most cache

      It all depends on how you use specific apps, but these apps usually generate a lot of cache: Adobe Creative Cloud apps (Photoshop and the like) and alternatives (Final Cut Pro), AI apps (ChatGPT or Perplexity), browsers, messaging apps (like WhatsApp or Viber), streaming and video conferencing apps (like Spotify or Zoom), and developer tools (including virtualization tools like Parallels Toolbox or VMware).

      How to flush DNS cache

      Sometimes, your browsers may misbehave because you experience issues with the network. One way to fix them is to flush the DNS cache. Flushing DNS cache is clearing stored Domain Name System (DNS) records.

      You will have to run this command in Terminal to do it:

      sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

      You will need to enter your admin password followed by Return to execute this command.

      How to flush DNS cache on Mac

      If running the command returned no message, the flushing was successful. You will also know that it was successful by observing immediate network changes.

      If you need more tips, check out this article on how to flush DNS cache. It also lists Terminal commands for macOS versions older than Catalina.

      How to use safe mode to clear system caches automatically

      Did you know that you can boot your Mac into safe mode and clear system cache automatically. It is a special boot mode that loads only essential processes/files and is designed for resolving performance issues, but it can help you get rid of system font caches, directory services cache, kernel caches, and other temporary files.

      How to boot Mac into safe mode

      Intel-based Mac

      1. Turn on or restart your MacBook.
      2. As soon as your Mac switches on and lights up, press and hold the Shift key.
      3. Release the Shift key as soon as the login window appears.
      How to boot into safe mode on Mac

      Mac with Apple silicon

      1. Click Apple menu > Shut Down.
      2. Once it is completely shut down (all lights are off), press and hold the power button. Do not release it until you see “Loading startup options.”
      3. Select the volume and, after it, press and hold the Shift key.
      4. Next, click Continue in safe mode. After your Mac restarts, there should be “Safe Boot” in the menu bar.
      How to boot into safe mode on Mac
      Can I delete all my cache on Mac?

      The easy answer is no. The thing is that your Mac accesses some type of cache files all the time. A safer option is to remove cache you don't need, like browser cache for all browsers you have on your Mac or app cache for apps you don't actively use. As for the system cache, it should be cleared only when you're trying to fix some issue and remove only files, not the folders. 

      But what happens if I delete all cache files on Mac? It may lead to system failure or app crashes so that you will need to reinstall apps or even the entire macOS to fix it.


      Best Mac cache cleaner: Automated solutions

      If all of the steps above seem like a lot of work, or you’re worried that you might delete any files vital for the proper work of the macOS — which you might — you’ll be pleased to know that you can automate the whole process without booting into safe mode. Just use a Mac cleaner app like CleanMyMac.

      CleanMyMac: Comprehensive Mac cleaning

      This Apple notarized app effortlessly removes outdated cache as well as temporary files, document versions, and more. Once it completes the very first scan, you'll be able to enjoy more disk space, better Mac performance, and higher speed. Here's how to clear cache on Mac the easy way:

      1. Get your free CleanMyMac trial — you can use all app's tools for 7 days at zero cost.
      2. Go to Cleanup in the sidebar and run a scan (it usually takes less than 1 minute to complete).
      3. Click Clean, and all cache that is safe to delete, along with other unneeded junk, is gone.

      If you want to choose specific cache files, click Review All Junk, select what you no longer need, and click Clean Up.

      That's it. All cache files cleaned! CleanMyMac is compatible with all systems, including the latest macOS version.

      Of course, you can use an alternative, but make sure to download a cleaner from trusted developers and get it from the official website to avoid infecting your MacBook with malware. Not sure which one to choose? Check out our top picks here.

      Why choose CleanMyMac

      • The Cleanup feature is a fast way to remove cache and other safe-to-delete junk files — on average, a scan takes up 6 seconds, and you’ll need 6 more seconds to get rid of preselected items
      • With the help of the Cleanup feature, on average, users remove over 8 GB of junk files after the first scan
      • In addition to deleting cache files automatically, it comes with 20+ other tools to declutter, optimize and protect your Mac: on average, users remove 1 malware, 4 duplicates, and 5 similar images after the first scan and run 4 maintenance tasks
      • Used in 185+ countries
      • Not only is CleanMyMac safe to use and effective, but it is also pleasant-looking — the winner of the Red Dot Award and the iF Design Award

      Try CleanMyMac for free — forget about the headache of manual Mac cleaning.

      Comparing manual vs. automated cache clearing

      Both manual and automatic cache clearing are effective ways to remove old cache files. However, choosing the one that is best for you depends on your situation. Here’s a quick comparison of both:

      Manual cache clearing

      Automated cache clearing

      Pros

      Free

      Fast and safe

      Cons

      The risk of deleting important files

      Paid-for option

      Type of users

      Extra cautious
      Advanced

      Casual users without tech background

      Time needed

      2+ hours

      Less than 5 minutes

      Problems and solutions when clearing cache

      Cache clearing is not always a hassle-free process. Sometimes, you may face problems. Here are some common issues as well as the ways to fix them:

      • "Permission Denied" errors: check permissions in Get Info (should be Read & Write), use sudo if you’re executing commands in Terminal, or run First Aid via Disk Utility
      • Cache won’t delete (“Files in use” error message): quit all apps, restart your Mac, or try deleting files from safe mode
      • Slow performance after clearing cache: wait for cache to rebuild; if the issues persist, reinstall apps or restore your Mac using the Time Machine backup

      What happens after you clear cache on Mac

      Knowing what to expect may help understand whether you’re facing a glitch or everything works as it should. Here’s what to keep in mind:

      📌 Immediate effect: temporary slowdown (usually lasting for a few minutes), website logouts, slower first loads, and missing preferences

      📌 Expected performance improvement: moderate (unless you’ve removed over 50 GB of space)

      If your Mac does not become snappier, reduce CPU usage and Memory consumption. You can do both via Activity Monitor. Besides, if you have Content Caching enabled in System Settings > General > Sharing, you can use Activity Monitor to view cached data for different periods.

      How to use Activity Monitor on Mac

      There you have it. You now know how to clear cache on MacBook. You might now be wondering if you need any specific maintenance routine after cache removal. No, but what you can do to ensure your Mac is in top shape is keep your app and software up-to-date, restart your computer weekly, and delete cache files from time to time depending on the usage.

      And remember if you have persistent issues with your Mac, it may be better to seek professional help. You can contact Apple support for more information.

      Frequently asked questions

      Is it safe to delete cache files on Mac or will cache clearing harm my computer?

      Generally, it is absolutely safe to remove cache because the apps you install or browsers you use will create new cache files when needed. However, caution is necessary when removing the cache generated by the system — your macOS. A good rule of thumb is to delete individual files but preserve the folders in which they were created.

      How much space will clearing cache free up?

      There’s no universal answer, as it varies among Mac users. But if you haven’t ever cleared cache and are a heavy user of web browsers and numerous apps on your Mac, you can expect to free up 10+ GB of space. Some of our team members even managed to delete over 70 GB of cache, but they actively used Photoshop and online editors (like Canva) in their MacBooks. If cache cleanup is a part of regular cleaning, you’ll perhaps reclaim around 1 GB of space.

      Will clearing cache delete my files or photos?

      No, your documents and photos will remain intact. Cache clearing only removes temporary files that are then re-generated as long as you follow all precautions.

      Can I recover deleted cache files?

      Yes, if you’ve backed up your Mac using TIme Machine or another backup method, you can easily recover deleted caches.

      Do I need admin permissions to remove cache from Mac?

      Yes and no. To delete system cache, you may need to have admin permissions. But to remove app cache and browser cache, you won't need them.

      Are there any files I should never delete?

      Generally, you can delete any app cache and browser cache. On the other hand, be cautious when removing system cache from /System/Library/Caches — files stored there are critical for the proper work of the Mac’s operating system. Also, if you do not have permissions to delete a specific file, most likely, it is safer to keep it intact instead of looking for workarounds and force remove it.