Firefox user data is stored in a specific folder called the profile folder, located within the browser's installation directory on your hard drive. For example, a Windows user will find this in the AppData folder under a path like %AppData%\Mozilla\Firefox\Profiles\. This folder contains every piece of personalized information, including your bookmarks, saved passwords, browsing history, and installed extensions.

Where is the Profile Folder Located?

The exact path to your user data depends on your operating system. Labels and folder names may differ slightly depending on the version of the software you are using.

Windows

On Windows, Firefox stores data in the hidden AppData folder. You can access it by typing %AppData%\Mozilla\Firefox\Profiles\ into the Windows File Explorer address bar and pressing Enter. This takes you directly to the directory containing one or more folders with names like "xxxxxxxx.default-release". The folder ending in .default-release is typically the active profile currently in use by the browser.

macOS

Mac users can find their data in the Library folder. The path is typically ~/Library/Application Support/Firefox/Profiles/. To reach this, open Finder, click the Go menu, hold the Option key to reveal the Library folder, and navigate through Application Support and Firefox to find the Profiles directory.

Linux

On most Linux distributions, Firefox data is stored in a hidden directory within the home folder. The path is generally ~/.mozilla/firefox/. Like other operating systems, this folder contains subdirectories for each profile created on the system.

What is the Difference Between Installation and Profile Folders?

It is common to confuse the program installation folder with the user profile folder. The installation folder contains the executable files, libraries, and core code required to run the browser; it is usually located in C:\Program Files\Mozilla Firefox on Windows or /Applications on macOS. Changing or deleting files here affects how the browser starts but does not touch your personal data.

The profile folder is entirely separate and contains only your personal configurations. If you uninstall Firefox, the installation folder is removed, but the profile folder often remains on the disk. This design allows you to reinstall the browser or update to a new version without losing your saved passwords or open tabs. If you are trying to move your data to a new computer, you must copy the profile folder, not the program files.

How do I Find My Profile Folder Using Firefox?

If you cannot find the folder manually through the file system, you can use the browser's internal tools to open the exact location. This is the most reliable method because it bypasses hidden folder settings and identifies the active profile automatically.

  1. Open Firefox and type about:support in the address bar, then press Enter.
  2. Locate the section labeled Application Basics.
  3. Find the row labeled Profile Folder (or Profile Directory).
  4. Click the button labeled Open Folder (or Show in Finder on macOS).

This action opens a window directly inside your active profile folder. You will see a collection of files with extensions like .sqlite, .json, and .slp. These files are not meant to be edited by hand in a text editor, as doing so can corrupt your browser data and prevent Firefox from launching.

Which Files Store Specific Types of Data?

Once inside the profile folder, you will see many files with cryptic names. Knowing which file corresponds to which piece of data allows you to perform targeted backups.

Bookmarks and History

Your bookmarks are stored in a file called places.sqlite. This single database file contains both your bookmarks and your browsing history. If you lose this file, you lose all saved sites and the record of pages you have visited. To back up your bookmarks specifically, it is safer to use the browser's built-in export tool under Bookmarks > Manage Bookmarks > Import and Backup > Backup.

Passwords and Cookies

Saved login credentials are stored in a file named logins.json, while the key to decrypt those passwords is kept in key4.db. Both files must be present and kept together for passwords to be recoverable on another machine. Cookies, which keep you logged into websites, are stored in cookies.sqlite. Deleting this file will log you out of all active sessions across all websites.

Preferences and Extensions

General browser settings, such as your home page and privacy preferences, are stored in prefs.js. This file records every change you make in the Settings menu. Installed extensions and their specific settings are stored in the extensions folder and the extension-data folder. If an add-on is malfunctioning, deleting its specific folder here can sometimes reset it to factory defaults.

How do I Back Up and Restore User Data?

Backing up your user data is a manual process of copying files. Because the profile folder is updated every time you visit a page or change a setting, the browser should be closed before you copy the files to ensure no data is being written during the process.

To create a backup, copy the entire profile folder (e.g., the one ending in .default-release) to an external drive or cloud storage. To restore this data on a new installation, you cannot simply paste the folder into the Profiles directory. Firefox uses a file called profiles.ini to keep track of which profiles exist. If you paste a folder without updating this index, the browser will ignore the data and create a new, empty profile.

The correct way to restore is to use the Firefox Profile Manager. Close the browser and run the command firefox -P in a terminal or command prompt. This opens a small window where you can create a new profile and select the folder where you saved your backup. Once you point the manager to your backed-up folder, Firefox will recognize the existing databases and load your bookmarks and passwords immediately.

A common misconception is that syncing your data via a Firefox Account replaces the need for a profile backup. While a Firefox Account syncs bookmarks, passwords, and open tabs across devices, it does not sync your installed extensions' internal data or certain advanced configurations found in about:config. For a complete snapshot of your browser state, a manual copy of the profile folder is the only certain method.

If you notice your profile folder is growing too large, it is usually due to the places.sqlite file or the cache folder. You can clear this space by going to Settings > Privacy & Security > Cookies and Site Data and selecting Clear Data. This removes the temporary files without deleting your permanent bookmarks or saved passwords.