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.
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.
Want to try it with your own .docx or .odt? Create a free account →
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.
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.
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.
Numbered and bulleted lists, tables (including merged cells), h1-h4 headings — all faithfully translated into the responsive layout.
Tables, images and long formulas scroll automatically on phone. Readable from 320 to 1920 px out of the box.
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.
Directly in the LaTeX editor, or via the AI of your choice through the MCP protocol.
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.
Sarmate also converts LaTeX (.tex) to the same responsive mathpad HTML, with tikz/pstricks support and BibTeX bibliography. See the LaTeX converter.
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 » | ✗ | ✗ | ✓ | ✓ | ✗ |
Profiles we had concretely in mind when building the converter.
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.
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.
Yes. Each image is extracted, placed in a basename_files/ folder and referenced by relative path in the HTML.
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.
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.
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.
Create an account, drag and drop your .docx or .odt into the drive, click it, convert. No Word install, no LibreOffice.