KaTeX online

A KaTeX online editor that renders LaTeX math as you type and exports the result as a PNG or as Unicode text, with no compile at all.

The KaTeX example, rendered

Open in LaTeX.to Download the example (zip)

How to use KaTeX on LaTeX.to

Nothing to install and no login: the editor is the whole tool.

What KaTeX is

KaTeX is a JavaScript library that typesets LaTeX math in a web page. Khan Academy wrote it to render thousands of formulas per page without the browser stalling, by implementing TeX's math layout in JavaScript with no server round trip. It renders the equations on many of the math sites you use.

It is not a TeX engine. It knows math mode and nothing else: no \documentclass, no \section, no packages, no PDF. On LaTeX.to it is one entry in the engine dropdown, and picking it turns the preview into a live renderer for whatever you type:

When to use it

KaTeX vs MathJax vs LaTeX

Common errors

The error shows in the preview as text at the formula that caused it, and the rest keeps rendering.

More engines: all engines.