Mozilla Firefox has been my primary web browser for over a decade now. It might not be the fastest browser out there for the Windows operating system but does the job for me.
Before Firefox 57 (Firefox Quantum), we could easily import and export passwords saved in the Firefox browser by installing an add-on. This helps when you want to backup passwords saved in Firefox or when you want to reinstall Windows OS.
As you likely know, add-ons that helped you import and export passwords saved in Firefox did not work in Firefox 57 and later versions. Although you could view the passwords saved in Firefox by navigating to Preferences > Privacy & Security > Saved Logins section, there was no option to export or import (import from a file) passwords.
Most of the Firefox users are using third-party password saving solutions like LastPass and KeePass and won’t need an option to export passwords. Since these password managers are cloud-based (save passwords in the cloud), not all users want to use them for security reasons. Like many of you, I prefer using Firefox’s built-in password manager (with a master password, of course).
Like me, if you also use Firefox’s built-in password manager and looking for a way to backup Firefox passwords, you have very limited options.
Luckily, with Firefox 79, Mozilla has introduced an option to export saved passwords to a CSV file. However, there is no option yet to import passwords from a CSV file.
In this guide, we will discuss the four easy ways out there to backup Firefox passwords in Windows OS.
Method 1 of 5
Export Firefox passwords to CSV file
Version 79 (available in Nightly builds) and later versions of Firefox offer an in-built option to export saved passwords to CSV file. Here is how to do that.
Step 1: Type about:logins in the Firefox address bar and press the Enter key. This will open the page where you can view your saved credentials.
Step 2: Here, to export all saved passwords, click on the three vertical dots icon (refer to the picture below) and then click the Export Logins option.
Step 3: For security reasons, Firefox asks you to enter your Windows account password, fingerprint scan, or PIN before exporting the password. When asked, please do so to continue.
Step 4: Finally, browse to the location where you would like to save the CSV file containing the password, select the folder, type a name for the CSV file, and then click the Save button.
Method 2 of 5
Manually backup key4.db and logins.json files
Firefox saves your passwords in key4.db and logins.json files. These files are located in your Firefox profile folder. You can backup these two files to export all passwords. After reinstalling Windows or Firefox, you can restore these two files again to import passwords. Here is how to do that.
To export passwords
Step 1: Open the Run command dialog. Type the following path and then press Enter key to open Firefox Profiles folder.
Step 2: Under the Profiles folder, you should see your profile folder. If you have more than one profiles, you will see two or more folders. If you have only one profile, your passwords are stored in the default profile.
Step 3: Open up the profile folder and locate key4.db and logins.json files. Copy these files and save them in a safe location (preferably offline) to backup passwords.
To import passwords
We advise you to do this immediately after reinstalling Firefox or Windows as replacing existing key4.db and logins.json files with previously backed up files will delete currently saved passwords, if any.
Step 1: Open the Run command box, type the following path and then press Enter key to open Profiles folder.
Step 2: Open up the profile folder. Copy and paste the previously backed up key4.db and logins.json files to your profile folder. That’s it!
Method 3 of 5
Use PasswordFox to backup Firefox passwords
PasswordFox is a free utility from the well-known NirSoft and is trustable. Simply download and run PasswordFox to view all saved passwords in Firefox. It shows all password saved in Firefox along with username and URL. It’s important to note that this tool works great on Firefox 57 and 58 as well.
To export all passwords to an HTML file, select all passwords and then click HTML Report – All items option. If you want to backup only select passwords, select passwords that you want to backup and then click HTML Report – Selected items option.
Method 4 of 5
Use FF Password Exporter to export passwords
FF Password Exporter is a free program for both Windows as well as macOS to back up passwords saved in the Mozilla Firefox browser. It enables you to export saved passwords to CSV or JSON files.
Method 5 of 5
Manually note down Firefox passwords
If you don’t want to use a third-party solution and don’t want to backup Key4.db and Logins.json files as well, you have no option but to manually backup all saved passwords by noting down each username and password. The method becomes cumbersome when you have tens of passwords.
Step 1: Open Firefox. Press the Alt key, click Tools, and then click Options.
Step 2: Switch to the Privacy & Security tab. Click the Saved Logins button and then click Show passwords button to view all saved passwords. If you have set a master password, you need to type the same to view all saved passwords.
Step 3: Note down all usernames, URLs, and passwords in a text editor or piece of paper.
You might also like to read our how to backup passwords saved in the Chrome browser.