Export Firefox Passwords

Export your Firefox passwords to a comma-delimited (CSV) file you can open with Microsoft Excel.

Opening Firefox password settings

Are you looking to export Firefox passwords to back them up, move them from one computer to another, or review them all at once in an Excel spreadsheet?

If your primary web browser is Firefox you are probably letting it store your passwords. Because Firefox knows your passwords, it logs you into websites automatically.

It is a good idea to have a backup of your passwords. Computers tend to die suddenly and unexpectedly, often just when you are in the middle of doing something important.

From time to time you may want to review all passwords that are saved in Firefox. Perhaps some of your passwords are weak or old (or both) and you would like to update them.

While it is simple to occasionally take a look at an individual password in Firefox to recall what it is, when you need to work with multiple passwords it is easier to open them in Microsoft Excel (or similar spreadsheet software).

If you don't have Microsoft Excel, LibreOffice Calc is a good (and free) alternative.

If you are changing computers and want to transfer your passwords saved in Firefox, you can export Firefox passwords on the old computer, copy them over to the new computer, and import them back to Firefox there.

How to export Firefox passwords

To export Firefox passwords follow these seven simple steps.


1) Start Firefox web browser

Start Firefox on your computer.


Mozilla Firefox web browserOpen Mozilla Firefox

2) Open Firefox password settings

On top right, click on the three vertical bars / hamburger icon (Step 1).

Then click on "Logins and Passwords" (Step 2).


Opening Firefox password settingsOpen Firefox password settings

3) Click on three horizontal dots

You are now in the Firefox Lockwise section of the Firefox configuration. Click on the three horizontal dots (top right).


Three horizontal dots, top rightClick on three horizontal dots

4) Select "Export Logins..." from the pull-down menu

After clicking on the three horizontal dots, a pull-down menu will open. Select "Export Logins...".


Selecting "Export Logins..." from Firefox Lockwise pull-down menuSelect "Export Logins..." from the pull-down menu

5) Click on "Export passwords..."

You will see a warning that says:

"Your passwords will be saved as readable text (e.g., BadP@ssw0rd) so anyone who can open the exported file can view them."

This means that once you export Firefox passwords to an Excel (CSV) file, anyone who has access to that file on your computer can view your passwords. This is because your passwords will be stored in plain text and are not be encrypted.

You should minimize the time your exported passwords are stored on your computer. View them or back them up, and then delete the file.


Clicking on "Export..." on the Export logins and passwords window pop-upClick on "Export..."

6) Type your computer password

Your computer password is the only security mechanism Firefox has to protect your passwords. Anyone who has your computer password can export Firefox passwords that belong to you.

Enter your computer password to continue.


Prompt asking to type your computer passwordType your computer password

7) Save exported Firefox passwords

Firefox will export your passwords to a file on your computer called "logins.csv". This is not a very descriptive file name and you can rename it to something like "Firefox Passwords.csv".

The format of the file will be CSV, or comma-separated values. You cannot change this while saving the file on your computer, but once you open it in Microsoft Excel or LibreOffice Calc, you can re-save it in another format. For example, if you use Microsoft Excel to open the file, you can save it (File -> Save As) as Excel Workbook (.xlsx).


Save exported Firefox passwords on your computer.Save exported Firefox passwords

Open file where you saved Firefox passwords

Your Firefox passwords are now saved on your computer in a comma-delimited (CSV) file. You can open the file with Microsoft Excel or LibreOffice Calc (or Apple Numbers on Mac) and view your passwords.


Firefox Passwords.csv file shown in Windows ExplorerDouble-click to open Firefox Passwords.csv

This is what the file looks like

When you open the Firefox Passwords.csv file, the three fields you need the most are:

  • Column A: the website URL (link)
  • Column B: your username
  • Column C: your password

Firefox Passwords.csv fileFirefox Passwords.csv

It is important to realize that your passwords stored this way on your computer are at risk. Because the CSV file is not encrypted (and even if it is, Excel file encryption is easy to break) if someone gets a hold of it they can read your passwords.

In addition, your web browser has access to your computer files, and web browsers are not very secure themselves. So it is not unimaginable that any file, including this passwords file, could get uploaded from your computer to password thief's computer.

Is there a better way to store passwords?

Yes, there is a more convenient and secure way to store and manage passwords. Have you considered using a password manager?