Amazon holiday deals See deals →ad

Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Where Are Firefox Files Stored? (Windows, Mac, Linux)

Firefox stores all user data in a single hidden folder called the ‘Profile’ directory. On Windows this is typically inside AppData\Roaming\Mozilla\Firefox\Profiles; on macOS it is in ~/Library/Application Support/Firefox/Profiles; and on Linux it lives in ~/.mozilla/firefox.

The most common mistake people make is looking for individual files like bookmarks.html or history.sqlite in standard folders like Documents or Desktop. These files do not exist there by default. Instead, they are bundled into a complex structure within that one Profile folder. If you delete files from the wrong place, you risk corrupting your browser entirely. You need to find the specific Profile folder first, then look inside it.

How to Find Your Profile Folder

You do not need to dig through system menus manually. Firefox has a built-in tool that opens the exact folder where your data lives. This method works regardless of your operating system and ensures you are looking at the correct directory for your active profile.

  1. Open Firefox and click the menu button (three horizontal lines) in the top right corner.
  2. Select Help from the dropdown menu.
  3. Click More Troubleshooting Information. This opens a new tab labeled ‘Troubleshooting Information’ or ‘about:support’.
  4. In the upper right section of this page, look for the row labeled Profile Folder.
  5. Click the button next to it: Show in Finder (macOS), Show in File Explorer (Windows), or Show in File Manager (Linux).

This action opens your computer’s file manager directly to the root of your Profile folder. You can now see all the files that make up your browsing experience. If you have multiple profiles set up, you will see more than one folder in the parent directory, but the Troubleshooting Information page always points to the one currently in use.

What Is Inside the Profile Folder?

Once you are inside the Profile folder, you will see a mix of text files, databases, and cache folders. It helps to understand what each major file does so you know what to back up or modify. The structure is consistent across all platforms, though the paths to get there differ.

File Name Purpose Can You Edit It?
places.sqlite Stores your history, bookmarks, and favicons. No. Editing this directly will corrupt your database.
logins.json & key4.db Stores saved passwords and login credentials. No. These are encrypted and tied to your OS user account.
prefs.js Contains your custom settings and preferences. Yes, but only if you know what you are doing.
storage/ Holds local storage data for websites (cookies, app data). No. Deleting this may break site functionality.
cache2/ Temporary files used to speed up page loading. Yes. You can delete contents to free space.

Notice that critical data like history and passwords are stored in SQLite databases (*.sqlite) or encrypted key files. You cannot simply open these in a text editor to read your history. If you want to export bookmarks, you must use the Firefox menu, not the file system.

Platform-Specific Paths

If you prefer to navigate manually without using the Troubleshooting Information page, you can type the path directly into your file explorer. Remember that these folders are hidden by default on most systems.

Windows

On Windows 10 and 11, the base path is:

C:\Users\[YourUsername]\AppData\Roaming\Mozilla\Firefox\Profiles\

To access this quickly, press Win + R, type %APPDATA%\Mozilla\Firefox\Profiles\, and hit Enter. You will see a list of folders named something like abcdef123456.default-release. The random string is unique to each profile. Open the folder ending in .default-release to find your main data.

macOS

On macOS, the path is located in your Library folder, which is hidden in Finder by default. To reveal it, click the Go menu in Finder while holding the Option key, then select Library. Navigate to:

~/Library/Application Support/Firefox/Profiles/

Like Windows, you will see several folders with random names. Open the one associated with your current profile. Note that on newer macOS versions, you may need to grant Firefox permission to access files in the Library folder via System Settings > Privacy & Security > Full Disk Access if you encounter errors.

Linux

On Linux distributions, the profile is stored in your home directory under the hidden .mozilla folder. Open your terminal or file manager and go to:

~/.mozilla/firefox/

You will see the same structure as other platforms: a list of profile directories. The active profile usually ends in .default or .default-release. Because Linux permissions are strict, ensure you have read/write access to this folder if you plan to back it up or modify files.

Backing Up and Migrating Data

Because all your important data is contained in this single folder, backing it up is straightforward. To preserve your history, bookmarks, passwords, and extensions, simply copy the entire Profile folder to an external drive or cloud storage. When you install Firefox on a new computer, you can paste this folder into the corresponding Profiles directory to restore everything.

Do not just copy the places.sqlite file alone. While it contains bookmarks and history, it does not contain your passwords, cookies, or extension settings. A full folder copy is the only safe way to migrate your complete browsing state. Also, ensure Firefox is completely closed before copying the folder. If Firefox is running, it locks many of these files, and copying them will result in a corrupted backup.

Common Misconceptions About Location

Many users believe their browsing data is stored in the installation directory, such as C:\Program Files\Mozilla Firefox. This is incorrect. The installation folder contains only the executable files and core program resources. It is read-only for standard users and does not change based on your usage. Deleting files here will break the browser, not your data.

Another misconception is that clearing ‘Browsing Data’ from the settings deletes the files from the hard drive permanently. In reality, Firefox marks the space as available for reuse, but the data may remain until overwritten. For sensitive situations, you may need specialized tools to scrub the Profile folder, but for general cleanup, the built-in clearing options are sufficient.

If you ever need to reset Firefox due to corruption, you can create a new Profile folder. Go back to the Troubleshooting Information page and click Create Profile. This starts a fresh instance without deleting your old data. You can then move specific files from the old folder to the new one if needed. This is a safer approach than manually deleting files from the active Profile.

Where Are Firefox Files Stored? (Windows, Mac, Linux)
Scroll to top