Sarmate.net Sarmate.net
Home Features Pricing Documentation Contact
Log in Sign up
Online — no install

Word / LibreOffice → responsive HTML

Convert your .docx or .odt math and science courses into a responsive web page. Definitions, theorems, examples and exercises automatically wrapped in semantic mp- tags. KaTeX-rendered formulas, preserved images.

Conversion in under 1 second for most Word/LibreOffice courses.

Example on a real Word course

A 10th-grade math course (.docx, Word): definitions, theorems, examples, exercises, formulas, images. Converted in 152 ms into a responsive HTML page. Click below to open the interactive version.

Chapter 1 — Number sets (Word .docx)

7 definitions, 7 properties, 7 examples, 7 exercises — KaTeX formulas, images preserved
Mathpad HTML preview of the converted chapter

Want to try it with your own .docx or .odt? Create a free account →

What the converter recognizes and translates

Pedagogical blocks

Definitions, theorems, properties, proofs, examples, remarks, exercises are recognized via prefixes (Définition N:, Théorème N:, Exemple N:…) and wrapped in colored mp-tags.

Math formulas

Word MathML and LibreOffice formulas are converted to LaTeX and rendered in the browser with KaTeX. LibreOffice quirk fixed: display formulas inside a paragraph are reclassified as inline.

Embedded images

Each image is extracted, placed in a basename_files/ folder and referenced by relative path in the HTML. Responsive (max-width 100%), no external dependencies.

Lists, tables, headings

Numbered and bulleted lists, tables (including merged cells), h1-h4 headings — all faithfully translated into the responsive layout.

Responsive

Tables, images and long formulas scroll automatically on phone. Readable from 320 to 1920 px out of the box.

Multiple versions

On re-conversion, you choose: overwrite the main file or create a new version (basename_sarmateweb_01.html, _02.html…). Your previous edits stay intact.

Two ways to get the HTML version

Directly in the LaTeX editor, or via the AI of your choice through the MCP protocol.

Path A — no AI

Directly from your Sarmate drive

  • Step 1Drag and drop your .docx or .odt into your Sarmate drive.
  • Step 2Click the file: a modal opens with a « Start conversion » button.
  • Step 3Click Convert. If a converted version already exists, choose: overwrite or new version.
  • ResultIn under a second, a basename_sarmateweb.html file appears next to the original, with a basename_files/ folder for images.
Sign up to test
Path B — via MCP

From the AI of your choice, via MCP

  • PrincipleYou connect Claude, ChatGPT, Gemini, Mistral, Cursor, Claude Code or Codex CLI to your Sarmate drive through the MCP protocol.
  • ToolThe AI calls the convert_office_to_mathpad tool which reads the original and writes the converted HTML next to it.
  • Three modesconverter only (lightest), hybrid (converter + AI polish), or 100% AI from the raw .docx using the mathpad spec (most expressive).
  • RequirementA Sarmate account (Perso, Pro or Etab) with an active MCP token. Read the MCP documentation.
Plug an AI via MCP

What is MCP?

The Model Context Protocol is an open standard that lets AI assistants (Claude, ChatGPT, Gemini…) access external tools and data. On Sarmate, it exposes your drive and all converters (LaTeX, .docx/.odt) to the AI of your choice. Learn more about MCP on Sarmate.

You also have .tex files?

Sarmate also converts LaTeX (.tex) to the same responsive mathpad HTML, with tikz/pstricks support and BibTeX bibliography. See the LaTeX converter.

Sarmate vs other tools

Comparison on the points that matter for a math course.

Semantic blocks Formulas (KaTeX) Responsive Online AI / MCP
Sarmate ✓ mp-tags ✓ KaTeX
Pandoc (raw) ~ MathJax ✗ local
Word « Save as HTML » ~ images
LibreOffice « Save as HTML » ~ MathML
Google Docs « Publish to web »

Who the tool is designed for

Profiles we had concretely in mind when building the converter.

Word / LibreOffice teachers Middle and high-school teachers who have been writing their courses in .docx or .odt for years and want to publish them online without rewriting everything.
Legacy Word → online migration Schools or publishers with dozens of legacy .docx courses to make mobile-responsive — batch processing possible via the MCP tool.
Hybrid Word + AI workflow Those who write in Word, ask an AI to enrich the content (quizzes, explanations), then immediately publish a clean HTML version alongside.
Textbook authors Chapters written in Word, quick web preview to share with co-authors or proofreaders before printing.

Frequently asked questions

How do I convert a Word .docx file to HTML?

Drag and drop your .docx into your Sarmate drive, then click it. A modal opens and launches the conversion in one click. In under a second, a basename_sarmateweb.html file appears alongside.

Are LibreOffice .odt files supported?

Yes, .docx (Word) and .odt (LibreOffice/OpenOffice) are processed by the same pipeline. A LibreOffice quirk is even fixed automatically: display formulas inside a paragraph are reclassified as inline.

Are embedded images preserved?

Yes. Each image is extracted, placed in a basename_files/ folder and referenced by relative path in the HTML.

How are my "Definition 1", "Theorem 2"... detected?

The converter recognizes typical prefixes of a pedagogical course (Définition N, Théorème N, Propriété N, Preuve, Exemple N, Remarque N, Exercice N) and automatically wraps them in the corresponding mp-tags, displayed with their native colored frames.

Can I drive the conversion from Claude, ChatGPT or another AI?

Yes, via the MCP server. The convert_office_to_mathpad tool exposes the conversion to the AI of your choice (Claude, ChatGPT, Gemini, Le Chat, Cursor, Claude Code, Codex CLI…). MCP documentation.

What does it cost? Which quota?

Conversion consumes the shared server-time quota (common with LaTeX compilation): 1 minute per 2-hour window for Free, 5 minutes per 2 hours for Perso, unlimited for Pro and Etab. A typical .docx conversion takes 100-200 ms.

Your first .docx conversion in under 1 minute

Create an account, drag and drop your .docx or .odt into the drive, click it, convert. No Word install, no LibreOffice.

Sign up to test the tool Discover MCP conversion