Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to export my saved passwords in Firefox/Mozilla manager to an external password manager application with better encryption.

Where is the password file located and what is the file extension? Maybe the application can do an import of the database file.

share|improve this question

There is an add-on for exporting your passwords.

share|improve this answer

According to the support page the password data can be found in ~/.mozilla/firefox/key3.db and ~/.mozilla/firefox/signons.sqlite files. These files needs to be read with some sqlite editor. There are other alternatives like extensions that do so too.

LastPass, Keepass and others password managers that use Firefox plugins, can import the data from Firefox directly and replace the password manager.

share|improve this answer

LastPass Password Manager is a very good add-on that let's you store and encrypt your passwords in Firefox. It automatically exports (and deletes) the passwords stored locally and plainly during installation to your LastPass Vault. It also has a feature for generating a random password for a particular website.

This, for me, is one of the best security add-ons for Firefox. It's easy to use and manage.

share|improve this answer

The latest versions of Firefox store passwords, encrypted, in a JSON text file, logins.json, in your Firefox profile folder at /home/you/.firefox/.

This Python script will decrypt them all into a text file. Basic usage:


And answer prompt if necessary.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.