It is possible to import/export two types of data in KeePassDX : * The data in a password database * The properties of the app parameters # Database Importing and exporting databases containing your sensitive data allows you to switch between ecosystems and applications as you see fit. These actions can be performed in several different ways, either by using a dedicated protocol or by manually exporting the data. ## Credential Exchange Format (CXF) This is the safest way to import/export your credentials from/to another file manager, and it's even compatible with Passkeys This is the method that KeePassDX will recommend but is not yet available and currently in development. Follow its progress via the [issue](https://github.com/Kunzisoft/KeePassDX/issues/2705). ## Plaintext It is possible to import and export KeePass database files (.kdbx) in KeePassDX but not plain text (.csv, .json or .xml) files for several reasons. Although this method has been commonly used in the past by other programs, it requires the use of an unencrypted text file containing your login credentials, poses a security risk to your data and does not allow you to transfer your Passkeys from one credential manager to another. **KeePassDX does not and will not offer this plaintext import feature. Instead, it focuses on integrating new secure protocols for data transfer.** But these operations must be done externally to the app. ### Import There are several ways to convert an external database file into a KeePass file with a .KDBX extension, but the best and easiest way is to **use a flat file that can be parsed more easily by the import tools**. So, if you already have another password manager not compatible with KeePass, you must first export your database as a **flat .CSV file**. _Refer to your previous software manual for more information._ #### Import with computer This method is recommended if you own a computer, it allows you to import with a configurable setting all the data from your CSV with a KeePass application that you will be able to use every day on your office machine. :kangaroo: 1. Install [KeePass2](https://keepass.info/download.html) or [KeePassXC](https://keepassxc.org/download/) on your computer. 2. Import your CSV file by following the software instructions. ([KeePass2 guide](https://keepass.info/help/base/importexport.html) or [KeePassXC guide](https://keepassxc.org/docs/KeePassXC_UserGuide.html#_importing_external_databases)) 3. Get your .KDBX file on your portable device to use it with KeePassDX #### Import with browser This method allows you to use only the browser to convert files. Be careful though, some .CSV files are not compatible. :eagle: 1. The first step is to convert .CSV to .XML : * go to https://tibdex.github.io/lastpass-to-keepass/ * upload your .CSV file there then you'll get a .XML file. 2. The second step is to convert .XML to .KDBX : * go to https://app.keeweb.info/ * click open * select your file * click the name of your file at the bottom (it should be keepass.xml) * enter a master password * click save to.. * click file it should download a .KDBX file Now you can open it with your favourite Keepass app _(Thanks to [JavaCoder19](https://telegra.ph/CSV-to-KDBX-05-07))_ #### Hard way This method is very complicated but works only with a phone with F-Droid tools. :rabbit: * Create PRoot environment in [Termux](https://f-droid.org/en/packages/com.termux/) * Install Debian, Xfce4 and used [MultiVNC](https://f-droid.org/en/packages/com.coboltforge.dontmind.multivnc/) to connect to it. I used [AnLinux](https://f-droid.org/en/packages/exa.lnx.a/) for this. * Install firefox-esr in it to get .CSV from your old password manager. * Install KeePass2. It worked fine (KeePassXC don't) * Import .CSV in it, made database and move the file in KeePassDX. _(Thanks to [erwincatt](https://github.com/Kunzisoft/KeePassDX/issues/505#issuecomment-607368072))_ ### self hosted keeweb offline locally on device ``` git clone --depth=1 --branch gh-pages https://github.com/keeweb/keeweb.git cd keeweb python3 -m http.server 8080 ``` Then visit localhost:8080 on your browser ps:requires git and python installed on termux ### Export The export must also be done with an external tool, [KeePass2](https://keepass.info/help/base/importexport.html), [KeePassXC](https://keepassxc.org/docs/KeePassXC_UserGuide.html#_exporting_databases) and [KeeWeb](https://app.keeweb.info/) all offer to convert your .KDBX file into a flat file. # App properties The properties of the application parameters can be exported to be reimported into a new instance of the application. _Note : a KeePassDX property file is compatible with each Free / Pro / Libre version. No data or database metadata is exported with this method._ ## Properties Export To export the properties to a configuration file, just click on `Settings -> App Settings -> Export app properties` and choose a location for the `.properties` file to export. ## Properties Import To import the properties from a configuration file, just click on `Settings -> App Settings -> Import app properties` and select the `.properties` file to import. _**Caution:** After reimporting the properties, you must reselect the autofill service in the system by repeating the [wiki procedure](https://github.com/Kunzisoft/KeePassDX/wiki/AutoFill#set-up). You will need to restart your browser and clear the cache of KeePassDX._