## Exporting Entries

Password Safe supports exporting (and importing) of the stored passwords to (and from) various formats. To export data use the File->Export To menu. The supported formats are:

- Password Safe v1 (for use by versions 1.x of Password Safe)
- Password Safe v2 (for use by versions 2.x of Password Safe)
- Plain text
- XML

For previous versions of Password Safe, just select the desired format and specify the name of the database file you wish to create.

In addition, to 'export' a subset of entries to another Password Safe database, just start Password Safe (assuming you permit multiple instances via Manage->Options->System tab) and create a new database, whilst having your normal database open in another instance. Then you can simply drag and drop any entries or groups from your open database to this 'export' database.

### Text Export

Note: The exported text is an unprotected copy of the specified password entries. Deleting this copy after use is not sufficient for making it inaccesible to a determined attacker, and in effect bypasses the security of the program.
Please DO NOT use this function unless you understand and accept the risks.

Password Safe allows you to export password entries to text files. These files may then be used or modified by other applications.
You will first be asked to enter the master password or safe combination to confirm that you may export the database into a clear text unencrypted file.

You can also specify some options:

- Password entries will be exported with a tab character between fields i.e., between the Group.Title, Username, Password and the Notes fields. The "Group.Title" is considered a single field. Any field containing a blank will be output inside double quotation characters. Only the Notes field can contain multiple line entries. The normal processing is to place each Notes line on a separate line in the exported text field. However, this makes it difficult to sort or to use when comparing two different export files. To overcome this, you may specify a delimiter to separate multiple lines when exporting them. If you are going to import a text file created with such a delimiter, then it must be specified, all the Notes lines will appear as one single line in the resulting database.
  If required, tick that you want to put all separate lines in the Notes field onto one line and enter the character to be used as the delimiter. Since the whole Notes field is enclosed between double quotation marks, this character is prohibited from being selected as the multi-line delimiter.

- Even more control on the exported format may be specified by clicking on "Advanced". The following dialog box will appear:

This dialog box allows you to export only some of the entries, based on the text in specified fields, and/or specify which fields are to be exported. Click OK when you have finished, or Cancel to return to the Export Text dialog box without any changes.

You will then be asked to supply the name of the new file and to confirm overwriting a file of the same name if it already exists in the directory you specified.

Note: Details on the format of the exported text file may be found in the "Plain Text Export & Import Format" section.

### XML

XML (eXtensible Markup Language) is a popular format for transferring data between applications. Password Safe can export (and import) the database entries to this format. The structure (or schema) against which the data is exported and validated is defined in the file pwsafe.xsd, which is provided as part of the distribution. This file is used by Password Safe when XML data is imported, and should be provided to applications that wish to use the exported data.

Note: The exported text is an unprotected copy of the specified password entries. Deleting this copy after use is not sufficient for making it inaccesible to a determined attacker, and in effect bypasses the security of the program.
Please DO NOT use this function unless you understand and accept the risks.

The display of XML files is specified by pwsafe.xsl - an eXtensible Stylesheet Language file. A sample file, which may be modified for your own needs, is supplied as part of the distribution. This file is only an example and you can easily modify it to display whatever fields you want to show. As this only displays the data and will not alter it, you will still be able to import it into Password Safe at some later time.
As in the Text Export option, you can control what entries and field to export to the XML file by clicking on the Advanced button in the Export XML dialog box. This will display the following dialog box:

This dialog box allows you to export only some of the entries, based on the text in specified fields, and/or specify which fields are to be exported. Click OK when you have finished, or Cancel to return to the Export XML dialog box without any changes. Note that the XML schema requires the Title and Password fields, hence these cannot be deselected.

You will then be asked to supply the name of the new file and to confirm overwriting a file of the same name if it already exists in the directory you specified.