Firefox data is saved in a dedicated folder called the Profile Folder, located within the user's application data directory. You can find this folder by typing about:support into the address bar and clicking the button next to the Profile Folder entry.

Firefox separates the application files (the program that runs the browser) from your user data (your history, passwords, and bookmarks). This design allows you to install the browser once but maintain multiple distinct user profiles on a single machine.

Profile Folders Differ From Installation Folders

A common misconception is that your bookmarks and passwords are saved in the folder where the Firefox program is installed, such as C:\Program Files\Mozilla Firefox on Windows. In reality, the installation folder contains only the read-only executable files needed to launch the software; it contains no personal user data.

Your actual data resides in a hidden system folder within your user account. This prevents other users on the same computer from accessing your private browsing history or saved login credentials. If you delete the installation folder to "reset" the browser, your data remains untouched because it is stored in the profile directory.

To ensure you are looking at the correct data, always use the internal browser menu to locate the folder rather than searching manually through your hard drive, as profile folder names are randomly generated strings of characters.

Firefox Data Locations by Operating System

While the internal about:support method is the fastest, you can navigate to the data folders manually using the file explorer. Labels and folder names may differ slightly depending on the version of the operating system you use.

Windows Locations

On Windows, Firefox stores data in the AppData folder, which is hidden by default. You can access it by typing %AppData%\Mozilla\Firefox\Profiles\ into the Windows File Explorer address bar. Inside this directory, you will see one or more folders ending in .default or .default-release.

macOS Locations

On a Mac, the data is stored within the Library folder of your user account. The path is typically ~/Library/Application Support/Firefox/Profiles/. Because the Library folder is often hidden in the Finder, you may need to hold the Option key while clicking the "Go" menu in the Finder to see the Library folder.

Linux Locations

Linux installations typically store Firefox data in a hidden directory within the home folder. The path is usually ~/.mozilla/firefox/. If you are using a Flatpak or Snap version of the browser, the data may be located in ~/snap/firefox/common/.mozilla/firefox/ or ~/.var/app/org.mozilla.firefox/.

Key Files Inside the Profile Folder

Once you open your profile folder, you will see a large number of files with unfamiliar extensions. Understanding which files hold specific data allows you to back up only what you need.

The places.sqlite file is the most critical for most users, as it contains your entire bookmarks library and your browsing history. This is a database file that cannot be read with a standard text editor; it requires a SQLite browser or the Firefox application itself to view.

Your saved passwords and usernames are stored in two specific files: logins.json and key4.db. You must back up both files together. The logins.json file contains the encrypted data, while key4.db contains the key required to decrypt those passwords. Moving one without the other will result in the browser being unable to access your saved logins.

Cookies are stored in a file named cookies.sqlite. This file manages your active sessions and site preferences. Deleting this file will log you out of all websites, but it will not delete your bookmarks or passwords.

Extension data and custom settings are stored in a subfolder named extension-data and a file called prefs.js. The prefs.js file is a plain text file that records every change you have made in the "about:config" advanced settings menu.

Backing Up and Moving Firefox Data

The safest rule of thumb for preserving your data is to copy the entire profile folder rather than picking individual files. This ensures that the complex relationships between the database files remain intact.

To perform a manual backup, follow these steps:

  1. Close the Firefox browser completely to ensure all database files are saved and not "locked."
  2. Navigate to the Profiles folder using the paths mentioned previously.
  3. Right-click the folder ending in .default-release and select Copy.
  4. Paste the folder onto an external drive or a cloud storage service.

If you move to a new computer, you can restore this data by installing Firefox, creating a new profile, and then replacing the contents of the new profile folder with the files from your backup. This is often faster than using a Firefox Account sync for users with very large libraries of bookmarks or complex extension configurations.

Managing Multiple User Profiles

Firefox allows you to create separate data environments for different purposes, such as a "Work" profile and a "Personal" profile. Each of these profiles has its own unique folder in the directory, meaning they do not share history, cookies, or passwords.

To manage these separate data stores, type about:profiles into the address bar. This page allows you to create a new profile, rename existing ones, or set a specific profile as the default. When you launch a new profile, Firefox creates a new folder in the AppData or Library directory with a unique random name.

Using the Profile Manager is the best way to isolate your data. For example, if you are testing a website and want to clear all cookies and cache without affecting your main browsing session, you can launch a temporary profile. Once that profile is closed and deleted via the Profile Manager, the associated folder is removed from your hard drive, leaving your primary data untouched.

Verifying Data Integrity and Folder Paths

If you cannot find your data using the standard paths, it is possible that your profile is stored in a non-standard location. This sometimes happens if you have manually changed the profile path during a professional installation or used a portable version of the browser.

To verify exactly where your current session is reading data from, use the about:support page. Look for the "Application Basics" section. The "Profile Folder" row provides the absolute path to the directory currently in use. Clicking the "Open Folder" button will open the exact directory in your system's file explorer, bypassing the need to guess hidden folder paths.

If the "Open Folder" button does not work, check if your system has administrative restrictions on accessing the AppData or Library folders. You may need to enable "Show hidden files, folders, and drives" in your system's folder options to see these directories manually.