LaTeX equation editor

Type LaTeX and see the equation as you type. Copy it into Word as an editable equation, paste it into Google Docs as a picture, or save it as SVG or PNG. It is drawn on your device: nothing is uploaded, and it works offline.

Also: Compare text and documents · Free JPEG XL converter · Markdown to Word · Free online Markdown editor

How to make a LaTeX equation image

  1. Type or paste your LaTeX, without dollar signs. The equation is drawn as you type.
  2. Tap Download SVG for a sharp picture at any size, or Download PNG for a transparent picture.

How to put a LaTeX equation in Word

  1. Type your LaTeX.
  2. Tap Copy for Word.
  3. Paste it into Word. It becomes an editable Word equation.

How to put a LaTeX equation in Google Docs

  1. Type your LaTeX.
  2. Tap Copy picture.
  3. Paste it into Google Docs or Slides.

Questions

Is it free?

Yes. Rapier is free and open source, with no account, ads or tracking.

Is my equation uploaded?

No. Rapier Math draws it in your browser.

Does it work offline?

Yes, once the page has loaded. Add it to your home screen to open it like an app, or keep the whole editor as one HTML file.

Which LaTeX does it know?

LaTeX math: fractions, roots, sums, integrals, matrices, cases, aligned equations, accents, Greek letters, blackboard bold and chemistry with \ce.

What if I mistype a command?

The equation editor says what is wrong, and for a misspelled command such as \farc it offers the right one, \frac.

Can I write a whole document with equations?

Yes. Tap Open in Rapier: the equation opens in the editor, and the document exports to Word with editable equations, or to PDF.

How it works

Rapier Math is part of Rapier, which is one offline HTML file. It turns LaTeX into SVG with the Latin Modern font inside, so the equation looks the same everywhere and stays sharp at any size. For Word it writes MathML, which Word turns into its own equation.

Use rapier-math in your site or app

rapier-math is the math renderer inside Rapier: TeX to SVG, MIT licensed (its Latin Modern font under the GUST Font License), no dependencies. It draws offline and at once, writes MathML, and plugs into markdown-it and rehype. Run npm install rapier-math, then import {render} from rapier-math: render(tex).svg is the picture.

rapier-math on GitHub · rapier-math on npm