Many users assume extensions are stored in the main program installation folder. They are actually stored within your specific user profile folder in a directory called extensions.

Firefox Profile Folder Paths

Firefox does not store extensions in a single global directory because each user profile can have a different set of add-ons. To find these files, you must first locate your profile folder, which contains your bookmarks, passwords, and extension data. Labels and paths may differ slightly depending on your operating system version.

On Windows, the profile folder is located in the AppData directory. You can find it by navigating to %AppData%\Mozilla\Firefox\Profiles\. Inside this folder, you will see a directory with a name consisting of a random string of characters ending in .default or .default-release.

On macOS, the path is found within the Library folder. Navigate to ~/Library/Application Support/Firefox/Profiles/. Like Windows, you will find a folder with a randomized name that represents your active profile.

On Linux, the profile directory is typically located in the hidden .mozilla folder in your home directory. The path is ~/.mozilla/firefox/, followed by the specific profile folder ending in .default.

Accessing the Folder via Browser

If navigating through the file explorer is difficult, you can open the folder directly from the browser. Type about:support into the address bar and press Enter. Look for the "Profile Folder" row in the table and click the "Open Folder" (Windows/Linux) or "Show in Finder" (macOS) button. This opens the root of your profile, where you can then enter the extensions folder.

The Extensions Directory Structure

Once you are inside your profile folder, locate the folder named extensions. This is where the actual executable files for your add-ons reside. You will not see folders named after the extensions you recognize from the browser menu.

Firefox stores extensions as .xpi files. An XPI file is essentially a zipped archive containing the JavaScript, HTML, and CSS that make the extension work. These files are named using a unique Extension ID, which is a long string of characters and numbers. For example, an extension might be named {12345678-abcd-1234-efgh-1234567890ab}.xpi.

One common misconception is that deleting a file from this folder completely removes the extension's settings. While deleting the .xpi file removes the program code, the extension's saved data, preferences, and local storage remain in other parts of the profile folder. To fully clear an extension, you must use the browser's built-in Add-ons Manager.

Extension Data and Storage

The extensions folder only holds the application code. The data created by those extensions—such as blocked site lists, custom configurations, or saved passwords—is stored in separate locations within the profile.

Local Storage and IndexedDB

Most modern extensions use the WebExtensions API, which stores data in storage.local or IndexedDB. These are stored in the storage folder within your profile. Inside, you will find a folder named default, which contains SQLite databases. These databases map the Extension ID to the specific data stored by that add-on.

Preference Files

Some extensions store simple configuration settings in the prefs.js file located in the root of your profile folder. This is a plain text file that Firefox reads every time it starts. If you open prefs.js in a text editor, you can search for the name of the extension to see which specific preference flags are being toggled.

Identifying Specific Extension Files

Because files are named with IDs rather than names, identifying which .xpi file belongs to which extension requires a few steps. You can match the ID found in the file system to the ID shown in the browser.

Navigate to about:addons in your browser. Click on the specific extension you want to identify. Look at the URL in the address bar; the long string of characters at the end of the URL is the Extension ID. You can then search for a file in the extensions folder that matches this exact string.

Signs that you have found the correct extension file include:

  • The filename matches the ID shown in the about:addons URL.
  • The "Date Modified" timestamp aligns with when you last updated or installed the extension.
  • The file size is consistent with the complexity of the tool (simple scripts are a few kilobytes, while full productivity suites may be several megabytes).

Managing Extension Files Manually

Manually editing or moving files in the extensions folder is generally discouraged unless you are debugging a specific issue or performing a manual backup. Firefox manages these files automatically during updates.

If you wish to back up your extensions, copying the extensions folder is not enough to preserve your experience. You must copy the entire profile folder to ensure that the prefs.js file and the storage directory are included. Without the associated data folders, the .xpi files will reinstall as fresh copies with no saved settings.

To manually remove a corrupted extension that will not uninstall via the menu, you can close Firefox completely and delete the corresponding .xpi file from the extensions folder. Upon restarting, Firefox will notice the file is missing and remove the entry from the Add-ons Manager. However, this does not clean up the leftover data in the storage folder.

Handling Profile Conflicts

If you have multiple Firefox profiles, remember that each one has its own separate extensions folder. If you install an extension in "Profile A," it will not appear in "Profile B." To move an extension between profiles, you must identify the .xpi file in the source profile's extensions folder and copy it to the destination profile's extensions folder, though reinstalling from the official store is the more stable method.

When verifying your files, ensure that your file explorer is set to "Show hidden files and folders." On Windows, the AppData folder is hidden by default. On macOS and Linux, folders starting with a dot (like .mozilla) are hidden. If you cannot see these folders, you will not be able to find the extension storage paths.