LaTeX Preview — Free Live Equation Editor
Write LaTeX math alongside Markdown, see it rendered live with KaTeX. Perfect for math notes, slide equations, and Stack Overflow / Notion / Substack inserts. Copy the rendered HTML or download a standalone HTML file.
Private by design. Your LaTeX is typeset entirely in your browser — nothing is uploaded to a server.
KaTeX support — what renders, what silently does not
This preview uses KaTeX, which covers the math subset of LaTeX rather than the whole language. Most "it works in Overleaf but not here" surprises come from the four rows below.
| Feature | Syntax | Supported? |
|---|---|---|
| Inline math | $ … $ or \( … \) | Yes |
| Display math | $$ … $$ or \[ … \] | Yes |
| Fractions, roots, sums, integrals | \frac, \sqrt, \sum, \int | Yes |
| Greek, operators, arrows, accents | \alpha, \times, \rightarrow, \hat | Yes |
| Aligned equations | aligned, cases, matrix environments | Yes |
| Document structure | \section, \begin{document}, \usepackage | No — KaTeX renders math, not documents |
| Custom packages | \usepackage{tikz} and similar | No |
| Diagrams | TikZ, pgfplots | No — use an image instead |
- An unsupported command renders in red rather than failing silently, so a red fragment means the command is outside the KaTeX subset — not that your syntax is wrong.
- A single unmatched brace swallows everything after it. When a whole block disappears, count braces before rewriting the formula.
- Backslashes inside a Markdown context often need doubling, because Markdown consumes one level of escaping before KaTeX ever sees the string.
How to write and preview LaTeX equations online
- Type LaTeX. Type or paste a LaTeX expression like \int_0^\infty e^{-x^2}dx into the editor.
- Live preview. The rendered equation appears instantly. Errors show with a precise location hint.
- Tweak with snippets. Use the snippet toolbar to insert fractions, square roots, sums, integrals, matrices, and aligned equations without memorizing the syntax.
- Copy or download. Click Copy to copy the rendered HTML to your clipboard, or Download to save a standalone .html file with the rendering baked in.
Frequently Asked Questions
- Do I need LaTeX installed?
- No. Rendering uses KaTeX in your browser. No TeX distribution required.
- Does it support all of LaTeX?
- It supports the math subset (everything in KaTeX). Full document layout (\documentclass, sections) is out of scope.
- Can I paste the equation into a Notion or Google Doc?
- Yes. Click Copy to copy the rendered HTML, then paste it wherever rich HTML paste is supported.
- Can I drop in an existing file?
- Yes. Drag a .tex, .md, .markdown, or .txt file directly into the editor to load its contents.
- Is my LaTeX uploaded?
- No. Everything runs locally in your browser.
- Can I download the result as a file?
- Yes. Download saves a standalone HTML file with your equations rendered and KaTeX styling embedded, ready to open in any browser.
Use Cases
- Render a math equation for a Notion or Substack blog post
- Copy a rendered equation's HTML straight into a Google Doc or Notion page
- Test a complex LaTeX snippet before pasting into your paper
- Build study notes with crisp math notation
- Drop in a .tex or .md file to preview its equations before publishing
Related tools
More free, in-browser tools from the Documents & Utility set — every one runs locally, with no sign-up and no upload.