Mozilla Monitor website will be down for 2 hours starting 5/20/2025 at 6 AM PT. Visit our status site for updates.

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 there any way of recovering logins.json.corrupt ?

  • 10 replies
  • 9 have this problem
  • 223 views
  • Last reply by cor-el

Yesterday I lost all my passwords after a weird episode ( see https://support.mozilla.org/en-US/questions/1085073 and https://support.mozilla.org/en-US/questions/1085300 ). I have a new logins.json file in my profile folder with whatever passwords I've been able to reconstruct, and in the same folder is logins.json.corrupt (27K, 24740 characters according to Texpad, but none of them visible - blank page). This answer (https://support.mozilla.org/en-US/questions/1054932 ) - reset signon.importedFromSqlite, close FF, delete logins.json and re-open - did not work. But I re-set "Value (user set)" in signon.importedFromSqlite - maybe I should have reset "Value"?

Just checked - resetting Value didn't help either.

Yesterday I lost all my passwords after a weird episode ( see https://support.mozilla.org/en-US/questions/1085073 and https://support.mozilla.org/en-US/questions/1085300 ). I have a new logins.json file in my profile folder with whatever passwords I've been able to reconstruct, and in the same folder is logins.json.corrupt (27K, 24740 characters according to Texpad, but none of them visible - blank page). This answer (https://support.mozilla.org/en-US/questions/1054932 ) - reset signon.importedFromSqlite, close FF, delete logins.json and re-open - did not work. But I re-set "Value (user set)" in signon.importedFromSqlite - maybe I should have reset "Value"? Just checked - resetting Value didn't help either.

Modified by FxFxx

Chosen solution

cor-el said

You can check if there are previous versions of the logins.json and key3.db files available.
  • Right-click: Properties > Previous Versions
There is no way to tell if you have a correct key3.db file. If it works then you see the names in the Password Manager. Otherwise you see an empty Password Manager window or an error message.

Yes! A million thanks. Got all my passwords back.

For people who find this answer: I opened my Profiles folder, right-clicked on logins.json, viewed Properties "Previous versions". It produced a list of three. In the list, right-clicked on one from last week, the only useful option was "Copy". Copied then pasted to desktop, where recovered logins.json appeared. Then copied current logins.json from Profiles to safe place (just it case), then deleted it from the Profiles folder and replaced it with the recovered version.

Read this answer in context 👍 0

All Replies (10)

Did you ever set a master password>>? Unfortunately, since it is corrupt I might have to suggest to only salvage part of the file that does still work. You might find a reference of a working logins.json file to see what format it is in to decipher the corruption. It's ugly, but I cannot think of a better way to save them other then starting over.

Using the signon.importedFromSqlite pref makes it possible to reimport passwords stored in the signons.sqlite file that older Firefox versions used.

The passwords stored in logins.json and signons.sqlite are encrypted with a key stored in key3.db. If you do not have the correct key3.db file then you won't be able to use the logins.json file or the signons.sqlite file if you still have this file.

cor-el said

Using the signon.importedFromSqlite pref makes it possible to reimport passwords stored in the signons.sqlite file that older Firefox versions used. The passwords stored in logins.json and signons.sqlite are encrypted with a key stored in key3.db. If you do not have the correct key3.db file then you won't be able to use the logins.json file or the signons.sqlite file if you still have this file.

I still have key3.db, and a new logins.json file has generated itself, but the one with all my passwords is logins.json.corrupt.

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.


These can't get your data back, but will help in the future.

These add-ons can be a great help by backing up and restoring Firefox

FEBE (Firefox Environment Backup Extension) {web link} FEBE allows you to quickly and easily backup your Firefox extensions, history, passwords, and more. In fact, it goes beyond just backing up -- It will actually rebuild your saved files individually into installable .xpi files. It will also make backup of files that you choose.

OPIE {web link} Import/Export extension preferences

You can check if there are previous versions of the logins.json and key3.db files available.

  • Right-click: Properties > Previous Versions

There is no way to tell if you have a correct key3.db file. If it works then you see the names in the Password Manager. Otherwise you see an empty Password Manager window or an error message.

Chosen Solution

cor-el said

You can check if there are previous versions of the logins.json and key3.db files available.
  • Right-click: Properties > Previous Versions
There is no way to tell if you have a correct key3.db file. If it works then you see the names in the Password Manager. Otherwise you see an empty Password Manager window or an error message.

Yes! A million thanks. Got all my passwords back.

For people who find this answer: I opened my Profiles folder, right-clicked on logins.json, viewed Properties "Previous versions". It produced a list of three. In the list, right-clicked on one from last week, the only useful option was "Copy". Copied then pasted to desktop, where recovered logins.json appeared. Then copied current logins.json from Profiles to safe place (just it case), then deleted it from the Profiles folder and replaced it with the recovered version.

Modified by FxFxx

Hi

My files got corrupted on yesterday update . I have the same issue. but i could not find the old version of logins.json file.

There is a file logins.json.corrupt instead of logins.json

corrupt file is about 324KB.

Is there any way to get login details from the corrupt file ?

@ statements I might encourage you to start a new question for more help from the experts. Other than searching through the corrupt file with a word editor I cannot think of a quick way to recover this.

If the above information does not resolve your issue, please consider creating a new thread containing the specific details of your issue.

Doing so will allow the Mozilla volunteers to give you solutions that are more helpful to you. This may help them to solve your problem faster and more efficiently.

Please, feel free to post the link to your thread on this thread for volunteers interested in assisting you.

Thank you.

Those files are encoded to prevent that type of action.


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.


These can't get your data back, but will help in the future.

These add-ons can be a great help by backing up and restoring Firefox

FEBE (Firefox Environment Backup Extension) {web link} FEBE allows you to quickly and easily backup your Firefox extensions, history, passwords, and more. In fact, it goes beyond just backing up -- It will actually rebuild your saved files individually into installable .xpi files. It will also make backup of files that you choose.

OPIE {web link} Import/Export extension preferences

Ht statement

Did you check the content of the logins.json-corrupt file to see if it is a valid JSON format?

You can open the file in the Scratchpad (Firefox menu button or Tools > Web Developer). Click the "Pretty Print" button to format the file for readability.