logo elektroda
logo elektroda
X
logo elektroda

Mozilla Firefox: Disappearing Passwords, Retaining Bookmarks & History - Recover Options

larrylldldld 7404 11
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16739349
    larrylldldld
    Level 7  
    Posts: 5
    Rate: 1
    Hello,
    Something strange has happened in my Mozilla that I can't understand. All passwords have disappeared, but not bookmarks and history. I tried to recover them with passwordfox and FirePasswordViewer, but both found only two / three very, very old passwords 3 years ago (?). What could happen to the rest? I was browsing files and I have no idea what may be wrong. This is very important to me because I use multiple accounts and I can't reset all passwords at this time.
    Thanks for the help.
  • ADVERTISEMENT
  • Helpful post
    #2 16740246
    niuniu7
    Level 17  
    Posts: 344
    Help: 16
    Rate: 19
    1
    Expand the Tools menu.
    2
    Select Options.
    3
    Click on the Security tab.
    4
    Click "Saved Passwords".
    5
    A window with the same name will appear with a list of sites and usernames used to login. In the bottom right year, click "View passwords".
    6
    You will be asked to confirm the display of passwords. Select "Yes".
    7
    A new column with site passwords will appear in the "Saved Passwords" window.
    8
    If you want to hide your passwords again, click "Hide passwords" in the bottom right corner of the window.

    Moderated By dt1:

    The answer has nothing to do with the subject. This is the procedure for reading saved passwords, not recovering lost ones.

  • #3 16740393
    larrylldldld
    Level 7  
    Posts: 5
    Rate: 1
    My problem is that I don't have any passwords there? Or rather, I have the old and new ones that I added, but this is only a fraction of all that I had.
  • ADVERTISEMENT
  • Helpful post
    #4 16740469
    dt1
    Admin of Computers group
    Posts: 47961
    Help: 7262
    Rate: 8187
    Try:

    - press the start button (Windows Vista, 7, 10) and enter % Appdata% - confirm with enter. Alternatively, you can press the WIN + R key combination - the Windows flag and the R key - and enter% appdata% there).
    - go to Mozilla -> Firefox
    - In addition to the Profiles directory, there should also be a profiles file (described as a configuration settings file), double-click, the file should open in a notebook. If you have one profile in Firefox, the last lines of the file should look something like:
    [Profile0]
    Name=default
    IsRelative=1
    Path=Profiles/gh6xfpea.default

    Remember the active profile from the last line, in this case gh6xfpea.default
    - close the notebook, enter the Profiles directory. Is there only one directory (should then have the name read in the previous step), or are there more directories?

    * If there is only one directory with the name consistent with that read from the notebook (if there are more, then the info is below):
    - enter this directory
    - find files key3.db (it may have a hidden extension, then key3 will be the same) and logins.json (again it may have a hidden extension and the name logins).
    - right click on the first of them, select Revert to previous versions
    - see what previous dates are available (if any are available), rate if firefox remembered the passwords you want to recover at any of these time points.
    - do not restore yet, cancel.
    - do the same for the second file. Compare whether the same dates are available as for the first file. Both files should be restored to the same date because they are quite closely related.

    If earlier versions with a compatible date are available and you think that these passwords were still working then disable firefox (it's important), wait half a minute and restore both of these files to the selected date.

    If earlier versions are not available (which may occur), this method cannot be used.

    ** if there are more directories with profiles:
    - check the creation dates of these directories. Does the directory that was read from the notebook have any recent creation date? Then you can try to look in other profiles of saved passwords.
  • #5 16741302
    larrylldldld
    Level 7  
    Posts: 5
    Rate: 1
    Thank you for your reply.
    I have one directory according to what is in the profiles file.
    Both files have older versions, but the key3 file has a date from September 18 and logins from September 19. In addition, I have another file called "logins.json.corrupt", which has no previous versions. What should you do if the dates are different in both? For now, I haven't restored or changed anything. :)
  • Helpful post
    #6 16741366
    safbot1st
    Level 43  
    Posts: 21951
    Help: 2719
    Rate: 1583
    larrylldldld wrote:
    Both files have older versions, but the key3 file has a date from September 18 and logins from September 19.

    This is 1 day difference - try to restore these 2 files. Maybe they'll work.
    In key3.db you have the key to the logins.json file - that's how it works, so the dates are important.
    Copy current files to a safe place first.
    larrylldldld wrote:
    logins.json.corrupt

    You can always try to substitute this file after deleting the ".corrupt" name.
  • #7 16741403
    larrylldldld
    Level 7  
    Posts: 5
    Rate: 1
    I have restored both and nothing has changed. What to do next?
  • ADVERTISEMENT
  • #8 16741406
    safbot1st
    Level 43  
    Posts: 21951
    Help: 2719
    Rate: 1583
    Substitute the * .corrupt file with the correct name.
  • ADVERTISEMENT
  • #9 16741409
    larrylldldld
    Level 7  
    Posts: 5
    Rate: 1
    Thank you very much, it turned out that I had to reset everything and they have already appeared. Life saved. :)
    For the future, can you protect these files somehow so that they don't happen again?
  • #10 16741436
    Kolobos
    IT specialist
    Posts: 85152
    Help: 17159
    Rate: 10419
    Just make a copy of the profile from time to time.
  • #11 16741455
    Michalxd1232
    Level 13  
    Posts: 755
    Help: 6
    Rate: 12
    Make a backup or create an account in Firefox and give synchronization so that you can save your data just in case you format, for example.
  • #12 16742062
    larrylldldld
    Level 7  
    Posts: 5
    Rate: 1
    Thanks for the answer. Everything works as it should and I made a copy. :)

Topic summary

✨ The discussion revolves around a user experiencing the disappearance of saved passwords in Mozilla Firefox while bookmarks and history remain intact. The user attempted recovery using tools like Passwordfox and FirePasswordViewer but only retrieved a few old passwords. Responses provided troubleshooting steps, including checking the profile directory and restoring key files (key3.db and logins.json) to recover lost passwords. After following the advice and restoring files, the user successfully recovered their passwords. Suggestions for future prevention included regularly backing up the profile and using Firefox's synchronization feature to safeguard data.
Generated by the language model.

FAQ

TL;DR: Firefox logins missing but bookmarks/history intact? A 1‑day file-date mismatch can still work: "In key3.db you have the key to the logins.json file." [Elektroda, safbot1st, post #16741366]

Why it matters: This FAQ shows how to recover Firefox passwords on Windows and prevent repeat losses; it’s for users seeing empty Saved Logins.

Quick Facts

Why did my Firefox lose passwords but keep bookmarks and history?

Your profile likely survived, but the login database pair broke. Passwords rely on two linked files: key3.db and logins.json. If either is corrupted or out of sync, Saved Logins appears empty while bookmarks and history still load. Restoring or substituting these files fixes most cases. “In key3.db you have the key to the logins.json file.” [Elektroda, safbot1st, post #16741366]

Where are Firefox passwords stored on Windows?

Open %AppData%, then go to Mozilla → Firefox → Profiles → your active profile. Inside, find key3.db and logins.json. Confirm the active profile via the profiles configuration file that lists the profile path. Work only in that profile folder when restoring. [Elektroda, dt1, post #16740469]

How do I restore passwords using Windows’ Previous Versions?

  1. Close Firefox completely.
  2. In your profile folder, right‑click key3.db and view Previous Versions; note a suitable date.
  3. Restore key3.db and logins.json to the same date, then relaunch Firefox. If matching snapshots don’t exist, this method won’t help. [Elektroda, dt1, post #16740469]

The dates of key3.db and logins.json differ by one day—try anyway?

Yes. A 1‑day mismatch can still work. Back up current files, then restore both to those available dates and test. If it fails, revert changes and try the .corrupt substitution method next. Always keep backups before changes. [Elektroda, safbot1st, post #16741366]

What is logins.json.corrupt and how do I use it?

Firefox sometimes writes a safety copy named logins.json.corrupt. Back up your profile, delete or rename the current logins.json, then rename logins.json.corrupt to logins.json. Launch Firefox and check Saved Logins. This substitution often restores entries. [Elektroda, safbot1st, post #16741406]

I restored previous versions and nothing changed—what next?

Try substituting the .corrupt file. Back up the folder, remove the current logins.json, and rename logins.json.corrupt to logins.json. Restart Firefox and recheck. This approach succeeded for the original poster after other attempts failed. [Elektroda, safbot1st, post #16741406]

Do I need to close Firefox before restoring files?

Yes. Disable or exit Firefox first, then wait briefly before restoring both files. Restoring while Firefox runs can overwrite your changes or keep memory copies, preventing recovery. Relaunch only after both files match your chosen date. [Elektroda, dt1, post #16740469]

What does “Firefox profile” mean here?

A Firefox profile is your browser’s data folder. It contains settings, extensions, bookmarks, and password files. The active profile is listed in the profiles configuration file, which points to Profiles/. Always operate on that named profile. [Elektroda, dt1, post #16740469]

I have multiple profiles—where else should I look for logins?

Check the Profiles directory for other folders. Review their creation dates and contents. If your active profile looks freshly created, older profiles may hold your previous logins. Examine their key3.db and logins.json files for recovery. [Elektroda, dt1, post #16740469]

When will password recovery fail?

If Previous Versions are unavailable for either file, that path won’t work. The two files are tightly paired; restoring only one usually fails. In that edge case, try the .corrupt substitution or look in other profiles. [Elektroda, dt1, post #16740469]

How can I prevent this from happening again?

Make regular backups of the entire Firefox profile folder. Copy it to external storage or a safe cloud location. This protects passwords, settings, and history together. It’s quick insurance against future corruption or accidental resets. [Elektroda, Kolobos, post #16741436]

Is Firefox Sync useful as a safety net for passwords?

Yes. Create a Firefox account and enable Sync to back up logins, bookmarks, and settings. After reinstalls or formatting, sign back in to restore synced data. Use Sync alongside local backups for redundancy. [Elektroda, Michalxd1232, post #16741455]

How do I verify that recovered passwords are visible in Firefox?

Open Tools → Options → Security → Saved Passwords → View Passwords, then confirm. Use this only to check visibility, not as a recovery method. Hide passwords again when done. This confirms that restoration succeeded. [Elektroda, niuniu7, post #16740246]

Do key3.db and logins.json need to match the same date?

Yes. Restore both to the same snapshot when possible. They work as a pair. Mismatched dates larger than a small gap can break decryption and show no passwords. Keep their restored timestamps aligned for best results. [Elektroda, dt1, post #16740469]

What’s a safe workflow before making any changes?

Back up the entire profile folder first. Then try Previous Versions for key3.db and logins.json. If that fails, test renaming logins.json.corrupt. Always keep a copy of current files to revert quickly. “Copy current files to a safe place first.” [Elektroda, safbot1st, post #16741366]
Generated by the language model.
ADVERTISEMENT