LaTeX Equation Editor
Write LaTeX math with a live KaTeX preview
Compose equations with a symbol palette and instant rendering, then copy inline $…$ or block $$…$$ Markdown for GitHub, GitLab, Notion, and docs. Free, no signup, runs in your browser.
Loading renderer…
$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$Templates
Need more? Browse the full Math Equation Inventory for ready-to-paste KaTeX across algebra, calculus, statistics, and physics.
How to write an equation
- Type LaTeX in the source box, or click symbols from the palette to insert them at the cursor.
- Watch the live preview render with KaTeX. Toggle Inline vs Block mode.
- Copy the raw LaTeX, or the Markdown form —
$…$for inline,$$…$$for a display equation.
Inline vs block math in Markdown
The area is $A = \pi r^2$ for a circle. <!-- inline -->
$$
\int_0^1 x^2 \, dx = \frac{1}{3}
$$
Use inline for math inside a sentence and block for standalone, centered equations.
Where this math renders
| Platform | KaTeX math |
|---|---|
| GitLab | ✅ native |
| Notion | ✅ |
| Obsidian | ✅ |
| GitHub | limited |
| Markdown Viewer editor | ✅ |
See the GitLab Markdown guide for native math, and the Mermaid & LaTeX inventory tutorial for a copy-paste workflow.
More math, faster
This editor is for composing and tweaking a single equation. For a browsable library of ready-made equations across algebra, calculus, linear algebra, statistics, trigonometry, and physics, use the Math Equation Inventory. Validate diagrams too with the Mermaid validator.
Privacy & safety
- Rendering runs in your browser with KaTeX.
- We don't upload, store, log, or train on your equations.
Frequently asked questions
- You type LaTeX (or click symbols from the palette) and KaTeX renders it live in your browser. Toggle between inline and block (display) mode, then copy either the raw LaTeX or the Markdown form ($…$ or $$…$$) ready to paste.
- Anywhere that renders math: GitLab and Notion render KaTeX natively, Obsidian supports it, GitHub has limited support, and our own editor renders it live. Copy the $$…$$ block for display equations or $…$ for inline.
- It uses KaTeX, which supports a large, well-documented subset of LaTeX math — fractions, roots, sums, integrals, matrices, Greek letters, operators, and most common environments. Some niche packages and document-level LaTeX aren't covered, but virtually all inline math is.
- Rendering happens entirely in your browser with KaTeX — nothing is uploaded. After first load it works without a connection.
- The preview shows the exact KaTeX parse error so you can fix it. Common causes are unbalanced braces { }, a misspelled command, or a missing backslash.
How does the LaTeX equation editor work?
Where can I use the Markdown it produces?
Is it really LaTeX, or a subset?
Does it work offline / is my input private?
What if my equation has an error?
Related tools
More free browser tools in the same workflow.
Use the API
Ship Markdown features in your product with our REST API — render, convert, audit, and transform documents at scale.
New to the platform? Start with the API quickstart, then try a live request in the API playground.
Explore the API platform