User Agents

Transfer Firefox Profile to a New Computer

To transfer your Firefox profile to a new computer, copy the profile folder from the old machine's Firefox data directory to the same location on the new machine, then point Firefox at it using the Profile Manager or by editing the profiles.ini file. The profile folder contains your bookmarks, history, passwords, extensions, cookies, and settings, so moving it preserves your entire browsing environment rather than just the bookmarks you could export separately.

What a Firefox Profile Actually Contains

A Firefox profile is a folder, not a single file. Inside it you'll find several key items:

  • places.sqlite — bookmarks, history, and download records
  • logins.json and key4.db — saved passwords and the encryption key that protects them
  • cookies.sqlite — cookies, including active login sessions
  • prefs.js — user preferences and configuration
  • extensions/ — installed add-ons (though modern Firefox also tracks these in a database)
  • cert9.db — security certificates
  • sessionstore.jsonlz4 — your open tabs and windows from the last session

Because passwords are encrypted with a key stored in the same folder, copying the whole profile keeps them readable on the new machine — as long as you also know your Firefox account password or the primary password if you set one. This is why a full profile copy is more complete than using Firefox Sync or exporting bookmarks to an HTML file.

Finding Your Profile Folder

Firefox stores profiles in a platform-specific location. The exact path varies by operating system and Firefox version, but the standard locations are:

  • Windows: %APPDATA%\Mozilla\Firefox\Profiles\
  • macOS: ~/Library/Application Support/Firefox/Profiles/
  • Linux: ~/.mozilla/firefox/

You can also open the folder directly from Firefox: go to the menu, choose Help, then More Troubleshooting Information (or type about:support in the address bar). The Profile Folder row has an Open Folder button that takes you straight there. The folder name usually looks like xxxxxxxx.default-release or xxxxxxxx.default.

Step-by-Step Transfer

  1. Close Firefox completely on both computers. If Firefox is running, files like places.sqlite may be locked or only partially written.
  2. Locate the profile folder on the old computer using the path above or the about:support page.
  3. Copy the entire profile folder to external storage or a network location. Do not copy only selected files — the profile works as a unit.
  4. Install Firefox on the new computer if it isn't already, and launch it once so it creates a default profile, then close it.
  5. Paste the copied folder into the Profiles directory on the new computer (same relative path as the old one).
  6. Register the profile. Either open the Profile Manager (firefox -P from a terminal, or firefox.exe -P on Windows) and create a new profile pointing to the copied folder, or edit profiles.ini in the Firefox data directory to add an entry for the new folder and set it as default.
  7. Launch Firefox and verify bookmarks, passwords, and extensions are present. If passwords don't appear, the key file may not have copied correctly — recopy key4.db and logins.json together.

Using Firefox Sync as an Alternative

Firefox Sync is Mozilla's built-in service that synchronizes bookmarks, history, passwords, tabs, and add-ons across devices signed into the same Mozilla account. It is simpler than a manual profile copy and works continuously, but it has limits: it does not transfer every preference, some add-on data may not sync, and it requires signing in on both machines. Sync is best when you want ongoing synchronization; a profile copy is best for a one-time, complete migration, especially if you are moving to a machine that will be offline or you want to avoid cloud storage of password data.

Common Problems and How to Fix Them

  • Firefox opens with a fresh profile instead of yours. The profiles.ini file doesn't reference the copied folder, or the path is wrong. Check that the folder name in profiles.ini matches the actual directory name.
  • Passwords are missing or unreadable. The encryption key (key4.db) didn't come along with logins.json. Copy both files together; they must match.
  • Extensions don't appear. Modern Firefox stores extension state in a database, and copying the folder alone sometimes leaves add-ons disabled. Re-enable them from the Add-ons Manager, or reinstall from addons.mozilla.org.
  • Firefox refuses to start or shows a profile-in-use error. A lock file (parent.lock or .parentlock) was copied along with the folder. Delete it in the new profile directory before launching.
  • Bookmarks are there but history is empty. The places.sqlite file may have been copied while Firefox was running. Close Firefox first, then recopy.

Safety and Privacy Considerations

A Firefox profile contains sensitive data: saved passwords, cookies that can keep you logged into websites, and browsing history. Treat the copied folder like a password vault. If you use external storage or cloud drives, delete the copy once the transfer is complete. On the old computer, consider removing the profile folder after you've confirmed the new machine works, especially if you are selling or recycling the device. If you set a Primary Password in Firefox, you will need it on the new machine to unlock saved logins — it is not stored in the profile in a recoverable form.

Also note that copying a profile does not transfer files outside it, such as downloaded files saved to your Downloads folder or PDFs opened in Firefox's viewer. Those live in your regular file system and need to be moved separately.

Frequently Asked Questions

Can I transfer a Firefox profile between different operating systems?

Yes, the profile folder format is largely cross-platform. Copy the folder to the equivalent Profiles directory on the new OS and register it. Some extensions or settings may behave differently, and file paths in preferences may need adjustment, but bookmarks, passwords, and history generally carry over.

Do I need to install Firefox before copying the profile?

It helps to install Firefox first and launch it once so the application creates its data directories and a default profile. Then close it, paste your copied profile folder into the Profiles directory, and register it. Copying into a non-existent directory can cause Firefox to ignore the profile.

Will Firefox Sync transfer everything a profile copy does?

No. Sync covers bookmarks, history, passwords, open tabs, and add-ons, but not every preference, certificate, or local add-on setting. A full profile copy is more complete for a one-time migration.

How do I know which profile folder is the active one?

Open about:support in Firefox and look at the Profile Folder row. The path shown is the active profile. Alternatively, check profiles.ini for the entry marked Default=1.

What happens if I copy the profile while Firefox is open?

Files such as places.sqlite and cookies.sqlite may be locked or mid-write, leading to a corrupted or incomplete copy. Always close Firefox completely before copying the profile folder.