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

passwords got delete

  • 3 ŋuɖoɖowo
  • 1 masɔmasɔ sia le esi
  • 24 views
  • Nuɖoɖo mlɔetɔ cor-el

more options

Hi

My saved passwords got deleted accidentally.

How can i restore.

I have previous import file its a .csv

Thanks Heshan

Hi My saved passwords got deleted accidentally. How can i restore. I have previous import file its a .csv Thanks Heshan

All Replies (3)

more options

Hi Heshan, I am not aware of a method for importing logins from a file into Firefox 57 or later.

I looked into writing a Browser Console script for it the other day, but I couldn't get it working. https://support.mozilla.org/questions/1252564

Can you recover the two critical files from a Time Machine backup? Those would be:

  • logins.json
  • key4.db

in your Profile folder. See: Profiles - Where Firefox stores your bookmarks, passwords and other user data.

more options

Current Firefox releases do not have a way to import the passwords from a CSV file.

Did you check that Firefox didn't switch profiles because Firefox 67 DE might be using its own profile?

You need a backup copy of logins.json and key4.db to restore lost passwords. The logins.json and key4.db need to match because the key file stores the encryption key necessary to be able to decrypt the usernames and passwords stored in logins.json.

If you use the Time Machine or other backup then try to restore file(s) from this backup.

more options

Note that it is actually quite easy to import passwords in the Password Manager using an array of JSON data (LoginHelper.maybeImportLogins(); in older Firefox versions LoginHelper.maybeImportLogin()).

Updating an existing password requires a lot more work (Services.logins.modifyLogin())

cor-el trɔe