Since version 80, Firefox has allowed you to import passwords in CSV format. This can be used, for example, to export passwords from Firefox and transfer them to another PC. If you format the data accordingly, you can also import them from other programs, such as password managers.

In principle, it is possible to synchronize passwords between Firefox instances via the cloud. However, if you hesitate to transfer your credentials for business applications to the cloud, then exporting and reimporting is an alternative.

Exporting credentials to a file ^

The function for saving the login data to a CSV file can be found in the settings under Passwords (the page can be reached directly via about:logins). There, click the three dots in the upper right corner, and then select Export Logins from the dropdown menu.

Firefox command for exporting passwords

Firefox command for exporting passwords

After confirming a warning and entering your Windows password, select the location where the browser will save the data.

Activating the import function ^

Reimporting to another instance of Firefox usually requires a bit more effort because the import feature is disabled by default. To make it available, type about:config in the address bar. After confirming the displayed warning, search the page for

signon.management.page.fileImport.enabled

By default, this parameter has the value false. Click the toggle icon on the far right of the line to change it to true.

Enable function for importing credentials from a file

Enable function for importing credentials from a file

Starting the import ^

If you now go back to the passwords page in the settings, the menu from which you previously exported the credentials should have the command Import from a File.

Execute the command to import credentials

Execute the command to import credentials

The function will ask for the CSV file and import it. This import is smart enough to detect duplicates and thus avoids overwriting existing passwords.

Subscribe to 4sysops newsletter!

If certain credentials already exist on the target computer, they will not be overwritten

If certain credentials already exist on the target computer, they will not be overwritten

After the successful import, remember to permanently delete the CSV file because it contains all passwords in plain text.

avataravatar
18 Comments
  1. Paolo Maffezzoli 4 months ago

    Thanks Wolfgang for sharing this document, for you information only for specific security reason it is possible check Firefox password using PasswordFox by Nirsoft.
    It is a small password recovery tool that allows you to view the user names and passwords stored by Mozilla Firefox Web browser.

  2. kemaresb 4 months ago

    It works very well ! thanks you.

  3. Hakan 3 months ago

    Hi,
    I exported my saved logins in Chrome (Version 104.0.5112.102 (Official Build) (64-bit)) to a CSV file.

    In Notepad, I can open that CSV file exported from the Chrome and see that all logins are there, in this order and format;
    name,url,username,password

    In Firefox (104.0 (64-bit), I followed your instructions and toggled the “signon.management.page.fileImport.enabled” to TRUE.

    Restarted Firefox.

    From the “about:logins”, choose “Import from a file”.
    Choose the CSV file I exported from Chrome.

    Pressed “Open”.

    The result is; “No logins found” 🤔

    What can it be that is not working?

    Why can Firefox be not importing or not seeing the rows (lines) in the CSV file?

    Is there a “specific order” of login credentials required (name,url,username,password) in each line of the CSV file, for Firefox to be able to recognize or accept it?

    Many thanks,

    Hakan

    • Author
      Wolfgang Sommergut 3 months ago

      Hakan, if you export passwords from Firefox, the CSV file’s header looks like this:

      “url”,”username”,”password”,”httpRealm”,”formActionOrigin”,”guid”,”timeCreated”,”timeLastUsed”,”timePasswordChanged”

      So I suppose you have to stick to this format when importing passwords from another browser.

      avataravatar
      • Hakan 3 months ago

        Thanks Wolfgang,

        You are right. I also taught that and did a login credentials export from the Firefox itself to a CSV file and checked the CSV file created by the Firefox and seen that data order format as the header row.
        I rearranged the data order of the Chrome’s CSV files data order to the data order of Firefox and tried to import that into Firefox but that did not work as well.
        What is more interesting is; I exported all the login credentials from the Firefox to a CSV file, after that I deleted all login data within the Firefox, again within Firefox I performed an “import from a CSV file” procedure but this as the source file choose the CSV file which was exported by Firefox itself, and the result was again; “NO LOGIN DATA FOUND”.

        • Author
          Wolfgang Sommergut 3 months ago

          Hakan, just double-checked the import from Chrome. Firefox accepted the exported Chrome PW file without any modifications.

  4. fixitmanarizona 3 months ago

    In Firefox 104 this doesn’t work, as Mozilla wants to know all your passwords by having you sign in to something called Sink or Synk or something (I think, like a kitchen sink?) and I won’t do it. I won’t allow it to save any passwords if they are going to Mozilla’s servers. Bring back the old system where you can store locally. Firefox went downhill after version 4, and 100 versions later is even worse than ever. So, forget it, I’ll be using ANYTHING but a Mozilla browser (Haven’t for years, anyway…) Maybe they need to just let Vivaldi do the things they used to be good at.

    • 134pl 3 months ago

      At least Firefox ESR 102 can import passwords, but if ESR 113/114/115 will arrive, it’s game over.

  5. Hakan 3 months ago

    What is the reasoning or motivation behind the hindering of the import functionality of login credentials?
    It already doesn’t work in my Firefox (104.0 (64-bit)).
    It seems like it is there but it does not work.

  6. Raul 3 months ago

    I went through the process, got the import option, I invoked “import from a file” and Selected the logins.csv file and clicked open and nothing happened.
    The dialog window closed and no logins were imported.
    Did it several times. Einstein – – Madness, I know . Still no import.

    • P.Jay 3 months ago

      Apparently it uses eval and thus Bug 1772378 “broke” it. If you must import some passwords, you can temporarily enable eval in the main process by setting security.allow_eval_in_parent_process to true. Import the file you need and return the pref to false afterwards. Then, file a bug and share the link to your report.

      Source: https://www.reddit.com/r/firefox/comments/vzq8fj/comment/igg0plb/

      • Raul 3 months ago

        Thanks for that.
        I just did it the old fashioned way and manually typed them all in.
        I know A sucker is born every minute, but it’s done.

      • Benjamin Mpeirwe 1 month ago

        Worked!!!

  7. User5 2 months ago
  8. Jerry 2 months ago

    had the same issue you all on mac osx..i did 1 more trick..and it worked ..i copied the .csv file to my desktop and it worked

  9. ninjagranny 2 months ago

    yep worked – rememebr to set ti to fals e afetrwards though 🙂

  10. Raul 4 weeks ago

    very often This Will Not Be Sufficient. In Linux Deb firefox you need to do a little more
    about:config
    signon.management.page.fileImport.enabled
    switch it to true

    if I doesn’t work then go back into about:config
    Set
    security.allow_eval_in_parent_process
    to true,
    import your file, then set it back to false. You must set it back to false because it is a security vulnerability if you don’t

  11. Alex 3 weeks ago

    If you must import some passwords, you can temporarily enable eval in the main process by setting security.allow_eval_in_parent_process to true. Import the file you need and return the pref to false afterwards.

    worked for me. Firefox 106

Leave a reply

Your email address will not be published.

*

© 4sysops 2006 - 2022

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account