Clear cache and cookies in Firefox in three steps

Open Firefox and press Ctrl + Shift + Delete (Windows) or Command + Shift + Delete (Mac). This opens the Clear Recent History window. Select Everything from the time range dropdown, check both Cookies and Cache, then click Clear Now. Your browser will remove all stored cache files and cookies immediately.

If the keyboard shortcut does not work on your device, you can reach the same window through the menu: click the three horizontal lines in the top right corner, select Settings, then choose Privacy & Security from the left sidebar. Scroll down to the Cookies and Site Data section and click Clear Data.

The difference between cache and cookies matters for what gets removed. Cache stores images, scripts, and other files that websites use repeatedly — clearing it frees up disk space and forces Firefox to download fresh versions. Cookies store login information, preferences, and tracking data — clearing them logs you out of websites and resets site settings you have saved.

Key Takeaways

  • The fastest way to clear both cache and cookies is pressing Ctrl + Shift + Delete (Windows) or Command + Shift + Delete (Mac), then selecting Everything and clicking Clear Now.
  • Cache stores website files like images and scripts; cookies store logins and site preferences — you can clear one without the other if you choose.
  • Clearing cache frees up storage space on your computer; clearing cookies logs you out of most websites and resets saved passwords for those sites.
  • You can set Firefox to clear cache and cookies automatically every time you close the browser, which removes the need to do it manually.

Clear only cache, or only cookies, if you prefer

The three-step method above clears both at once, but Firefox lets you remove just one. Open the Clear Recent History window the same way (Ctrl + Shift + Delete on Windows, Command + Shift + Delete on Mac), then uncheck whichever you want to keep. Uncheck Cookies if you want to stay logged into websites. Uncheck Cache if you want to keep the storage space freed up but preserve your login sessions.

This matters most when you are troubleshooting a website that is not loading correctly. Clearing cache alone often fixes display problems without logging you out. If a website is behaving strangely but you want to stay logged in, try clearing cache first, then clear cookies only if the problem persists.

Set Firefox to clear automatically when you close it

You can tell Firefox to clear cache and cookies every time you close the browser, so you never have to do it manually. Click the three horizontal lines in the top right, select Settings, then go to Privacy & Security. Under History, click the dropdown next to "Firefox will" and select Use custom settings for history.

Check the box for Clear history when Firefox closes. A new section will appear below it. Check both Cookies and Cache, then leave the window open — Firefox saves these settings automatically. From now on, every time you close Firefox completely, it will remove all cookies and cache files.

This setting does not affect your bookmarks, saved passwords, or browsing history — only cookies and cache. If you want Firefox to also clear your browsing history on close, check that box too. You can turn off automatic clearing at any time by unchecking the box or switching back to the default history setting.

Understand what gets deleted and what stays

When you clear cache and cookies, Firefox removes temporary files and tracking data, but keeps everything else. Your bookmarks, saved passwords, browsing history, and downloaded files remain untouched. Clearing cookies will log you out of most websites, so you will need to sign back in the next time you visit them.

Some websites store data in other ways that cache and cookie clearing does not touch — these are called local storage and site data. If you want to remove those too, go to Settings > Privacy & Security, scroll to Cookies and Site Data, and click Clear Data. Check Cookies and Site Data and Cached Web Content, select your time range, and click Clear. This removes more data but may cause some websites to load more slowly the first time you visit them after clearing.

Clear cache and cookies for a single website

Firefox also lets you clear data for just one website without touching the rest. Visit the website you want to clear, then press Ctrl + Shift + Delete (Windows) or Command + Shift + Delete (Mac) to open Clear Recent History. Instead of selecting Everything, choose Last Hour or Last 2 Hours depending on when you last visited that site. Uncheck everything except Cookies and Cache, then click Clear Now.

This method is not perfect because it clears data from all websites you visited during that time period, not just the one you wanted. A more precise way is to right-click on the website name in your history, select Forget About This Site, and Firefox will remove all data associated with that domain. Be aware that this also removes the site from your history and clears any saved passwords for it.

Troubleshoot if clearing cache and cookies does not fix the problem

If a website is still not working after you clear cache and cookies, the problem may be somewhere else. Try opening the website in a private window — press Ctrl + Shift + P (Windows) or Command + Shift + P (Mac). Private windows do not store cookies or cache, so if the site works there, the problem was definitely your stored data. If it still does not work in a private window, the issue is with your browser settings, extensions, or the website itself.

Check whether you have browser extensions that might be interfering. Click the three horizontal lines, go to Add-ons and themes, then Extensions. Temporarily disable any extensions related to privacy, ad blocking, or security, then reload the website. If it works with extensions off, turn them back on one at a time to find which one is causing the problem. You can also try restarting Firefox completely — close all windows and open it again fresh.

Frequently Asked Questions

Will clearing cookies log me out of everything?

Yes, clearing cookies will log you out of most websites because cookies store your login session. You will need to sign back in the next time you visit those sites. If you want to stay logged into certain websites, uncheck Cookies when you clear and only clear cache instead.

How much storage space does clearing cache actually free up?

This varies widely depending on how much you browse and which websites you visit. Cache can range from a few hundred megabytes to several gigabytes on a computer that has been used for months or years. Clearing it is most useful if your computer is running low on storage or if Firefox is loading slowly.

Is it safe to clear cache and cookies?

Yes, it is completely safe. Cache and cookies are temporary files that Firefox can rebuild. Clearing them will not damage your browser, your computer, or your files. The only inconvenience is that you will need to log back into websites and some sites may load slightly slower the first time you visit them after clearing.

Can I clear cache without clearing cookies?

Yes. Open the Clear Recent History window (Ctrl + Shift + Delete on Windows or Command + Shift + Delete on Mac), uncheck Cookies, and leave Cache checked. This removes stored website files while keeping you logged into sites.

What is the difference between clearing cache and clearing browsing history?

Browsing history is the list of websites you have visited — clearing it removes that list. Cache is the temporary files those websites stored on your computer — clearing it removes those files. You can clear one without the other, and they serve different purposes.