|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
KeePass 1.x supports importing data from CSV files (special form), CodeWallet, Password Safe, and Personal Vault. KeePass 2.x supports importing data from CSV files (all), KeePass 1.x (KDB, XML and CSV), KeePass 2.x XML, 1Password, 1Password Pro, 1PW, Alle meine Passworte, Any Password, Bitwarden, CodeWallet, Dashlane, DataVault, DesktopKnox, Enpass, FlexWallet, Google Chrome, Handy Safe, Handy Safe Pro, Kaspersky Password Manager, KeePassX, Keeper, Key Folder, LastPass, Mozilla Bookmarks, mSecure, Network Password Manager, Norton Identity Safe, nPassword, PassKeeper, Passphrase Keeper, Password Agent, Password Depot, Password Exporter, Password Keeper, Password Memory, Password Prompter, Password Safe, Password Saver, Passwords Plus, Passwort.Tresor, Personal Vault, PINs, Revelation, RoboForm, SafeWallet, Security TXT, SplashID, Steganos Password Manager, Sticky Password, True Key, TurboPasswords, VisKeeper, Whisper 32, ZDNet's Password Pro, and Spamex.com. For both KeePass 1.x and 2.x, there are plugins available that add more import/export capabilities.
Unfortunately, there is no standard password database format. Every password manager uses its own file format. Anyway, almost all support exporting to CSV or XML files. This sounds good at first glance, but CSV and XML files are not specialized password database formats, they only specify a low-level layout of the stored data (for CSV: data fields are separated by commas; for XML: hierarchical form using tags). These formats do not specify the high-level arrangement of the data (for CSV: order/meaning of the fields; for XML: tag names and structure). Because of this, many users are confused when application #1 exports data to CSV/XML and application #2 cannot read the CSV/XML file, although it claims that it can read those files. This help page details the expected CSV and XML file formats. Knowing the formats which KeePass expects, you can reformat CSV and XML files exported by other password managers to match the KeePass formats. CSV files can be reformatted using e.g. LibreOffice Calc (see below). XML files can be reformatted using an XML editor. KeePass can import many password database formats directly (see top of this page). Additionally, there are specialized KeePass plugins available for importing more formats (like AnyPassword CSV, Oubliette files, PINs TXT, ZSafe files, and many more). Using these plugins, you do not need to manually reformat the output of other password managers; you can directly import the exported files. If no import plugin exists for importing data from your previous password manager, feel free to post a request for it in the KeePass Feature Requests Tracker or in the Open Discussion forum. File Format: CSV (KeePass 1.x)KeePass imports and exports data from/to CSV files in the following format:
The 'Account' field in a CSV file corresponds to the title field of a KeePass entry, 'Login Name' corresponds to the user name, 'Web Site' corresponds to the URL, and 'Comments' correspond to the notes. The CSV field names differ from the KeePass entry field names in order to ensure the compatibility with certain other applications. For a detailed example, download this file: FileSample_CSV.zip. This file is zipped only in order to ensure correct encoding (if not zipped, browsers or download managers could automatically convert the file to a different encoding). When importing a CSV file, it must not be zipped! Important notes about the format:
Microsoft Excel by default does not enclose fields in quotes ( If you want to transfer data between KeePass 1.x databases, you must not change the default export options of KeePass. Do not export additional fields or uncheck any options, otherwise KeePass will not be able to re-import the CSV file, because it does not comply to the specification above any more. Using LibreOffice Calc to create a CSV file:
File Format: XML (KeePass 1.x)This section describes the KeePass 1.x XML format. Note that this format is different from the XML format used by KeePass 2.x (anyway, KeePass 2.x can import KeePass 1.x XML files). You can download a detailed XML sample file here: FileSample_XML.zip. This file is zipped only in order to ensure correct encoding (if not zipped, browsers or download managers could automatically convert the file to a different encoding). When importing a XML file, it of course must not be zipped! Important notes about the format:
Generic CSV ImporterKeePass 2.x features a generic CSV importer. This tool can import almost all CSV formats. The CSV files are loaded and you can manually specify the encoding / character set, assign columns to data fields, and specify how the low-level structure looks like (usage of quotes, etc.). To start the generic CSV file importer, click 'File' → 'Import' and choose 'Generic CSV Importer'. Details about the generic CSV importer (with descriptions of the options, examples, etc.) can be found on the Generic CSV Importer help page. How to Import CodeWallet TXTCodeWallet is a password manager that supports different card types (fields). KeePass cannot know which of the CodeWallet fields correspond to the KeePass standard fields (title, user name, ...), because they don't have fixed names (language-dependent, user-customizable, ...). Therefore all fields from the CodeWallet file are imported into custom string fields of KeePass entries. After importing the file, you can move some of the strings to the correct standard fields (by clicking the 'Move' button on the second tab page of the entries dialog. How to Import PINs TXTIn order to successfully import a PINs TXT file, you need to do the following:
After exporting a TXT file using the settings above, import it using 'File' → 'Import' in KeePass 2.x. How to Import Data from RoboForm
How to Import Data from Steganos Password Manager 2007Warning! It is possible that the transfer fails and that KeePass accidently overwrites your existing passwords in Steganos Password Manager. Therefore, back up your SEF file before starting the import! In any case you should restore your passwords by restoring the backup you just created after the import process! Even if you think KeePass hasn't changed anything, restore from the backup! Unfortunately Steganos Password Manager (SPM) lacks any form of export functionality. As the SEF file format (in which the data is stored) is proprietary and no specification is available, KeePass needs to try to get all the data out of the windows of SPM. The import process works as follows. First you start SPM and open your password database. The main password management window should be open (i.e. the one which lists your items in the middle of the screen, and got toolbar-like buttons at the top). Make sure that all your items are displayed in the list (select the correct filter in the combobox above the item list). Now switch to KeePass 2.x and open your KeePass database. Click 'File' → 'Import' and choose 'Steganos Password Manager 2007'. Click [OK]. Now read the rest before continuing. After pressing the [Yes] button in the KeePass import confirmation dialog, you got 10 seconds to switch to the SPM window. Select the very first entry within the SPM window (but do not open it, just select it). This is important! The first entry must have the keyboard focus and must be selected. When the 10 seconds are over, KeePass will start importing. You will see how KeePass opens the SPM items, copies the data, closes the item's window, select the next item, etc. Everything goes automatic now and you can just sit back and watch. Sometimes Windows playes a ding sound, this is normal. Note that it can take quite some time to import your items. Do not do anything while KeePass is importing! One single mouse click or keypress can ruin the complete import process. The last item will be scanned twice. When completed, KeePass will show a message "The import process has finished!". It is possible that KeePass failed to import some items (mainly caused by SPM's unpredictable slow response times). It is highly recommended that you compare each of the entries. How to Import Data from PassKeeper 1.2The import process works visually, exactly like the import method for Steganos Password Manager data. Please read all instructions in How to Import Data from Steganos Password Manager 2007. How to Import 1PW and 1Password Pro CSVKeePass can import CSV files exported by 1PW and 1Password Pro. When exporting the data, make sure:
Export: Option 'Additionally Export Parent Groups'In KeePass 2.x, there is an option 'Additionally export parent groups' in the export dialog. If this option is turned on, the parent groups of the selected groups/entries are exported, too (all up to the root group of the database). Unselected groups/entries in parent groups are not exported. If the selected file format does not support groups, the option has no effect. When exporting the whole database (via 'File' → 'Export') or the root group, the option is disabled, because the root group has no parent group. Properties of the parent groups (icons, notes, auto-type settings, etc.) are exported, if the selected file format supports them. When importing a file, the properties of the groups in the current database may be overwritten by the properties of the groups in the file (depending on the import mode and the last modification times). Example. Assume that the user selects the entry 'Entry B' that is stored in the groups 'Group 1' → 'Group 1.2' of a database.
Exporting the selected entry (via 'Entry' → 'Data Exchange' → 'Export Entry') to a KDBX database file without turning on the option results in:
In contrast, exporting the selected entry to a KDBX database file with the option turned on results in:
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||