Firefox Import Profile: How to Move Your Data
To import a Firefox profile, you typically copy the profile folder from the old computer to the new one and then point Firefox to it using the Profile Manager. Firefox does not have a single "Import Profile" button; instead, you either use the built-in migration tool for basic data (bookmarks, passwords, history) from another browser, or manually transfer the entire profile folder for a complete move. This article explains both methods, what a profile contains, and how to avoid common pitfalls.
What a Firefox Profile Actually Is
A Firefox profile is a folder that stores all your personal settings, bookmarks, history, passwords, cookies, extensions, and other user data. It is separate from the Firefox application itself, so you can back it up, move it, or create multiple profiles for different purposes (e.g., work and personal). The profile folder is named with a random string like a1b2c3d4.default-release and lives in a specific location depending on your operating system:
- Windows:
%APPDATA%\Mozilla\Firefox\Profiles\ - macOS:
~/Library/Application Support/Firefox/Profiles/ - Linux:
~/.mozilla/firefox/
Inside the profile folder, key files include places.sqlite (bookmarks and history), logins.json (saved passwords, encrypted), prefs.js (settings), and the extensions subfolder. Knowing this helps you decide whether to copy the whole folder or just specific files.
Method 1: Use Firefox's Built-in Migration Tool
If you want to bring over bookmarks, history, and passwords from another browser (like Chrome or Edge) on the same computer, Firefox offers a simple import wizard. This is not for importing a Firefox profile from another machine, but it's the easiest way to get data from a different browser.
- Open Firefox and click the menu button (three horizontal lines) in the top-right corner.
- Select Bookmarks > Manage Bookmarks.
- In the Library window, click Import and Backup > Import Data from Another Browser.
- Follow the on-screen instructions to select the browser and the data types you want to import.
Note that menu labels may vary slightly between Firefox versions. This method does not transfer extensions, settings, or cookies.
Method 2: Manually Copy the Profile Folder
To move an entire Firefox profile from one computer to another, you need to copy the profile folder and then tell Firefox to use it. This preserves everything: bookmarks, passwords, history, extensions, and preferences.
- Close Firefox completely on both computers.
- On the old computer, locate the profile folder using the paths above.
- Copy the entire profile folder (e.g.,
a1b2c3d4.default-release) to a USB drive or network location. - On the new computer, paste the folder into the corresponding Profiles directory. If Firefox is already installed, you can put it alongside existing profiles.
- Open the Profile Manager: press
Windows key + R, typefirefox.exe -Pand press Enter (Windows). On macOS, open Terminal and run/Applications/Firefox.app/Contents/MacOS/firefox -P. On Linux, runfirefox -Pin a terminal. - Click Create Profile, then choose Use an existing profile and select the copied folder. Alternatively, if the profile appears in the list, select it and click Start Firefox.
If the Profile Manager does not list the copied profile, you may need to edit the profiles.ini file in the Firefox directory to add an entry pointing to the new folder. This file is plain text and lists profile names and paths.
Using the Profile Manager to Switch Profiles
The Profile Manager is a built-in tool that lets you create, rename, delete, and switch between profiles. It is useful when you want to keep multiple profiles on the same computer, such as one for work and one for personal use. To open it, follow the same steps as above (firefox -P). From there you can:
- Create a new profile from scratch.
- Rename an existing profile (the folder name stays the same).
- Delete a profile (this removes the folder and all data).
- Set a profile as default so Firefox opens it automatically.
Be careful when deleting: there is no undo. Back up the profile folder first if you might need it later.
Common Problems and How to Fix Them
Importing a profile doesn't always go smoothly. Here are typical issues and solutions:
- Firefox won't start after copying: The profile may be locked or corrupted. Try starting Firefox with the
-safe-modeflag to disable extensions and reset toolbars. If that works, an extension or setting is the culprit. - Passwords don't transfer: Saved passwords are encrypted with a key stored in the old profile's
key4.dbandlogins.json. If you copy onlylogins.json, passwords won't decrypt. Copy the entire profile folder, includingkey4.db. - Profile not listed in Profile Manager: Check that the folder is in the correct Profiles directory and that
profiles.iniincludes an entry for it. You can manually add a section like[Profile1]withName=MyProfileandPath=Profiles/xxxxxxxx.MyProfile. - Extensions missing: Some extensions are stored in the profile's
extensionsfolder, but they may be disabled if they are not compatible with the new Firefox version. Re-enable them from the Add-ons Manager.
Firefox Sync vs. Profile Import
Firefox Sync is a service that synchronizes bookmarks, history, passwords, tabs, and preferences across devices signed into the same Mozilla account. It is not a profile import tool, but it can be a simpler alternative if you just want your data on multiple computers without manually copying folders. However, Sync does not transfer extensions or all settings, and it requires an internet connection and a Mozilla account. For a complete, offline transfer, manual profile copying is more thorough.
Frequently Asked Questions
Can I import a Firefox profile from another computer?
Yes, by copying the profile folder to the new computer and using the Profile Manager to select it. Make sure Firefox is closed during the copy to avoid file corruption.
Where is my Firefox profile stored?
On Windows: %APPDATA%\Mozilla\Firefox\Profiles\; on macOS: ~/Library/Application Support/Firefox/Profiles/; on Linux: ~/.mozilla/firefox/. You can also open about:support in Firefox and look for the "Profile Folder" entry.
Does copying a profile transfer saved passwords?
Yes, if you copy the entire profile folder, including logins.json and key4.db. Copying only logins.json will not work because the encryption key is in key4.db.
Can I merge two Firefox profiles?
Firefox does not have a built-in merge tool. You can manually export bookmarks from one profile and import them into the other, but history and passwords cannot be easily merged. Third-party tools exist but are not officially supported.
What happens if I delete a profile?
Deleting a profile removes all its data permanently, including bookmarks, passwords, and history. Back up the profile folder before deleting if you might need it later.
Is it safe to copy a profile folder?
Yes, as long as you trust the source. The profile contains personal data, so treat it like any sensitive file. Avoid sharing it publicly.