For many people, a KeePass database is the single file that holds every password they own. When that .kdbx file is deleted, will not open, or was sitting on a laptop or external drive that has just died, the panic is real. The good news is that the file is often still somewhere: in a backup, a sync folder, another device, or on the failed drive itself. This guide explains where to look, what to avoid, and what a data recovery lab can and cannot do for a lost KeePass or KeePassXC database.
First, find out where your database actually lived
KeePass and KeePassXC store everything in a single file with the .kdbx extension (older KeePass 1.x databases use .kdb). There is no fixed location: the file is wherever you saved it. Common places include:
- Your Documents folder, often named something like Database.kdbx or Passwords.kdbx.
- A Dropbox, OneDrive, Google Drive or iCloud Drive folder, so the file syncs between computers.
- A USB flash drive you carry around, or a NAS on your home or office network.
- A phone app such as KeePassDX, Strongbox or KeePassium, which keeps its own copy or a cached copy of the file.
If KeePass or KeePassXC still opens on the computer, check the recent files list (File menu), which shows the path of databases you opened before. On another device you used with the same database, that list can point you to a forgotten copy.
Places to check for a copy
- The Recycle Bin or Trash, if the file was deleted by accident.
- Cloud version history. Dropbox, OneDrive and Google Drive keep previous versions and deleted files for a limited time. Log in through the web and restore an earlier version of the .kdbx file.
- Backup files next to the database. Look in the same folder for files with .old, .bak or a date in the name. KeePassXC can be set to keep a backup copy before saving, and some KeePass setups use plugins or triggers to do the same.
- Your phone or tablet, if you use a KeePass-compatible app there.
- Windows File History, Time Machine or other backups of your user folders.
- Old USB drives and computers. An older copy will be missing recent changes, but it is far better than nothing.
When you find a candidate, copy it somewhere safe before opening it, and never overwrite the only copy you have.
If the database says it is corrupted
A database that suddenly will not open, or shows an error that the file is damaged or cannot be read, is usually the result of an interrupted save (a crash, a sync conflict, a USB stick pulled out too early) or a failing drive. Steps to take:
- Check that you are using the right master password and, if you use one, the right key file. A wrong key can produce errors that look like corruption.
- Look in your sync folder for conflict copies (Dropbox, for example, names them “conflicted copy”) and try opening those.
- Check the file size. A file of 0 bytes, or far smaller than you would expect, means the content did not save; look for an earlier version instead.
- Do not keep re-saving or “repairing” the only copy. Work on duplicates.
When the database was on a failed drive
If the file was on a laptop, external hard drive, SSD or USB stick that has stopped working, stop using that device. Do not run CHKDSK, Disk Utility First Aid or free recovery software on it, and do not keep plugging it in to see if it comes back. A failing drive can get worse with every attempt, and a .kdbx file is small enough that even a partly damaged drive often still holds a complete copy.
At our lab, an engineer evaluates the device and gives you a fixed quote, and recovery starts only when you approve it. We always work from a copy of the drive, not the original, and search it for .kdbx files, including deleted ones and older copies. Read more about our hard drive data recovery, deleted file recovery and mail-in service for customers anywhere in the US.
What recovery cannot do: the master password
It is important to be clear about this. KeePass databases are strongly encrypted. Data recovery can get the file back from damaged or deleted storage, but it cannot unlock a database whose master password you have forgotten, and we will not attempt to break into one. The same applies to a lost key file: if your database was protected with a key file and every copy of it is gone, the database cannot be opened. That is why your key file deserves the same backup care as the database itself.
Protecting your password database from now on
- Keep at least two copies of the .kdbx file in different places, for example your computer plus an encrypted backup drive or cloud backup.
- Back up the key file too, if you use one, and store it separately from the database.
- Enable the backup-before-save option in KeePassXC, or a backup plugin or trigger in KeePass.
- Write your master password down and keep it somewhere physically secure, such as a safe, if losing it would lock you out of everything.
- Test now and then that a backup copy actually opens.
Need to get your KeePass file back?
If your password database was on a drive that has failed or been wiped, call Data Retrieval at (323) 705-3997 or book a data recovery evaluation. We serve Los Angeles, the Inland Empire and Ventura County, and accept mail-in drives from across the US.
