Firefox Profile Backup: A Complete Guide
To back up a Firefox profile, copy the entire profile folder to a safe location while Firefox is closed. The profile folder contains your bookmarks, passwords, history, extensions, settings, and more, so a full copy preserves everything. You can find the folder via the Firefox troubleshooting page (about:support) or by using the built-in backup tool in newer Firefox versions. This guide explains what a profile is, how to back it up reliably, how to restore it, and common pitfalls to avoid.
What Is a Firefox Profile?
A Firefox profile is a directory that stores all your personal data and configuration: bookmarks, browsing history, saved passwords, cookies, cache, extensions, themes, toolbar layout, and preferences. Each installation of Firefox uses at least one profile, and you can create multiple profiles for different purposes (e.g., work and personal). The profile folder is separate from the Firefox program files, so updating or reinstalling Firefox does not delete your profile. On Windows, profiles typically live under %APPDATA%\Mozilla\Firefox\Profiles\; on macOS, under ~/Library/Application Support/Firefox/Profiles/; and on Linux, under ~/.mozilla/firefox/. The folder name is a random string followed by a dot and a short name, like abcd1234.default-release.
Why Back Up Your Profile?
Backing up your profile protects you from data loss due to hard drive failure, accidental deletion, malware, or a corrupted profile. It also makes it easy to migrate your settings to a new computer or to test changes without risking your main setup. Without a backup, you could lose years of bookmarks, passwords, and customizations. While Firefox Sync can back up some data (bookmarks, history, passwords, tabs, add-ons), it does not cover everything—for example, local settings, certificate exceptions, and some extension data are not synced. A manual profile backup is the most complete safeguard.
How to Back Up a Firefox Profile
Firefox must be completely closed during backup to avoid copying locked or partially written files. Follow these steps:
- Close Firefox. Ensure no Firefox processes are running (check Task Manager on Windows, Activity Monitor on macOS, or
pson Linux). - Locate your profile folder. Open Firefox, go to
about:support, and click the “Open Folder” button next to “Profile Folder.” Alternatively, use the path for your OS listed above. - Copy the entire profile folder to an external drive, cloud storage, or another safe location. You can compress it into a ZIP archive to save space.
- Verify the copy by checking that key files like
places.sqlite(bookmarks/history) andlogins.json(passwords) are present.
Newer Firefox versions (version 97 and later on Windows, and version 98 on macOS) include a built-in backup tool: go to about:preferences → Sync → “Back up” under “Backup and Restore.” This creates a single .json file containing bookmarks, history, passwords, and cookies, but it does not include extensions or all settings. For a complete backup, copying the profile folder is still the most thorough method.
How to Restore a Firefox Profile
To restore from a profile backup, close Firefox, then replace the current profile folder with the backed-up one. You can also use the Profile Manager to create a new profile and point it to the backup. Steps:
- Close Firefox completely.
- Locate your current profile folder (via
about:supportor the OS path). - Rename the current profile folder as a precaution (e.g.,
default-release-old). - Copy the backed-up profile folder into the Profiles directory, ensuring the folder name matches the original or update
profiles.iniaccordingly. - Start Firefox. It should load with your restored data.
If you used the built-in JSON backup, you can restore it via about:preferences → Sync → “Restore” and selecting the file. Note that this will overwrite your current data, so back up first.
Common Problems and Solutions
Backing up a profile is usually straightforward, but you may encounter issues:
- Firefox is still running: Files may be locked or incomplete. Always close Firefox before copying.
- Profile folder not found: Use
about:supportto locate it; the path varies by OS and installation type (e.g., Microsoft Store version uses a different location). - Large profile size: The cache folder can be huge. You can exclude the
cache2folder from backups to save space; it will be regenerated. - Corrupted profile: If Firefox won’t start after restoring, try starting in Safe Mode or creating a new profile and copying only essential files (bookmarks, passwords).
- Sync conflicts: If you use Firefox Sync, restoring an old profile may cause sync conflicts. Consider disabling Sync temporarily during restore.
Firefox Sync vs. Manual Backup
Firefox Sync is a convenient way to keep data synchronized across devices, but it is not a full backup solution. Sync stores bookmarks, history, passwords, open tabs, add-ons, and preferences (like toolbar layout) on Mozilla’s servers, encrypted with your account credentials. However, it does not back up:
- Local settings stored in
prefs.js(e.g., custom about:config tweaks) - Certificate exceptions and security devices
- Extension data that isn’t synced (some add-ons store data locally)
- Cookies and site data (unless you enable sync for those, which is not default)
Manual backup gives you a complete snapshot that you control. For best protection, use both: Sync for continuous cross-device access and periodic manual backups for full recovery.
Frequently Asked Questions
Can I back up only bookmarks and passwords?
Yes. You can export bookmarks to an HTML file via the Library (Ctrl+Shift+O) → Import and Backup → Export Bookmarks to HTML. Passwords can be exported via about:logins → menu → Export Logins. However, these exports are not encrypted, so store them securely.
Where is the Firefox profile folder on Windows?
On Windows, it’s typically at %APPDATA%\Mozilla\Firefox\Profiles\. You can paste %APPDATA%\Mozilla\Firefox\Profiles\ into File Explorer’s address bar to open it. The exact folder name includes a random string and may end with .default-release.
Does uninstalling Firefox delete my profile?
No, uninstalling Firefox does not remove your profile folder by default. It remains in the same location, so you can reinstall Firefox and your data will still be there. However, some cleanup tools or manual deletion could remove it.
How often should I back up my profile?
Back up after significant changes (e.g., adding many bookmarks, installing extensions) or at regular intervals like monthly. If you use Firefox Sync, a manual backup every few months is sufficient for most users.
Can I move my profile to another computer?
Yes. Copy the profile folder to the new computer’s Firefox Profiles directory, then use the Profile Manager (firefox -P) to create a new profile pointing to that folder, or edit profiles.ini to reference it. Ensure Firefox is closed on both machines during the transfer.
Is the built-in backup tool enough?
The built-in JSON backup covers bookmarks, history, passwords, and cookies, but not extensions or all settings. For a complete backup, copy the entire profile folder. The built-in tool is convenient for quick backups of essential data.