What is the ODT file format?
Files with the .odt extension (OpenDocument Text) are editable word-processing documents belonging to the Open Document Format (ODF) family. The format is maintained by OASIS as an open standard and ratified as ISO/IEC 26300. Within the ODF family, .odt is the primary text-document type; companion formats include .ods for spreadsheets and .odp for presentations.
Structurally, .odt files are stored as ZIP archives, so renaming one to .zip and unpacking it reveals a folder of XML files. Every valid .odt package contains at least these core components:
mimetype- a single uncompressed entry holding the stringapplication/vnd.oasis.opendocument.text, placed first so the MIME type is readable without decompressing the archivecontent.xml- the document body and basic style referencesstyles.xml- full style definitions covering text orientation, spacing, and page layoutmeta.xml- document metadata such as author, title, and last-modification datesettings.xml- application-specific settings such as window size and zoom levelMETA-INF/manifest.xml- an index listing every file inside the package
Support for .odt files
.odt is natively supported by LibreOffice Writer and Apache OpenOffice Writer, which treat it as their default save format. Microsoft Word (2013 and later) can open and save .odt files directly, with noticeably improved fidelity in Word 2016 and Microsoft 365 compared with earlier versions. ONLYOFFICE Desktop Editors provides strong round-trip compatibility. Google Docs can both import and export .odt files. AbiWord and Collabora Office (available on Android and iOS) also offer solid support.
A flat, single-file XML variant exists as .fodt, which stores the same content without ZIP compression - useful for version control and plain-text diffing.
Security & safety
RISK: LOWODT files are generally safe documents, with the caveat shared by all office formats: they can contain macros (LibreOffice Basic), which both LibreOffice and Word block or prompt about by default - never enable macros in a document you did not expect. Embedded hyperlinks and OLE objects can point to malicious destinations, and ODT has occasionally appeared in spam campaigns because mail filters scrutinize it less than DOCM. Opening an ODT with macros disabled is safe.
Format details
in a nutshellPrograms that open ODT files
Technical details
deep spec| Container format | ZIP archive with Deflate-compressed entries |
| Primary structure files | content.xml, styles.xml, meta.xml, settings.xml, META-INF/manifest.xml |
| MIME type | application/vnd.oasis.opendocument.text |
| Magic bytes | 50 4B 03 04 (ZIP local file header); mimetype entry readable in plain bytes at approximately offset 38 |
| Text encoding | UTF-8 throughout all XML files inside the package |
| Uncompressed entry rule | The mimetype file must be the first ZIP entry and stored without compression, per ODF specification requirement |
| Embedded images | Stored in a Pictures/ subfolder inside the ZIP package |
| Style architecture | Named styles defined in styles.xml; automatic (per-element) styles generated inline in content.xml |
| Change tracking | Revision marks recorded via text:tracked-changes elements in content.xml |
| Macro storage | Built-in Basic macros stored in a Basic/ subtree inside the package |
| Mathematical formulas | MathML-based objects embedded as ODF formula sub-documents and referenced from content.xml |
| Digital signatures | XMLDSig signatures stored in META-INF/documentsignatures.xml |
| Flat unzipped variant | .fodt - single XML file containing all content inline with no ZIP wrapper |
| Template format | .ott (OpenDocument Text Template) uses the same internal XML structure |
| Bidirectional text | RTL and mixed-direction text supported via the writing-mode style property |
| Released | 2005 (ODF 1.0, OASIS); ISO/IEC 26300 since 2006; current major version ODF 1.3 (OASIS, 2021) |
| Open standard | Yes · royalty-free |
| Specification | www.oasis-open.org |