# LaTeX to HTML

Create standalone HTML with MathML equations for reading, sharing, and accessibility work on the web.

LaTeX to HTML gives a manuscript a life beyond the PDF. It turns document structure into browser-readable HTML and writes equations as MathML, so the result is selectable, responsive, and easier for assistive technology to interpret than a page image.

## Use it for

- a web copy of a paper, report, or set of notes;
- content that needs to reflow on phones and narrow screens;
- a review copy where readers should be able to select text and inspect equations;
- an accessibility-oriented HTML alternative to the PDF.

It is not a faithful recreation of a journal's PDF design. Use PDF export when exact pagination and print layout are the goal.

## Convert the source

1. Open **LaTeX to HTML**, or run `/latex-to-html`.
2. Paste the LaTeX source you want to convert.
3. Choose **Convert**.
4. Save `converted.html` and open it in a browser.
5. Check headings, links, equations, figures, tables, and references.

A section such as:

```latex
\section{Result}
For $x > 0$, the loss decreases monotonically.
```

becomes an HTML heading and paragraph with the inline equation represented as MathML.

## What the output includes

The bundled Pandoc route creates a standalone HTML document, embeds resources it can resolve, and uses MathML for equations. Conversion runs locally.

Custom LaTeX macros, publisher classes, raw TeX, and packages that draw directly on the page may not have an HTML equivalent. Bibliography rendering also depends on the source and citation setup provided to the converter.

:::caution[Accessible HTML still needs review]
MathML and semantic headings give you a stronger starting point, but they do not certify the page against an accessibility standard. Test keyboard order, link text, image alternatives, table headers, color contrast, and the result with the assistive technology your audience uses.
:::

For a tagged PDF workflow, use [Preflight](/docs/preflight/) and read its PDF/UA boundaries before sharing the result as accessible.
