Legacy File Converter logoLegacy File Converter
History Lesson9 min read

History Lesson: What Is a .fodt File? The OpenDocument That Isn’t Zipped

LibreOffice’s Flat XML ODF Text Document: the whole of a .odt written out as one plain XML file — no ZIP, pictures included as text — a form the standard allowed from early on, which converters, scripts, and version-control users quietly kept alive.

·By the Legacy File Converter team
A long cream scroll of paper unrolling beside an opened teal zip pouch, a small amber gear, and two stacked document sheets on navy, no logos

TL;DR

A .fodt file is a Flat XML ODF Text Document: an OpenDocument Text file (the format behind .odt) written out as one single XML file instead of a ZIP package. The OpenDocument standard has always allowed both forms. A Sun engineer showed in 2005 how to load such files through a do-nothing style sheet; a 2007 patch by Fridrich Štrba turned that into real load-and-save filters, which LibreOffice carries today. The files are larger than .odt but readable as text, which is why developers, document generators, and version-control users still save them.

What is a .fodt file?

Most OpenDocument files are packages. Open a .odt in a ZIP tool — the archive format Windows uses for compressed folders — and you find separate XML files for the text (content.xml), the styles (styles.xml), the properties (meta.xml), and the window settings (settings.xml), plus any pictures as their own files. XML (Extensible Markup Language) is the tag-based text format all of those parts use. The story of that package is in History Lesson: What Is a .odt File?.

A .fodt throws the box away. The OASIS OpenDocument standard says a document can be represented in two ways: “A single XML document” or “A collection of files within a package.” In the single-file form the root element — the outermost tag — is office:document, and it “contains the entire document”: properties, settings, fonts, styles, and body together. The Library of Congress, which keeps format descriptions for its digital collections, calls this Flat ODF and points to it in ODF 1.1 and in clause 3.1.2 of ODF 1.2 Part 1. The standard does not reserve an extension for it; .fodt is the one LibreOffice uses, with .fods, .fodp, and .fodg for the spreadsheet, presentation, and drawing versions.

Tell them apart in two seconds

Open a copy in Notepad. A .odt starts with the letters PK, the ZIP signature, followed by unreadable bytes. A .fodt starts with an XML declaration and then a long office:document tag full of namespace addresses, and you can scroll down to find your own sentences in plain text.

How the bytes work

Because nothing is compressed, every paragraph sits in the file as a text:p element and every heading as text:h, readable in order from top to bottom. Pictures cannot stay as separate files, so Štrba’s talks on the format describe them being inlined as base64 — binary data spelled out in ordinary letters and digits — inside the XML. That is why a .fodt with photos is usually much larger than the same .odt.

The flat form also changes how software reads it. A ZIP file keeps its table of contents, the central directory, at the very end, so a reader has to reach the end of the file and jump back to find each part. Štrba’s 2012 slides point out that a flat file can be parsed sequentially, start to finish, even as it streams in. One detail matters more than people expect: for a text document the root element must carry office:mimetype="application/vnd.oasis.opendocument.text". In September 2011 a developer writing an AsciiDoc-to-ODF tool reported on the LibreOffice users’ list that his files opened as plain text until he added that attribute.

2005–2010: a workaround becomes a filter

The single-file form was in the standard before office suites offered it in Save As. In December 2005 a user asked the OpenDocument users’ list why OpenOffice.org 2.0 called his hand-merged single-file document corrupt. Lars Oppermann, a StarOffice engineer at Sun Microsystems in Hamburg, replied that by default OpenOffice.org could not open these “so-called flat-xml-files,” and attached a short identity XSLT — a style sheet that copies XML through unchanged — to register in the XML filter dialog as a do-it-yourself import and export.

On 2 July 2007 Fridrich Štrba committed odf-flatxml-import-export.diff to ooo-build, the patch set behind several Linux distributions’ OpenOffice.org packages, with the note: “xslt filter to load and save documents as valid flat xml odf.” A 30 September 2010 commit registered the four flat filters — text, spreadsheet, presentation, and drawing — in the build. In November 2013 a LibreOffice contributor proposed renaming the Save As entry from “OpenDocument Text (Flat XML)” to “Flat XML ODF Text Document”, the label LibreOffice shows today. LibreOffice’s filter table lists it under the media type application/vnd.oasis.opendocument.text-flat-xml.

Old Windows installs may treat it as text

On the LibreOffice users’ list in 2011, people reported that .fodt files opened correctly on Linux but as plain text on Windows, and one long-time user recalled that the flat XML filters were an optional install on Windows. If an older office suite shows you raw tags, the file is usually fine; that installation simply lacks the flat filter.

Why programmers liked the flat file

In his 2012 LibreOffice Conference talk, “Flat ODF as the Swiss Army Knife,” Štrba listed the reasons. You need no unzip tools to read or write one, so a script or an XSLT style sheet can generate a document directly. And because a flat file is “a text file after all,” version-control systems such as Git can show line-by-line changes between drafts instead of treating each save as an opaque binary blob — his example was LibreOffice’s own templates, stored in a Git repository.

Flat ODF also works inside LibreOffice. Štrba explained in 2013 that filters written for the program can simply produce a flat OpenDocument stream and hand it over, and that the libwps (Microsoft Works) and libmwaw (old Macintosh formats) import filters work that way. So many legacy documents briefly pass through the same shape as a .fodt on their way into LibreOffice. The trade-off is size and familiarity: the files are bigger, and outside LibreOffice few programs list .fodt at all. Microsoft’s instructions for OpenDocument in Word describe the zipped .odt only.

Why .fodt files still sit on disks in 2026

The OpenDocument 1.4 standard, approved by OASIS on 6 October 2025, still defines the single-XML-file form, and LibreOffice still offers Flat XML ODF Text Document in Save As. The files that turn up today usually come from one of three places: documentation and templates kept in Git so changes can be reviewed, reports generated by scripts that write XML directly, and people who chose the flat option once and kept saving that way. When those documents leave the team that made them, the person receiving them often has Word and no idea what a .fodt is.

Legacy File Converter lists .fodt (OpenDocument Text, flat) among supported documents on Supported File Types and converts it on your own Windows PC — to DOCX, PDF, RTF, TXT, Markdown, or HTML — without uploading it anywhere. Keep the .fodt as well: it is plain text, so it will stay readable long after any one program is gone.

Ready to open your old files?

Start free, then unlock unlimited conversions with a one-time $79.95 Standard license. Download the Windows installer — full features for up to 10 files.

Free trial

Full app features · up to 10 files

Windows 10 or 11

Free trial — convert up to 10 files. Download the Windows installer and convert locally on your PC.

Start free trial — Download installer

Direct Windows installer · offline MSI

Is this safe? — publisher, installer, and SmartScreen help

Requires Windows 10 or 11. No subscriptions.