Where is Firefox Cache Stored? Find It Now
In this article
The Firefox cache is stored in a hidden system folder specific to your operating system. On Windows, it is typically located in %LOCALAPPDATA%\Mozilla\Firefox\Profiles\<profile_name>\cache2. On macOS, look in ~/Library/Caches/Firefox/Profiles/<profile_name>/cache2, and on Linux, check ~/.cache/mozilla/firefox/<profile_name>/cache2. This directory contains temporary files that speed up page loading by storing images, scripts, and HTML locally.
What You'll Need
- A computer running Windows, macOS, or Linux with Firefox installed.
- Basic file explorer access (File Explorer on Windows, Finder on macOS, Nautilus/Dolphin on Linux).
- Knowledge of how to reveal hidden files and folders, as the cache directory is often concealed by default.
Step-by-Step
- Identify Your Operating System: Determine if you are using Windows, macOS, or Linux, as the path structure differs significantly between them. The steps below assume you are looking for the active profile's cache.
- Locate Your Firefox Profile Folder: Firefox stores user data in a specific profile folder. To find this easily without guessing paths, open Firefox and type
about:profilesin the address bar. Press Enter. Look for the row labeled "Root Directory" or "Profile Folder." Click the "Show in Finder" (macOS), "Open Folder" (Windows), or equivalent button next to it. This opens the exact folder where your profile data lives. - Navigate to the Cache Directory: Once the profile folder is open in your file manager, look for a subfolder named
cache2. In older versions of Firefox, this might have been simplycache, but modern versions usecache2. If you do not see it immediately, ensure your file manager is set to show hidden items. - Reveal Hidden Files (If Necessary):
- Windows: Open File Explorer, click the "View" tab at the top, and check the box for "Hidden items." Alternatively, press
Alt+VthenH. - macOS: Open Finder, press
Command + Shift + .(period) to toggle hidden files visibility. You may need to navigate manually to~/Library/Caches/Firefox/...if the profile method above did not work. - Linux: Press
Ctrl + Hin your file manager to toggle hidden files. These folders usually start with a dot (e.g.,.mozilla).
- Windows: Open File Explorer, click the "View" tab at the top, and check the box for "Hidden items." Alternatively, press
- Inspect the Cache Contents: Inside the
cache2folder, you will see several subdirectories and files. These files are not named with their original web addresses; they are hashed names. Do not attempt to rename or move individual files manually, as this can corrupt the cache database and cause Firefox to malfunction.
Common Mistakes
One of the most frequent errors users make is trying to delete or modify files directly inside the cache2 folder while Firefox is running. Doing so can lead to application crashes or corrupted data because the browser locks these files for writing. Always close Firefox completely before attempting any manual deletion.
Another common mistake is confusing the cache with cookies. While both are stored in the profile folder, cookies are kept in a separate SQLite database file named cookies.sqlite. Deleting the cache will not log you out of websites, but deleting cookies will. Users sometimes accidentally clear one when trying to fix the other.
Users also frequently overlook the fact that the cache location changes if they have multiple Firefox profiles. Each profile has its own independent cache storage. If you are troubleshooting an issue on a specific account, ensure you are looking at the correct profile folder identified via about:profiles.
Tips
If your goal is to free up disk space or resolve display issues, do not manually delete files from the cache2 folder. Instead, use Firefox's built-in tools. Go to Settings > Privacy & Security > Cookies and Site Data, and click "Clear Data." Check "Cached Web Content" and click "Clear." This safely removes all cache files and updates the index without risking corruption.
For advanced users who need to analyze what is being cached, consider using third-party cache viewer extensions available from the official Mozilla Add-ons store. These tools can decode the hashed filenames back into readable URLs, allowing you to see exactly what resources are stored locally.
Regularly clearing the cache can improve performance if you suspect outdated files are causing conflicts, but it does not generally speed up browsing. In fact, a healthy cache makes pages load faster. Only clear it if you are experiencing specific glitches or need to log into a site that requires a fresh session.
Troubleshooting
If you cannot find the cache2 folder, ensure you are looking in the correct profile directory. Use the about:profiles page to verify the root directory path. If the folder appears empty, it may mean Firefox has not cached much content yet, or the cache was recently cleared.
If Firefox crashes after you manually delete files from the cache folder, restart your computer. This clears any locked file handles. If the issue persists, you may need to reset the profile. Back up your important data (bookmarks, passwords) first, then use the "Repair Firefox" option found in the Help menu, or create a new profile via about:profiles.
On macOS, if you cannot access the Library folder, remember that it is hidden by default. Use the terminal command open ~/Library/Caches/Firefox/ to quickly jump to the cache location if the GUI method fails.
Frequently Asked Questions
Can I view the actual web pages in the cache folder?
No. The files in the cache2 folder are stored in a binary format with hashed names. You cannot open them directly in a browser or text editor. You need specialized software or extensions to interpret them.
Does clearing the cache delete my bookmarks or passwords?
No. Clearing the cache only removes temporary web content like images and scripts. Your bookmarks, passwords, and history are stored in separate database files within the same profile folder and remain untouched.
Why is the cache folder so large?
The cache size grows over time as you browse more websites. There is no fixed limit enforced by Firefox, though it manages space automatically. If it becomes excessively large, clearing the cached web content through settings will reduce it.
Is the cache stored on the cloud?
No. The Firefox cache is stored locally on your device's hard drive or SSD. It is not synced across devices unless you have enabled specific sync features for certain data types, but the cache itself remains local.
How do I clear the cache on mobile Firefox?
On Android or iOS, go to the app menu (three dots), select Settings, then Privacy, and tap "Clear private data." Select "Cache" and confirm. The physical location is abstracted away on mobile operating systems.
Will deleting the cache folder break Firefox?
Deleting the entire profile folder will remove all your data. However, deleting only the contents of the cache2 folder is safe, provided Firefox is closed. Firefox will recreate the necessary files upon restart.