ODF

On this page 7

ODF, the OpenDocument Format for Office Applications, is an open, XML-based file format standard for word-processing documents, spreadsheets, presentations, drawings and related office files. In office applications, ODF is the vendor-neutral alternative to the Office Open XML family (DOCX, XLSX and PPTX): it is developed at the OASIS standards consortium and published as the international standard ISO/IEC 26300.

ODF is the native format of LibreOffice and several other office suites, and mainstream commercial suites can open and save it as well. Its purpose is to keep documents readable and editable regardless of which program or vendor created them, which makes it particularly relevant for public administration, archives and organizations that need long-term access to their records.

How an ODF document is built

An ODF file is a ZIP package containing XML files and any embedded resources. Renaming a file such as report.odt to report.zip and opening it reveals its internal structure, which is one reason the format is considered transparent and suitable for automated processing.

PartContentPurpose
mimetypePlain text media type, stored first and uncompressedLets tools identify the file quickly
content.xmlDocument text, cells, slides and their structureThe actual document content
styles.xmlParagraph, page and cell stylesSeparates formatting from content
meta.xmlTitle, author, dates, statisticsDocument metadata
settings.xmlView and application settingsRestores zoom, cursor and similar state
META-INF/manifest.xmlList of all files in the packageDeclares parts, encryption data
Pictures folderEmbedded images and mediaKeeps resources inside the file
Main parts of an ODF package

ODF also defines a flat XML variant in which the whole document is a single uncompressed XML file, for example with the .fodt extension. It is larger but convenient for version control systems and text-based comparison tools.

Document types and file extensions

ODF covers the full range of typical office documents with one consistent architecture. Each document type has its own extension and media type, and a matching template variant.

ExtensionDocument typeTemplate extensionClosest Office Open XML equivalent
.odtText document.ottDOCX
.odsSpreadsheet.otsXLSX
.odpPresentation.otpPPTX
.odgDrawing.otgNo direct equivalent
.odfFormulaNot commonly usedEquations embedded in DOCX
.odbDatabase front endNot applicableNo direct equivalent
ODF document types

Spreadsheet formulas are defined by OpenFormula, part of the standard since ODF 1.2, which specifies function names, argument types and calculation rules. This matters because a spreadsheet is only portable if its formulas produce the same results in every application.

ODF compared with Office Open XML

ODF and Office Open XML share the same basic design, ZIP packages of XML parts, but differ in origin, governance and practical compatibility.

AspectODFOffice Open XML
Standard bodiesOASIS, ISO/IEC 26300Ecma 376, ISO/IEC 29500
OriginBased on the StarOffice and OpenOffice formatBased on Microsoft Office formats
Design emphasisReuse of existing standards, such as SVG and MathMLFidelity with legacy binary documents
Native inLibreOffice and several other suitesMicrosoft Office
Main strengthVendor neutrality and long-term archivingWidest use in business exchange
ODF and Office Open XML side by side

In everyday work, the choice is often driven by what correspondents use rather than by technical merit. Conversion between the two families generally preserves text and basic formatting well, while complex layouts, macros, advanced charts and certain formula functions can change appearance or behavior after conversion.

Versions and adoption

ODF has evolved through several versions, each adding features while preserving backward compatibility for documents written to earlier versions.

  • ODF 1.0 (2005 at OASIS, 2006 as ISO/IEC 26300) established the package structure and core document types.
  • ODF 1.1 added accessibility improvements and smaller corrections.
  • ODF 1.2 introduced OpenFormula, richer metadata, digital signatures and stronger encryption, and was later adopted by ISO.
  • ODF 1.3 added features such as OpenPGP-based encryption and document signing improvements, plus further spreadsheet functions.

Many governments and public bodies require or prefer ODF for editable documents exchanged with citizens or for internal records, because an open standard prevents a public archive from depending on a single vendor. Archives value ODF for the same reason: the specification is public and free to implement without royalties.

Practical pitfalls

Most problems with ODF come from differences between implementations, not from the format itself. The table shows recurring issues and how to avoid them.

ProblemTypical causeRemedy
Layout shifts in another suiteDifferent fonts or layout enginesEmbed or standardize fonts
Formula returns an errorFunction unsupported by recipientUse widely supported functions
Macros do not runMacro languages differ between suitesAvoid macros in shared files
Tracked changes look differentPartial support in some applicationsAccept changes before exchange
Archive file needs fixed appearanceEditable format can reflowStore a PDF/A copy alongside
Common ODF issues and remedies

A further subtlety concerns which ODF version an application writes. Suites usually save the newest version they support, sometimes with their own extensions, while older programs may expect an earlier version. Where documents travel between organizations, it is worth checking the save settings and testing round trips in the recipient’s software before relying on complex features.

Explained without jargon

ODF is a common language for office documents that no single company owns. Letters, tables and slide shows saved in it can be opened by many different programs. That stays true today and many years from now.

It works like a standard electrical plug. Any manufacturer can build a device that fits the socket. Nobody has to ask permission or pay a fee. The result is that your documents stay yours, whichever program you use next.

A typical use case

A regional public authority publishes application forms that citizens fill in and send back. Some citizens use commercial office software, others use free suites on older computers, and a few use only a web-based editor. To avoid requiring any particular product, the authority publishes editable forms as .odt files and fixed copies as PDF.

Internally, the authority stores its working documents in ODF and archives final versions as PDF/A alongside the ODF originals. During testing, a budget spreadsheet showed a formula error in one suite because it used a function specific to another vendor. Staff replaced it with a standard function defined in OpenFormula. The outcome is forms that every citizen can open and records that do not depend on any single vendor’s software remaining available.