Guide
Turning LaTeX equations into SVG and PNG images
Equations are often needed outside a LaTeX document: on a slide, in a web page, a forum post, a lecture handout or a social media image. Typing them into a word processor is slow and the results are uneven. This tool renders a LaTeX formula in your browser with MathJax and gives it back as an SVG or a transparent PNG that you can drop into any program, with no account, no upload and no font to install.
Writing the formula
Type the math without the surrounding dollar signs, or paste it with them and they are stripped. Use the ordinary commands: \frac{a}{b}, \sqrt{x}, x^{2}, \sum_{i=1}^{n}, \int_{0}^{\infty}, Greek letters such as \alpha, \mu and \sigma, and environments such as \begin{pmatrix} a & b \ c & d \end{pmatrix}. Eight example chips load the quadratic formula, Euler’s identity, the Gaussian integral, a matrix, an infinite sum, a Maxwell equation, a chemical equation and the normal density. Clear empties the box.
Display and inline style
Display style, the default, sets the formula as it appears on a line of its own: fractions are full size and limits sit above and below sums and integrals. Inline style sets it as it appears within a sentence, with smaller fractions and limits beside the symbol, which makes the image shorter and better suited to running text. Try both on a sum or integral and keep the one that matches the surrounding text.
Size, colour, background and padding
The size menu sets pixels per em: 16 matches body text, 32 is a good default for slides and 64 or 96 suits posters. The colour picker changes the formula colour, for example white for a dark slide. The background can be transparent, white or black, and padding adds a margin around the formula, 12 px by default. The preview sits on a checkerboard when the background is transparent so you can judge the result.
Downloading and copying
Download SVG saves a self-contained vector file, and Download PNG saves a bitmap at the PNG scale you chose: 1× is the size shown, 2× is twice as many pixels in each direction and 4× is for print. The line under the preview gives the dimensions, for example 310 × 97 px at 1× and 621 × 194 px for the 2× PNG of the quadratic formula. Copy SVG code puts the markup on the clipboard to paste into an HTML page.
What works and what does not
The renderer supports the AMS math and symbols (amsmath, amssymb), mathtools, matrices and cases, braket notation, cancel, color, boldsymbol and many others, and chemistry through mhchem: \ce{2H2 + O2 -> 2H2O} draws a balanced reaction with proper subscripts. Commands that would load extra files while the page runs are left out, and unknown commands are reported rather than drawn in red. Whole documents, tables of text, TikZ diagrams and packages such as physics are not supported.
Errors
When the formula cannot be read, the page shows MathJax’s message in plain words: Missing close brace for \frac{1}{ , Undefined control sequence for a misspelled command, or a double superscript. Fix the problem and the preview updates a quarter of a second later. Typing is not blocked, so a half-finished formula shows an error until it is complete.
Using the files
Insert the transparent PNG into Word, PowerPoint or Google Slides, or the SVG where it is accepted, and size it by dragging a corner. For web pages, paste the SVG code inline or save the file and use an image tag. Add alt text describing the formula for accessibility. Because every glyph is a path, text in the image cannot be selected or searched, so keep the LaTeX source for editing later.
Limits
Very long formulas make large images and are better split over several lines. The result is a picture: it is not editable equation text in Word, and there is no MathML output. Rendering is slightly different from a TeX engine such as pdflatex. The first formula can take a moment while the renderer loads.
Related tools
- CSV to LaTeX Table makes the table half of a LaTeX document.
- Scientific Calculator evaluates the numbers inside a formula.
- Markdown Editor is the place to combine the images with text.
- Quadratic Equation Solver solves the first example formula.
Checked against the current version of the LaTeX to Image on .

