How to Reinstall Firefox and Keep Bookmarks
In this article
Yes, you can reinstall Firefox and keep your bookmarks. The process involves exporting your bookmarks to an HTML file before uninstalling the browser, then importing that file after a fresh installation. This ensures your data survives the removal of the application files.
What You'll Need
- A computer running Windows, macOS, or Linux with Firefox installed.
- Access to your current Firefox profile to export data.
- A destination folder (like Desktop or Documents) to save the backup file.
- The latest version of Firefox downloaded from the official Mozilla website.
Step-by-Step
- Open the Library: Launch Firefox. Click the "Library" button in the toolbar. If you do not see it, click the hamburger menu (three horizontal lines) in the top right corner, select "Bookmarks," and then choose "Manage Bookmarks." Alternatively, press
Ctrl+Shift+Oon Windows/Linux orCmd+Shift+Oon macOS to open the Library window directly. - Export Bookmarks: In the Library window, click the "Import and Backup" button at the top. Select "Export Bookmarks to HTML..." from the dropdown menu. A file save dialog will appear.
- Save the Backup: Choose a location where you can easily find the file later, such as your Desktop or Documents folder. Name the file something recognizable, like "Firefox_Bookmarks_Backup.html," and click "Save." This creates a standalone HTML file containing all your saved links.
- Uninstall Firefox: Close Firefox completely. On Windows, go to Settings > Apps > Installed Apps, find Firefox, click the three dots next to it, and select "Uninstall." Follow the prompts. On macOS, drag the Firefox app from the Applications folder to the Trash. On Linux, use your package manager (e.g.,
sudo apt remove firefox) to remove the application. - Download Fresh Copy: Open any web browser and navigate to
mozilla.org/firefox. Download the installer for your operating system. Run the installer and follow the on-screen instructions to install Firefox freshly. Do not restore settings from a previous profile if prompted, as this may reintroduce issues you are trying to fix. - Import Bookmarks: Once Firefox is installed and open, open the Library again using the same method as Step 1 (
Ctrl+Shift+Oor via the menu). Click "Import and Backup" and select "Import Bookmarks from HTML..." Navigate to the file you saved in Step 3, select it, and click "Open." Your bookmarks will immediately populate into the "Bookmarks Menu" and "Other Bookmarks" folders.
Common Mistakes
Many users attempt to simply delete the Firefox application folder without exporting their data first. While this removes the program, it often leaves behind profile data in hidden system folders, which can cause conflicts during reinstallation. Another common error is saving the backup file in a temporary directory that gets cleared upon restart. Always save the HTML file to a permanent location like the Desktop. Additionally, some users forget to close Firefox completely before uninstalling, which can lock files and prevent successful removal.
Tips
If you have many folders within your bookmarks, consider organizing them lightly before exporting to make the import look cleaner. You can also sync your bookmarks to a Firefox Account instead of manual exporting; this is safer if you plan to switch devices later. To enable syncing, sign in to your Firefox Account in the old browser, go to Settings > Sync, and ensure "Bookmarks" is toggled on. After reinstalling, sign in again, and your bookmarks will download automatically. For advanced users, manually backing up the entire "profile folder" is possible but complex; the HTML export method is sufficient for most needs and avoids permission errors.
Troubleshooting
If your bookmarks do not appear after import, check the "Bookmarks Menu" and "Other Bookmarks" sections specifically, as imported items default to these locations rather than creating new custom folders. If the import fails, ensure the HTML file is not corrupted by opening it in another browser to verify the links work. If Firefox refuses to uninstall, use a dedicated uninstaller tool or boot into Safe Mode to remove residual files. Should you lose access to your old profile entirely, try restoring from a recent system restore point or check if Firefox created a "Old Firefox Data" folder in your user directory during the uninstall process; you can import from there if needed.
Frequently Asked Questions
Will my passwords be lost?
Yes, unless you export them separately or have Firefox Sync enabled. Passwords are stored in the profile folder, so a clean uninstall wipes them. Export passwords via Settings > Privacy & Security > Logins and Passwords before uninstalling.
Can I merge old bookmarks with new ones?
No, the import function replaces the existing structure or adds to the default folders. It does not intelligently merge duplicates. You must manually review and organize after import if you want to avoid clutter.
Does this work for Firefox Mobile?
No, this guide applies only to desktop versions. Mobile browsers handle data differently. Use Firefox Sync to transfer bookmarks between desktop and mobile devices seamlessly.
Is the HTML file safe to share?
Yes, the HTML file contains only URLs and folder names. It does not contain passwords, history, or cookies. However, it reveals the websites you visit, so treat it as private information.
What if I don't have the old computer anymore?
If you previously synced your account, log in on the new device. If not, and no backup exists, bookmarks cannot be recovered. Regular backups are essential for data preservation.