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 to print out my passwords in Firefox?

more options

Of all the updates and features that Firefox has added to its repertoire over the years, the one item I keep hoping for never seems to be present: The ability to simply print out a hard copy of my logins (username and password). Is that asking too much? Or is that feature present, and I'm just too dumb to find it?

Of all the updates and features that Firefox has added to its repertoire over the years, the one item I keep hoping for never seems to be present: The ability to simply print out a hard copy of my logins (username and password). Is that asking too much? Or is that feature present, and I'm just too dumb to find it?

Chosen solution

There is no built-in feature for this. You can use a short script in Firefox's Browser Console tool to generate/export a list.

Preparation: Enable Advanced Features of the Browser Console

This needs to be done once:

(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 devtools.chrome.enabled preference to switch the value from false to true

If you plan to turn this off afterwards, you can keep this tab open.

Running the Script

(1) Select and copy the following script:

try {
  signons = Services.logins.getAllLogins();
  var csv = '"Site","Username","Password"';
  for (var i=0; i<signons.length; i++){
    csv += '\n';
    csv += signons[i].httpRealm ? 
      ('"' + signons[i].hostname + ' (' + signons[i].httpRealm + ')","') : 
      '"' + signons[i].hostname + '","';
    csv += signons[i].username + '","' + signons[i].password + '"';
  }
  console.log(csv);
} catch (err) {
  console.log('Problem reading or outputting logins: '+err);
}

(2) Open Firefox's separate Browser Console window using either:

  • "3-bar" menu button > Web Developer > Browser Console
  • (menu bar) Tools > Web Developer > Browser Console
  • (Windows) Ctrl+Shift+j

(3) Paste the script next to the caret (») -- this is below any messages that appear in the console -- and press Enter to run it. If you use a Master Password, Firefox may require you to enter it now.

Firefox should list out your user names and passwords in CSV format for easy copy/pasting.

There's a similar method in this thread that generates a JSON file: https://support.mozilla.org/questions/1077630

Skaityti atsakymą kartu su kontekstu 👍 0

All Replies (4)

more options

Chosen Solution

There is no built-in feature for this. You can use a short script in Firefox's Browser Console tool to generate/export a list.

Preparation: Enable Advanced Features of the Browser Console

This needs to be done once:

(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 devtools.chrome.enabled preference to switch the value from false to true

If you plan to turn this off afterwards, you can keep this tab open.

Running the Script

(1) Select and copy the following script:

try {
  signons = Services.logins.getAllLogins();
  var csv = '"Site","Username","Password"';
  for (var i=0; i<signons.length; i++){
    csv += '\n';
    csv += signons[i].httpRealm ? 
      ('"' + signons[i].hostname + ' (' + signons[i].httpRealm + ')","') : 
      '"' + signons[i].hostname + '","';
    csv += signons[i].username + '","' + signons[i].password + '"';
  }
  console.log(csv);
} catch (err) {
  console.log('Problem reading or outputting logins: '+err);
}

(2) Open Firefox's separate Browser Console window using either:

  • "3-bar" menu button > Web Developer > Browser Console
  • (menu bar) Tools > Web Developer > Browser Console
  • (Windows) Ctrl+Shift+j

(3) Paste the script next to the caret (») -- this is below any messages that appear in the console -- and press Enter to run it. If you use a Master Password, Firefox may require you to enter it now.

Firefox should list out your user names and passwords in CSV format for easy copy/pasting.

There's a similar method in this thread that generates a JSON file: https://support.mozilla.org/questions/1077630

more options

Or if you prefer to use a pre-packaged program, this article lists two options for extracting logins and presumably then you could print them:

https://www.ghacks.net/2018/07/18/how-to-export-firefox-passwords-in-firefox-57/

more options

Thank you. I wonder why something so simple and convenient as a print option would be left out? Some kind of security issue?

more options

Most settings and data can't be printed out. Just something that not a lot of people asked for?