1. Home
  2. Calculators
  3. LaTeX to Image

LaTeX to Image

For slides, documents, websites and posts: type or paste a formula and download it as an image that needs no fonts and no upload.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use LaTeX to Image

  1. Type or paste LaTeX, or press an example.
  2. Choose the size, colour and background.
  3. Download the SVG or PNG, or copy the SVG code.

Features

  • SVG with glyphs as paths, so it needs no fonts
  • PNG at 1×, 2× or 4× with a transparent background
  • Colour, size, padding and display or inline style
  • AMS maths, matrices and chemistry with mhchem
  • Clear TeX error messages

Supported formats

Input

  • LaTeX math typed or pasted
  • mhchem chemistry

You get

  • SVG image
  • PNG image
  • SVG code

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the LaTeX to Image is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • It renders math-mode LaTeX through MathJax, not whole documents, and packages that load extra files at run time are not available.
  • Very long formulas make large images; split them over lines.

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.

Checked against the current version of the LaTeX to Image on .

Frequently asked questions

Should I use the SVG or the PNG?

Prefer SVG wherever the program accepts it, for instance web pages, Inkscape, Illustrator and recent Word or PowerPoint versions, because it stays sharp at any size and the file is small. Use the PNG for programs that only take bitmaps, and export it at 2× or 4× so it still looks crisp when scaled up on a slide or in print.

Why does the preview look different from my LaTeX document?

The page uses MathJax, which follows TeX’s math layout closely but uses its own fonts and spacing rules, so details such as line thickness or the exact position of limits can differ slightly from a pdflatex build. For publishing in a journal that requires its own typesetting, keep the source and use this for slides, web and quick drafts.

Can I use the PNG in Word or PowerPoint?

Yes. Insert the transparent PNG, or insert the SVG, which stays sharp at any size in current Office versions.

Is my formula sent anywhere?

No. MathJax runs in your browser and the picture is created on your device.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.