\<bookmark_value\>exporting; XML files\</bookmark_value\>\<bookmark_value\>file formats; XML\</bookmark_value\>\<bookmark_value\>XML file formats\</bookmark_value\>\<bookmark_value\>extensions; file formats\</bookmark_value\>\<bookmark_value\>suffixes in file formats\</bookmark_value\>\<bookmark_value\>document types;XML\</bookmark_value\>\<bookmark_value\>file formats; changing defaults\</bookmark_value\>\<bookmark_value\>default file formats\</bookmark_value\>\<bookmark_value\>file formats;OpenDocument\</bookmark_value\>\<bookmark_value\>OpenDocument file formats\</bookmark_value\>

XML File Formats

By default, LibreOffice loads and saves files in the OpenDocument file format.

Note Icon

The OpenDocument file format (ODF) is a standardized file format used by many software applications. You can find more information at the Wikipedia site: wikipedia.org/wiki/OpenDocument.

OpenDocument file format names

LibreOffice uses the following file formats:

Document format

File extension

OpenDocument Text


OpenDocument Text Template


OpenDocument Master Document


ODF Master Document Template


HTML Document


HTML Document Template


OpenDocument Spreadsheet


OpenDocument Spreadsheet Template


OpenDocument Drawing


OpenDocument Drawing Template


OpenDocument Presentation


OpenDocument Presentation Template


OpenDocument Formula


OpenDocument Database


LibreOffice Extensions


Note Icon

The HTML format is not an OpenDocument format.

ODF Chart is the name of the file format for stand alone charts. This format with the extension *.odc is currently not in use.

Evolution of the OpenDocument format

The OpenDocument format evolves over time.

ODF version

Date of standard approval by OASIS

First supporting version of the software

ODF 1.0


OpenOffice.org 1.1.5 or StarOffice 7

ODF 1.1


OpenOffice.org 2.2 or StarOffice 8 Update 4

ODF 1.2


OpenOffice.org 3, StarOffice 9, Oracle Open Office

ODF 1.2 Extended (compatibility mode)

LibreOffice 3.5

ODF 1.2 Extended

OpenOffice.org 3.2 or StarOffice 9.2

ODF 1.3


LibreOffice 7.0

ODF 1.3 Extended

LibreOffice 7.0

In current versions, you can select to save your documents using ODF 1.2 or ODF 1.0/1.1 (for backward compatibility). Choose - Load/Save - General and select the ODF format version.

Tip Icon

If you want to define another file format as the default, choose - Load/Save - General to find alternative file formats for each LibreOffice document type.

XML file structure

Documents in OpenDocument file format are stored as compressed zip archives that contain XML files. To view these XML files, you can open the OpenDocument file with an unzip program. The following files and directories are contained within the OpenDocument files:

  1. The text content of the document is located in \<emph\>content.xml\</emph\>.

    By default, content.xml is stored without formatting elements like indentation or line breaks to minimize the time for saving and opening the document. The use of indentations and line breaks can be activated in the Expert configuration by setting the property /org.openoffice.Office.Common/Save/Document PrettyPrinting to true.

  2. The file \<emph\>meta.xml\</emph\> contains the meta information of the document, which you can enter under \<emph\>File - Properties\</emph\>.

    If you save a document with a password, \<emph\>meta.xml\</emph\> will not be encrypted.

  3. The file \<emph\>settings.xml\</emph\> contains further information about the settings for this document.

  4. In styles.xml, you find the styles applied to the document that can be seen in the Styles window.

  5. The \<emph\>meta-inf/manifest.xml\</emph\> file describes the structure of the XML file.

Additional files and folders can be contained in the packed file format.

Definition of the XML formats

The schema for the OpenDocument formats can be found on the www.oasis-open.org web site.

Please support us!