KeePass Password History: How to View, Restore or Delete Old Passwords

KeePass keeps a password history for every entry. To see it, double-click the entry to open Edit Entry and switch to the History tab: it lists each earlier version with its date and time, and lets you view, restore or delete it. This works in KeePass 2.x on the desktop.
This page covers where the history lives, what the buttons do and how to limit how much history KeePass stores.
How to see the password history in KeePass
KeePass creates a history entry automatically every time you modify an entry, and the history holds the previous data. You can open it in four steps:
- Open KeePass and unlock your database.
- Double-click the entry to open the Edit Entry dialog.
- Select the History tab.
- Pick a version from the list; each one is shown with its date and time.

Buttons next to the list let you view the selected version (handy for copying an old password), delete it, or restore it. This helps when a password change did not go through, or when you need an old password for a local account or an archive.
How much history does KeePass keep?
KeePass limits both the number of history entries per entry and the history size per entry to reasonable values, and you can change those limits under File > Database Settings. To clean up in bulk, use Tools > Database Tools > Database Maintenance, which deletes all history entries older than a number of days you choose. Deleting a single version is done on the History tab.
Old passwords stay in your database file, encrypted like everything else. If a password was part of a breach, change it first and then delete the old versions you no longer need. You can check all KeePass passwords against the Have I Been Pwned database locally to find the ones worth changing.
Why KeePass history matters
KeePass is a powerful password manager for the desktop that is available for Windows officially and through forks for other operating systems. It stores your database locally, so you stay in control of where your passwords live. Features such as the history, plugins and a system-wide auto-type shortcut make it flexible.
Related: KeePassXC passkey support and database imports, Bitwarden Argon2 KDF settings
Agree.
I also feel better syncing my database with any cloud i like.
But need to mention i searched before and the renaming of keepass database (for ex. Changing its type) don’t work much as keepass databases have a header that can easily found by cloud owners so don’t rely on it but it is better than nothing :)
For securing your database i recommend you to change the key derivation function of your database to Argon2. About its setting is in database settings after you opened your database and about the numbers for argon2 read this:
https:/https://crypto.stackexchange.com/questions/43388/how-to-configure-argon2d-for-commodity-hardware/crypto.stackexchange.com/questions/43388/how-to-configure-argon2d-for-commodity-hardware
Any particular reason you for using KeePass rather than KeePassXC? I would be interested in a comparison review.
Nice article Martin and some cool tips from Clairvaux. I’d also suggest a guide for Auto-Type. Many people still do not know about it, and keep struggling with KeePass browser plugins which can be obscure to locate, maintain and install and can also be potentially unsafe.
I used KeePass for years (maybe 10 or 15) but switched to Bitwarden https://bitwarden.com/ a few months ago after I read here on ghacks about Bitwarden posting results of it’s security audit https://www.ghacks.net/2018/11/13/results-of-bitwarden-security-audit-published/
Bitwarden is open-sourced and is so much easier to use than KeePass, and works on all my pc’s (has a windows client) and browsers (brave, firefox and chrome) and my android stuff. Again, Keepass was a pain to keep synced with all my devices on my NAS. Bitwarden also has password history and ability to check password against haveIbeenpawned built in too. Plus there is a free version that works for me (am thinking of grabbing a Premium though to support them eventhough don’t really need premium features)
I’m not sure about Bitwarden because you need to place your encrypted passwords in their cloud service. With Keepass, I can place my passwords in Onedrive, Dropbox, etc., and I can also name the file I place it in anything I want, to further hide or disguise it. Am I incorrect about this?
BitWarden gas zero-knowledge into one’s password. They can’t access them simply because they are on their server (which also means one could get permanently locked out of one’s account if forgetting login credentials and/or 2FA tokens), and if someone hacks their server they would need to hack your database as well, just like they would with a breached KeePass’ kdbx file on DropBox for example.
Also, you can self-host BitWarden and avoid the cloud, but it’s less trivial then running KeePass.
I’ve been using KeePass for ages and it’s still a brilliant piece of software. I’ve avoided any cloud-based solution and didn’t even sync’ed KP through the cloud but VPN’en into my own server to connect to the database. However, I would have preferred a more streamlined solution and after looking into BitWarden quite extensively I was convinced it offers the same level of security as KP + cloud sync, plus more convenient and streamlined to use for my neefs (which is completely subjective so one’s miles may vary).
BitWarden is not perfect, though. It still has maturity issues, missing or a little rough around the edges features. Development seems committed though, and with a little patience I trust it’ll continue to mature nicely.
Wow, I didn’t know this. This would have saved me some grief in the past. Good to know now.
Wow. i never knew about this function. I used notes area for the same. This is so much easier and best of all no chance of forgetting to do it. Thanks a lot for the tip :)
You’re welcome. The best thing in those custom fields, saved in the Advanced tab, is you can then right-click on any entry, click Copy Field, and then the list of all your custom names for those fields drops down.
Just click on the one you want, and the relevant value is copied in your clipboard. You can then paste it wherever it’s needed.
I was having trouble with Kee Pass. It was very slow to save (2 minutes !), and one of my most accessed entries began to behave erratically. To the point I thought I had mechanical mouse problems.
I asked the Kee Pass forum, and finally found that the culprits were one or two attachments that were too big, and made up the bulk of my password database. One of them was a pdf manual for some software, that I really did not need there. Nice to have, but not more.
A Kee Pass database is very small. Mine is 2,5 MB, after getting rid of those attachments. Before, it was 47 MB, and that is way too big, according to the developers. I have many entries. Don’t know how many, not sure Kee Pass displays that figure. Everything goes in there : software license codes, hard disks serial numbers…
Use the Find / Large Entries to check.
Actually, it’s better not to attach files at all (unless they are really small). You can store, instead, the path to the file on your computer. Edit Entry / Advanced / Add. Name = whatever you like, Value = the path of the file. You’ll need to copy it from Windows Explorer, there’s no way to browse from within Kee Pass at that point. Then to open the file, you’ll need to copy the path and paste it into Windows Explorer again.
Another hidden place where unneeded baggage can increase the size of the database dangerously is History.
History keeps everything from past versions of entries, so if, at some point, you affixed a large attachment to an entry, then deleted it from ulterior versions, it will lurk there. Fortunately, attachments are not duplicated across history. There’s only one copy of each.
Use Find / Large entries, then check the History of the largest offenders. Fortunately, History displays the size of each past version, so anything unusual will show there immediately.
You can also act preventively and forbid History from taking too much space.
File / Database Settings / Advanced, Limit Number of History Items per Entry, or Limit History Size per Entry.
Many of those features are hard to find. History limits should be in Options, not in Database Settings. Options is where most people will head to find such adjustments. That’s the amateurish side of Kee Pass, which is still showing very much, after all those years.
I am using a very old pw manager, though updated at regular base. It runs on windows, but with wine, I have made it working on my Ubuntu as well.
It sits on my computer, encrypted, and I have a backup on usb and other computer all encrypted as well and I have a very strong master pw.
The name I have never read in any reviews on PW managers, so I hope that if my notebook gets compromised, the culprit will by the programs-name not even be able to start my pw manager. let alone get it opened without my master pw.
It misses, however the luxury of pw auto fill etc. , So I might give KeePass a read and decide whether to upgrade or not.