# LaTeX to Image

Preview a LaTeX equation and export a crisp SVG or PNG for slides, websites, and figures.

LaTeX to Image is the quick route from an equation you trust to a graphic you can place almost anywhere. You keep the editable LaTeX, see a live preview, and choose a vector or bitmap export at the end.

## Choose SVG or PNG

- **SVG** stays sharp at any size and is usually best for websites, diagrams, and modern slide tools.
- **PNG** is easier to place in applications that do not handle SVG reliably. Choose a large enough export size for its final use.

If the destination accepts real equations, keep them editable instead. The tool can also copy MathML for Word or KaTeX HTML for a webpage, which is often more accessible than an image.

## Render an equation

1. Open **LaTeX to Image**, or run `/latex-to-image`.
2. Enter an expression without a document preamble, such as:

   ```latex
   \operatorname{Var}(X)=\mathbb{E}[X^2]-\mathbb{E}[X]^2
   ```

3. Choose inline or display mode and inspect the preview on light and dark backgrounds.
4. Use **Export** to download PNG or SVG, or copy LaTeX, MathML, or KaTeX HTML.
5. If a project is open, save the PNG into that project or create an image project.

Rendering and export happen on your device. No LaTeX engine installation or network connection is required for supported math commands.

## Before you publish the image

An equation image has no mathematical structure for a screen reader unless you provide an alternative. Add meaningful alt text nearby, keep the original source, and avoid using a low-resolution PNG for print.

The live renderer supports common mathematical LaTeX, not arbitrary document packages or page-layout commands. If a custom command does not render, expand it into standard math or compile it as part of a normal LaTeX project.

Use [Equation to LaTeX](/docs/tools/equation-to-latex/) for the reverse direction from a screenshot or typed notation.
