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

Is it possible to export the saved passwords to HTML?

  • 9 replies
  • 6 have this problem
  • 8 views
  • Last reply by BenInBlack

more options

I think there has to be a way to export the saved paswords into a HTML file that is possible to import in IE or Edge. Does anybody knows how I can do that. I need to get them into one of these browsers. Thanks

I think there has to be a way to export the saved paswords into a HTML file that is possible to import in IE or Edge. Does anybody knows how I can do that. I need to get them into one of these browsers. Thanks

Modified by cor-el

All Replies (9)

more options

Hi

I do not know if i is possible to import the passwords into HTML, but you should be able to import them into an installed copy of Edge. This site might help.

more options

Hello,

I tried this already with former versions of Firefox. It didn't import the saved paswords, only the favorites.

Now, with the latest version of Firefox I get de message in edge "Can not import..."

I tried it on 2 different PC's, with the same result. The PASSWORD EXPORTER add-on doesn't work in the latest version of Firefox for the transfer of passwords either, so I think it has to do with the new version of Firefox. I get more and more the impression that it is not better, but worse. So I keep asking for help in this matter.

Thanks

more options

Mouse to Firefox browser top to a empty spot and Right Click, Click Menu Bar. Will find what you need under Bookmarks --> Show All Bookmarks --> Import and Backup --> Export as HTML

Please let us know if this solved your issue or if need further assistance.

more options

Pkshadow, that is only for bookmarks.

more options

HTML has been an interchange format for bookmarks / favorites between web browsers since 1997 when IE came out; based upon the Netscape bookmarks.html format which Mozilla inherited in 1999 when the Mozilla Foundation was founded.

CSV format (and XML) was used with the Password Exporter extension in previous versions of Firefox is a fairly common file type used by Password export / import between some web browsers. Firefox has never supported CSV though and neither has IE. I have heard that Edge and Chrome do support CSV - it may be a WebKit / Blink "thing". https://en.wikipedia.org/wiki/Comma-separated_values Unfortunately, the Password Exporter extension hasn't been made available yet for Quantum Firefox 57 - an API for that hasn't been created or isn't ready yet.

When Firefox is installed, users are given the option to import bookmarks / favorites and passwords from IE, Chrome, Safari, and maybe other browsers; and the option to do so at a later time does exist in Firefox.

And conversely many browsers do offer to import data from Firefox upon installation and probably later, too. Ask support for those browsers how to do that,

more options

Frever Unfortunately, the current Firefox does not export passwords. There was an add-on that would do this, but it is not compatible with the current.

https://addons.mozilla.org/en-US/firefox/addon/password-exporter/ Password Exporter by Justin Scott (fligtar), Jorge Villalobos Not compatible with Firefox Quantum


One thing you can try is to downgrade. Use the above add-on, and after restore Firefox to the current.

Another thing you can do is to install a separate Firefox in its own programs folder, sync the password data, then use the add-on.


In the event that the passwords information is lost, you should record all information in a separate text file somewhere else on your hard drive, or written down. You can easily copy and paste if you need to do so. If you are concerned about someone else looking at that file, you can compress it using a password.

more options

You can run this JavaScript code in the Browser Console to export the passwords to a JSON file.

  • "3-bar" menu button or Tools -> Web Developer
  • set devtools.chrome.enabled to true on the about:config page to show the command line in the console

See:

/* export the names and passwords in JSON format to firefox-logins.json */
var tokendb = Cc["@mozilla.org/security/pk11tokendb;1"]
              .createInstance(Ci.nsIPK11TokenDB);
var token = tokendb.getInternalKeyToken();

try {token.login(true)} catch(e) {Cu.reportError(e)}

if (!token.needsLogin() || token.isLoggedIn()) {
 var passwordmanager = Cc["@mozilla.org/login-manager;1"] .getService(Ci.nsILoginManager);
 var signons = passwordmanager.getAllLogins({});
 var json = JSON.stringify(signons, null, 1);

 var ps = Services.prompt;
 var txt = 'Logins: ' + signons.length;
 var obj = new Object; obj.value = json;

 if (ps.prompt(null, 'Logins - JSON', txt, obj, null, {})){
 var fp=Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
 fp.init(window,"",Ci.nsIFilePicker.modeSave);
 fp.defaultString = "firefox-logins.json";

 fp.open((rv) => {
 if (rv == Ci.nsIFilePicker.returnOK || rv == Ci.nsIFilePicker.returnReplace) {
 var fos = Cc['@mozilla.org/network/file-output-stream;1'].createInstance(Ci.nsIFileOutputStream);
 fos.init(fp.file, 0x02 | 0x08 | 0x20, 0666, 0);
 var converter = Cc['@mozilla.org/intl/converter-output-stream;1'].createInstance(Ci.nsIConverterOutputStream);

 converter.init(fos, 'UTF-8', 0, 0);
 converter.writeString(json);
 converter.close();
}})
}}
more options

Frever said

I think there has to be a way to export the saved paswords into a HTML file that is possible to import in IE or Edge. Does anybody knows how I can do that. I need to get them into one of these browsers. Thanks

Hello,

If you are using Windows then try PasswordFox It still works on Windows 10 and FireFox F57.04 - tested ok

PasswordFox v1.58 - Extract the user names/passwords stored in Firefox http://www.nirsoft.net/utils/passwordfox.html

http://www.nirsoft.net/toolsdownload/passwordfox-x64.zip

Its a fairly straight forward app.

Run: PasswordFox.exe Edit: Select all File: Save as

Supports txt, xml, csv and vertical and horizontal html export.

btw... PasswordFox has been around for a long time.

more options

cor-el said

You can run this JavaScript code in the Browser Console to export the passwords to a JSON file.
  • "3-bar" menu button or Tools -> Web Developer
  • set devtools.chrome.enabled to true on the about:config page to show the command line in the console
See:
/* export the names and passwords in JSON format to firefox-logins.json */
var tokendb = Cc["@mozilla.org/security/pk11tokendb;1"]
              .createInstance(Ci.nsIPK11TokenDB);
var token = tokendb.getInternalKeyToken();

try {token.login(true)} catch(e) {Cu.reportError(e)}

if (!token.needsLogin() || token.isLoggedIn()) {
 var passwordmanager = Cc["@mozilla.org/login-manager;1"] .getService(Ci.nsILoginManager);
 var signons = passwordmanager.getAllLogins({});
 var json = JSON.stringify(signons, null, 1);

 var ps = Services.prompt;
 var txt = 'Logins: ' + signons.length;
 var obj = new Object; obj.value = json;

 if (ps.prompt(null, 'Logins - JSON', txt, obj, null, {})){
 var fp=Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker);
 fp.init(window,"",Ci.nsIFilePicker.modeSave);
 fp.defaultString = "firefox-logins.json";

 fp.open((rv) => {
 if (rv == Ci.nsIFilePicker.returnOK || rv == Ci.nsIFilePicker.returnReplace) {
 var fos = Cc['@mozilla.org/network/file-output-stream;1'].createInstance(Ci.nsIFileOutputStream);
 fos.init(fp.file, 0x02 | 0x08 | 0x20, 0666, 0);
 var converter = Cc['@mozilla.org/intl/converter-output-stream;1'].createInstance(Ci.nsIConverterOutputStream);

 converter.init(fos, 'UTF-8', 0, 0);
 converter.writeString(json);
 converter.close();
}})
}}

This is awesome and works great.. Do you know of a way to automate this, like from terminal. (i'm on mac).