User Agents

Firefox Restore Old Profile: Step-by-Step Guide

Yes, you can restore an old Firefox profile. The most reliable way is to use the built-in Profile Manager to create a new profile that points to your backed-up profile folder, or to copy the contents of the old profile folder into the active profile directory while Firefox is closed. Firefox does not have a single "restore" button, but the profile system is designed to be portable, so recovery is straightforward if you have the files.

What a Firefox Profile Actually Is

A Firefox profile is not the same as your Firefox account. The profile is a folder on your computer that stores everything local to that installation: bookmarks, history, cookies, saved passwords (in logins.json and key4.db), extensions and their settings, open tabs, form data, site permissions, and personal preferences. Your Firefox Account, by contrast, syncs a subset of that data across devices. If you sign into Sync on a fresh install, you get bookmarks, history, passwords, tabs, and add-ons back, but you do not get local settings, certificate exceptions, or the exact profile structure.

Profiles live in a specific location depending on your operating system. On Windows, the default is under %APPDATA%\Mozilla\Firefox\Profiles\. On macOS, it is ~/Library/Application Support/Firefox/Profiles/. On Linux, it is usually ~/.mozilla/firefox/. Each profile folder has a random-looking name like abc12345.default-release. Inside that folder, the file prefs.js holds most settings, places.sqlite holds bookmarks and history, and logins.json holds saved logins encrypted with key4.db.

Firefox also keeps a file called profiles.ini in the parent Firefox directory. That file tells Firefox which profile folders exist and which one to open by default. Restoring an old profile often means making Firefox aware of that folder again, either by editing profiles.ini through the Profile Manager or by copying files into a profile Firefox already knows about.

How to Restore an Old Profile Using the Profile Manager

The Profile Manager is the cleanest method because it leaves your current profile untouched and lets you switch back. The exact labels can differ slightly between Firefox versions and operating systems, but the workflow is consistent.

  1. Close Firefox completely. Check that no Firefox process is running in Task Manager (Windows), Activity Monitor (macOS), or your system monitor (Linux).
  2. Open the Profile Manager. On Windows, press Windows key + R, type firefox.exe -P, and press Enter. On macOS, open Terminal and run /Applications/Firefox.app/Contents/MacOS/firefox -P. On Linux, run firefox -P in a terminal.
  3. If the Profile Manager does not appear and Firefox opens normally, your installation may have the profile manager disabled. In that case, use the copy method described below instead.
  4. In the Profile Manager, click Create Profile, then Next.
  5. Give the profile a descriptive name, such as "Old Profile Restored." Click Finish.
  6. Before launching the new profile, locate its folder. The Profile Manager usually shows the path, or you can find it in the Profiles directory. Close the Profile Manager.
  7. Copy the contents of your backed-up old profile folder into the new profile folder, replacing existing files. Do not copy the folder itself; copy what is inside it.
  8. Reopen the Profile Manager and select the new profile, then click Start Firefox.

If you do not have a backup but the old profile folder still exists on disk, you can point a new profile at it directly. In the Profile Manager, create a profile, then use the Browse button if available to select the existing folder. Some Firefox versions hide this option; in that case, copy the files as above.

Restoring by Copying Files Into the Current Profile

If the Profile Manager is unavailable or you simply want your current installation to use the old data, copy the old profile's contents into the active profile folder. This is faster but riskier because it overwrites your current data.

  • Back up your current profile folder first by copying it somewhere safe.
  • Close Firefox completely.
  • Open the active profile folder. You can find the path by typing about:support in the address bar and looking for the Profile Folder row, then clicking Open Folder. Do this before closing Firefox.
  • Copy the files from the old profile folder into the active folder, choosing to replace when prompted.
  • Restart Firefox. Your bookmarks, history, passwords, and settings should now reflect the old profile.

Be aware that some files are locked or version-specific. If Firefox refuses to start after the copy, remove compatibility.ini and parent.lock from the profile folder and try again. Firefox will rebuild those files.

What You Need Before You Start

Successful restoration depends on having the right files. Before you begin, confirm the following:

  • The old profile folder itself, not just a bookmarks HTML export. An HTML export restores bookmarks only; it does not restore history, passwords, or settings.
  • The key4.db and logins.json pair if you want saved passwords. Copying logins.json without key4.db makes the passwords unreadable.
  • A Firefox version that is the same or newer than the one that created the profile. Downgrading can corrupt databases because Firefox sometimes upgrades file formats.
  • Enough free disk space to hold a copy of both the old and current profiles during the process.

A common misconception is that signing into Sync is a full restore. Sync is useful, but it does not bring back local preferences, certificate exceptions, or the profile's cookie jar in full. Treat Sync as a supplement, not a substitute for a profile backup.

Common Problems and How to Fix Them

Restoration does not always go smoothly. Here are the issues people most often encounter and what to do about them.

  • Firefox opens with a blank profile. The Profile Manager may be defaulting to a different profile. Reopen the Profile Manager and explicitly select the restored profile. If profiles.ini is corrupted, Firefox may ignore it; renaming profiles.ini and recreating profiles through the manager can help.
  • Bookmarks are missing but history is present. The places.sqlite file may have been partially copied or is locked. Close Firefox, delete places.sqlite from the new profile, and copy it again from the backup.
  • Saved passwords do not work. The key4.db file did not come across, or it came from a different profile. Passwords are encrypted with a key stored in key4.db; without the matching file, logins.json is useless.
  • Firefox crashes on startup after the copy. Remove compatibility.ini and parent.lock, then restart. If it still crashes, start in Troubleshoot Mode by holding Shift while launching Firefox (or using the Help menu) to see whether an extension is the cause.
  • Extensions are gone. Modern Firefox stores extension data in the profile, but some add-ons require reinstallation after a restore. Check the Add-ons Manager and re-enable anything that is present but disabled.

Restoring on a Different Computer or Operating System

Profiles are largely portable between machines running the same operating system, but cross-platform moves need care. File paths inside preferences may point to folders that do not exist on the new machine, and some settings are platform-specific. The safest approach is to create a fresh profile on the new machine, then copy over the data files you care about: places.sqlite for bookmarks and history, logins.json and key4.db for passwords, and the extensions folder for add-ons. Avoid copying prefs.js wholesale across operating systems, because it can contain absolute paths and platform flags that cause odd behavior.

If you are moving from an old computer that still boots, the simplest path is to copy the entire profile folder to external storage first, then follow the Profile Manager steps on the new machine.

Frequently Asked Questions

Can I restore an old Firefox profile without a backup?

Only if the old profile folder still exists somewhere on your disk. Firefox does not keep a built-in version history of profiles. If the folder was deleted and you have no backup and no Sync data, the local data is generally unrecoverable through Firefox itself.

Does refreshing Firefox delete my old profile?

No. The Refresh feature creates a new profile and places your old data in a folder on the desktop called "Old Firefox Data." You can copy files from that folder into your active profile to bring specific data back.

Where does Firefox store profiles on Windows?

By default, under %APPDATA%\Mozilla\Firefox\Profiles\. You can confirm the exact path for your active profile by opening about:support and checking the Profile Folder row.

Can I have multiple Firefox profiles at once?

Yes. The Profile Manager lets you create and switch between profiles, but only one profile can be open in a given Firefox instance at a time unless you use separate installations or the -no-remote launch flag with distinct profiles.

Will restoring an old profile bring back my extensions?

Usually the extension files are present in the profile's extensions folder, but Firefox may disable them after a restore for safety. Open the Add-ons Manager and re-enable them. Some extensions may need to be reinstalled from their source.

Is it safe to copy another person's profile onto my computer?

It is technically possible, but it carries privacy and security risks because the profile can contain saved passwords, cookies, and history belonging to someone else. Only restore profiles you own or have explicit permission to use.