X
Tap here to go to the mobile version of the site.

Support Forum

How to print out my passwords in Firefox?

Posted

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

Read this answer in context 0
Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 32.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

More Information

jscher2000
  • Top 10 Contributor
8635 solutions 70623 answers

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

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: <pre> try { signons = Services.logins.getAllLogins(); var csv = '"Site","Username","Password"'; for (var i=0; i&lt;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); } </pre> (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 (&raquo;) -- 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
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8635 solutions 70623 answers

Helpful Reply

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/

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/
Was this helpful to you? 1
Quote

Question owner

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

Thank you. I wonder why something so simple and convenient as a print option would be left out? Some kind of security issue?
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8635 solutions 70623 answers

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

Most settings and data can't be printed out. Just something that not a lot of people asked for?
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.