# Equation to LaTeX

Convert a typed expression or an equation image into clean LaTeX math without building a whole document.

Equation to LaTeX is for the one expression holding up your draft. Type familiar math notation or drop an image, then copy the generated LaTeX into your document.

## Pick the right input

- **Type equation** is quickest for text such as `sqrt(x^2 + y^2)`, `e^(iπ) + 1 = 0`, or `a_1 ≤ a_2`.
- **Equation image** is better for a screenshot, handwritten line, aligned derivation, or notation that is awkward to type.

Use [Image to LaTeX](/docs/tools/image-to-latex/) when the picture contains paragraphs or tables as well as math. Use [LaTeX to Image](/docs/tools/latex-to-image/) when you already have LaTeX and need a graphic.

## Convert an expression

1. Open **Equation to LaTeX**, or run `/equation-to-latex`.
2. Type the expression or choose a PNG, JPEG, or WebP image.
3. Select **Convert**.
4. Copy or save the returned expression.
5. Add the delimiter that matches its destination, such as `$...$` for inline math or `\[...\]` for display math.

For example:

```text
sqrt(x^2 + y^2) ≤ r
```

becomes a starting point like:

```latex
\sqrt{x^2 + y^2} \le r
```

Simple typed notation is normalized directly on the device. Natural-language math and images use a compatible local Ollama model; images require a vision-capable model.

## Review before inserting

The result contains the expression, without surrounding delimiters or an explanation. Check grouping, operator names, alignment points, accents, and limits. A visually plausible expression can still mean something different if one brace or subscript is wrong.

Images must be under 20 MB. The tool transcribes notation; it does not check the mathematics or decide whether the equation supports your argument.
