Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How can I import to Firefox my passwords 79pcs saved in CSV file?

  • 4 replies
  • 1 has this problem
  • Last reply by jscher2000

more options

I read all mozilla posts but nothing helped me to import all 79 passwords and logins to Firefox from a CSV file. Any suggestion?

All Replies (4)

more options

One of these may help you: ++++++++++++++++++++++++++++++++++++ (Win) PasswordFox v1.58 - Extract the usernames/passwords stored in Firefox Copyright (c) 2008 - 2017 Nir Sofer

Note: Some anti-virus show false positive. ++++++++++++++++++++++++++++++++++ Easily export your passwords from Firefox.

Export your passwords from Firefox in a portable CSV or JSON format. It works on Windows, macOS, and Linux. +++++++++++++++++++++++++++++++++++ 3 Tools to Decrypt and Recover Passwords Saved in Firefox • Raymond CC +++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++

more options

Unfortunately none of the suggestions is for IMPORTING passwords to Firefox. All are for exporting passwords from Firefox.

more options

Firefox doesn't handle the CSV format for logins / password data. The old Legacy version of Firefox (Fx56 Australis and earlier versions) did have some 3rd party add-ons available which would export and import via CSV, but the Quantum versions don't support the defunct Legacy format extensions.

more options

It's probably possible to write a script that adds passwords from a CSV file, but if you don't find one online, it's going to take some work.

First, because legacy extensions no longer run, you will need to execute a "legacy" script in the Browser Console. To do that, you need to turn on "chrome debugging" as follows:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste devt and pause while the list is filtered

(3) Double-click the preference to switch the value from false to true

And then you may need more information about the Browser Console:

This is a script that adds a single saved login:

Sequence of fields for init():
login.hostname, login.formSubmitURL, login.httpRealm,
login.username, login.password, login.usernameField, login.passwordField
try {
  var loginInfo = Components.classes[";1"].createInstance(Components.interfaces.nsILoginInfo);
  // Create the new login info object
  loginInfo.init("", "", null,
    "me", "secret123", "uname", "pass");
  // Add the new login to Firefox's password manager
} catch (err) {
  console.log('Problem adding login: '+err);

Then that should show up in the Saved Logins dialog, and it may or may not auto-populate on the test page (I got flaky results).

So what's missing from this equation is the code to read your CSV file, extract out the fields for each login, and assemble them into the correct format to add to Firefox.