Copy Firefox profile to new computer – step‑by‑step guide
Yes, you can copy a Firefox profile to a new computer by copying the profile folder and configuring the new installation to use it. The process involves locating the profile folder on the old machine, copying it to the new machine, and telling Firefox to use that folder.
Background: What Is a Firefox Profile?
A Firefox profile is a self‑contained directory that stores all of a user’s data: bookmarks, passwords, extensions, history, preferences, and cached files. Each installation of Firefox can have multiple profiles, allowing different users or setups to coexist on the same machine. The profile folder is created automatically when Firefox runs for the first time and is named with a random string followed by the profile name (e.g., abcd1234.default-release).
How It Works: Profile Storage and Structure
On Windows the default path is C:\Users\username\AppData\Roaming\Mozilla\Firefox\Profiles. On macOS it is /Users/username/Library/Application Support/Firefox/Profiles, and on Linux it is /home/username/.mozilla/firefox/Profiles. Inside the profile folder you’ll find subfolders such as extensions, storage, bookmarkbackups, and files like prefs.js and places.sqlite. The folder can be large, especially if you have many extensions or a long browsing history.
Choosing the Right Profile to Copy
If you have multiple profiles, decide which one contains the data you want. The default profile is usually the one you use daily, but you might have a work profile or a testing profile. To identify the active profile, open Firefox, type about:support in the address bar, and look for the "Profile Folder" entry. Note the profile name; you’ll need it when you copy the folder.
- Single‑Profile Setup: Most users only need to copy the default profile.
- Multiple Profiles: Copy each profile folder you need and create a separate Firefox installation for each, or use the profile manager to switch between them.
- Profile Size: If the profile is very large, consider moving only the essential files (e.g.,
places.sqlite,logins.json,key4.db) and reinstalling extensions on the new machine.
Copying the Profile: Step‑by‑Step Instructions
- Locate the profile folder on the old computer. Open
about:supportin Firefox, click the "Open Folder" button next to "Profile Directory" (Windows) or click the folder icon (macOS/Linux). This opens the parent Profiles folder; note the profile name. - Close Firefox. The profile folder must be closed to avoid file locks.
- Copy the entire profile folder. Use a USB drive, network share, or external hard drive. Copy the folder named
abcd1234.default-release(or whatever your profile name is). Preserve the folder structure. - Transfer to the new computer. Paste the folder into the same parent Profiles directory on the new machine. If the directory does not exist, create it:
C:\Users\username\AppData\Roaming\Mozilla\Firefox\Profiles(Windows) or the equivalent on macOS/Linux. - Launch Firefox on the new computer. The first run will create a default profile. Close Firefox again.
- Rename the new default profile folder. In the Profiles directory, rename the newly created default folder to match the old profile name (e.g., rename
default-releasetoabcd1234.default-release). - Edit the profiles.ini file. Open
profiles.inilocated inC:\Users\username\AppData\Roaming\Mozilla\Firefox(Windows) or the appropriate path on other OSes. Find the section for the renamed profile and ensure thePathentry points to the correct folder. If the profile is not listed, add a new section:[Profile0] Name=MyCopiedProfile IsRelative=1 Path=abcd1234.default-release Default=1
- Start Firefox. It should now load the copied profile, bringing over bookmarks, extensions, and settings.
Common Problems and How to Fix Them
- Profile not found or corrupted. Verify that the folder name and path match exactly. Check that the
profiles.inientry is correct and that the folder contains files likeprefs.jsandplaces.sqlite. - Extensions fail to load. Some extensions store data in the
storagefolder or inextensionssubfolders. If an extension complains about a missing file, delete the extension and reinstall it from the Add‑ons store. - Passwords missing. Passwords are stored in
logins.jsonandkey4.db. If these files are missing or corrupted, you may need to export passwords from the old computer using the Firefox Password Manager and import them on the new one. - Large profile size causes slow startup. Consider removing unused extensions, clearing cache, or using
about:preferences#privacyto delete history and cache. A fresh profile can be created and then manually copy over only the needed data.
Alternatives: Syncing or Using Firefox Portable
If you prefer not to manually copy files, Firefox offers built‑in sync. Enable Sync in about:preferences#sync on the old computer, sign in with a Firefox Account, and then sign in on the new computer. Sync will transfer bookmarks, passwords, open tabs, extensions (if allowed), and settings. However, Sync does not transfer local cache or offline data.
Another option is Firefox Portable, a version that runs from a USB drive and keeps all data in a single folder. Install Portable on the old computer, copy the Portable folder to the new machine, and run it directly. This bypasses the need to manage profiles.
Safety and Privacy Considerations
- Encryption of stored passwords. The
logins.jsonfile is encrypted withkey4.db. If you copy the profile, both files must move together; otherwise passwords become inaccessible. - Personal data exposure. Do not share the profile folder with untrusted parties. It contains browsing history, form data, and potentially sensitive information.
- Antivirus scanning. Some antivirus software flags large profile folders as suspicious. If you encounter false positives, add the profile directory to the antivirus exclusion list.
- Backup before copying. Create a compressed archive of the profile folder before moving it. This protects against accidental corruption during transfer.
Frequently Asked Questions
Can I copy only certain parts of the profile?
Yes. If you only need bookmarks and passwords, copy places.sqlite, logins.json, and key4.db. Extensions can be re‑installed from the Add‑ons store.
Will the copied profile keep my Firefox extensions?
Most extensions will load automatically if the extensions folder is present. Some may require re‑activation or re‑installation if they store data in separate locations.
What if my new computer has a different OS version?
Firefox profiles are cross‑platform. A profile created on Windows can be used on macOS or Linux, but some extensions may not be compatible with the new OS.
How do I handle multiple profiles on the new computer?
Use the profile manager: run firefox.exe -P (Windows) or firefox -P (macOS/Linux) to create, delete, or switch profiles. Import the copied folders as separate profiles.
Is there a limit to how many profiles I can copy?
Firefox supports many profiles, but each consumes disk space. Keep only the ones you actively use to avoid clutter.