OpenDocument HTML Swap

OpenDocument to HTML

Your file never leaves this device. Conversion runs in your browser. The document itself is not uploaded.

1 · Choose a OpenDocument file

…or drop a OpenDocument file here

.odt · stays in this tab

2 · Convert

3 · Download

Choose a file to convert. It is not uploaded.

FAQ and format details
Why convert OpenDocument to HTML?

Writer is the authoring tool; the web is the publishing tool. Public-sector ODT archives also need a preview that does not require installing LibreOffice on a kiosk. This conversion is that preview, and the on-ramp to Markdown or EPUB.

How this conversion runs

JSZip reads content.xml and styles.xml. text:h becomes h1–h6 via outline-level, text:p becomes paragraphs, numbered and bullet lists map to ol/ul, and tables keep colspan. Automatic styles apply bold/italic/underline/strike/sub/sup. Pictures/ files become <img> data URLs. Master pages are not layout in HTML.

Keep in mind for OpenDocument → HTML

Tracked changes, sections, and positioned text boxes are incomplete. Linked images outside the package cannot be fetched. A Writer document that is really a poster will flatten. If the ZIP is a .odt in name only, you will get a missing content.xml error.

After you have a HTML file

View the HTML, then branch: Markdown for Git, DOCX if the next office is Microsoft, EPUB if it should be a book. For a layout PDF, export from Writer — not from this HTML.

Do you convert FODT (flat XML)?

Not as its own type. Save as ODT from Writer first so there is a ZIP with content.xml.

Are Writer master-page headers included?

No. Only the body in content.xml. Headers/footers live in styles.xml master pages and are skipped.

This pair at a glance
Accepts
.odt
Writes
.html · text/html
Read fidelity
high (OpenDocument → HTML)
Write fidelity
exact (HTML → HTML)
Source size
Plan for files under 24 MB

The file is read in this tab. It is not uploaded.

Something off with this pair? Send feedback.

About OpenDocument Text and HTML

Source file

OpenDocument Text

The ISO text format used by LibreOffice Writer and OpenOffice: a ZIP of XML, the open counterpart to DOCX.

ODT is part of the OpenDocument family (ODS spreadsheets, ODP presentations). Governments and open-source shops standardize on it. Internally it is content.xml plus styles, metadata, and media. Conversion through HTML maps text:h / text:p / tables onto HTML equivalents.

Extensions
.odt
MIME types
application/vnd.oasis.opendocument.text
Kind
zip · binary
Category
word processing
Standard
Open format · since 2005
Comfortable size
Up to about 24 MB in this browser converter
Read into HTML
high fidelity · implemented — Reads content.xml and styles.xml: headings, lists (ul/ol), tables, strike/sub/sup, and Pictures/ as data URLs.

What this format can hold

  • headings
  • paragraphs
  • lists
  • tables
  • links
  • images
  • inline formatting
  • styles

Usually dropped on the way in

  • master styles
  • tracked changes
  • draw frames as layout
  • macros

Apps that consume OpenDocument

  • LibreOffice Writer (The Document Foundation) — creates and opens on Windows, macOS, Linux
  • Apache OpenOffice Writer (Apache) — creates and opens on Windows, macOS, Linux
  • Google Docs (Google) — creates and opens on Web
  • Microsoft Word (Microsoft) — creates and opens on Windows, macOS, Web
  • Calligra Words (KDE) — creates and opens on Linux
  • OnlyOffice — creates and opens on Windows, macOS, Linux, Web

Catalog notes

  • FODT (flat XML OpenDocument) is not yet a separate type; save as ODT first.
  • ZIP collision with DOCX/EPUB is resolved by checking mimetype or META-INF/manifest.xml.

Destination file

HTML

The web’s native document format: structured markup for headings, paragraphs, lists, tables, links, and media.

HTML is the pivot format for this converter. Incoming files are turned into a sanitized HTML document, and outgoing files are generated from that document. Browsers, email clients, and most rich-text editors already speak it, which is why it is the most flexible interchange point.

Extensions
.html, .htm, .xhtml
MIME types
text/html, application/xhtml+xml
Kind
text · utf-8
Category
markup
Standard
Open format · since 1993
Comfortable size
Up to about 7.6 MB in this browser converter
Written from HTML
exact fidelity · implemented — Pretty-printed full HTML document with a generated title.

What this format can hold

  • headings
  • paragraphs
  • lists
  • tables
  • links
  • images
  • inline formatting
  • semantic structure

Apps that consume HTML

  • Chrome (Google) — opens on Windows, macOS, Linux, Android
  • Firefox (Mozilla) — opens on Windows, macOS, Linux, Android
  • Safari (Apple) — opens on macOS, iOS
  • Edge (Microsoft) — opens on Windows, macOS
  • VS Code (Microsoft) — creates on Windows, macOS, Linux
  • WordPress — creates and opens on Web

Catalog notes

  • Scripts, event handlers, and external stylesheets are stripped during conversion so the hub stays a document, not an app.
  • XHTML is accepted as input and emitted as HTML5.
Other conversions

Other conversions from OpenDocument: MarkdownWordRTFPDFEPUB

Other ways to get HTML: MarkdownWordRTFPDFEPUB