skip to Main Content

How to merge two KeePass databases

KeePass password manager supports unlimited number of databases that users can use. Some users may use different databases to separate different types of accounts, for example, work and personal accounts, others may use KeePass on multiple devices without any form of synchronization.

Although it is relatively easy to use synchronization, for example by placing the database file in a folder which is automatically synchronized with the cloud on all devices or by using plugins for this purpose, it can happen that password databases have different entries.

KeePass includes powerful options for merging multiple databases. To do this, it is sufficient that all the databases are accessible on the same device and that KeePass is available.

Merge multiple KeePass databases

KeePass comes with built-in sync functionality. Users can synchronize databases using local files or using URLs. Before examining the process itself, it is important to understand the synchronization logic of the application.

KeePass’s sync algorithm merges matching input levels when sync is invoked. The application uses the last modified date as the primary data point to decide the recency of entries. KeePass automatically keeps track of it each time an entry is added or modified.

The app uses its history feature when it merges entries. Suppose the same login is available in two databases, but with different passwords. KeePass will merge them and set the default newest username and password after the synchronization process is complete. All other entries are stored in the history, so that they are not lost and can be consulted when needed.

To note: It is recommended to create database backups for security reasons. Although things are unlikely to go wrong, it is always better to have a backup for restoration purposes.

  1. To start merging databases, open KeePass and load one of the databases you want to merge.
  2. Select File > Synchronize.
  3. Decide if you want to merge the loaded database with a local file (Synchronize with File) or with a remote file (Synchronize with URL).
  4. Simply select the local file if you chose that option. KeePass merges the two databases and displays a short notification in its status bar about the process. If you see “Synchronization completed successfully” you are good to go and everything should have been merged.
  5. The “by URL” option works the same way, except you need to type in the URL that points to the KeePass database file. You can also add a username and password, in case access is restricted.

Closing words

The built-in synchronization feature is useful when it comes to manually merging two databases. KeePass users who want permanent database synchronization can check out the plugins available to do so.

Now you: How do you manage password databases on different devices?


How to merge two KeePass databases

Article name

How to merge two KeePass databases

The description

Learn how to merge two KeePass password manager databases to synchronize all password entries.


Martin Brinkman


Ghacks Technology News



Back To Top