LabCanvas
Free account · save your work, full figure editorSign up free

LaTeX equation to PNG

Type a LaTeX equation, pick a colour and size, and download it as a transparent PNG at 150–1200 dpi (with its DPI recorded), or open it in the LabCanvas editor as an editable vector equation. The equation is typeset by MathJax in your browser, supports AMS environments and chemical equations with \ce{…}, and works in PowerPoint, Google Slides, Word, Keynote and figure editors.

What it does
Converts a LaTeX equation into a transparent PNG (150–1200 dpi, DPI recorded in the file) you can paste into slides, Word or figures, or an editable equation in the LabCanvas editor.
Formula
MathJax 3 TeX input (AMS math, mhchem \ce{…}) rendered as glyph outlines; PNG pixels = size at 96 dpi × DPI ÷ 96.
Example
An equation 400 px wide at 96 dpi is 400 ÷ 96 = 4.17 inches wide; exported at 300 dpi the PNG is 400 × 300 ÷ 96 = 1250 px wide and still prints 4.17 inches wide.

Last updated · First published

FreeNo sign-upRuns in your browserFigures

Loading LaTeX equation to PNG…

At a glance

LaTeX equation to PNG at a glance
InputLaTeX math without dollar signs: AMS environments, chemistry with \ce{…} (mhchem)
OutputPNG at 150, 300, 600 or 1200 dpi (the DPI is recorded in the file), or an editable equation in the LabCanvas editor
TypesettingMathJax 3, in your browser
BackgroundTransparent or white
Runs inYour web browser; nothing is uploaded
PriceFree, no account needed

What it does

How to use the LaTeX equation to PNG

  1. Type or pick an equationWrite LaTeX math without dollar signs, or insert an example such as Michaelis–Menten or the Nernst equation.
  2. Set the styleChoose display or inline style, the colour, the size and a transparent or white background.
  3. DownloadSave a PNG at the resolution you need (600 dpi for journals), copy the image or the LaTeX, or open the equation in the LabCanvas editor to keep it as editable vectors.

How it works

The tool uses MathJax 3 with its full TeX input (AMS math, mhchem for chemistry, physics, cancel, color and more) and SVG output with every glyph written as a path, so no fonts are needed. The PNG is drawn from those outlines at your chosen resolution: the size you pick is the size at 96 dpi, and higher DPI adds pixels without changing the physical size. A pHYs chunk records the DPI in the PNG, so Word and PowerPoint place it at the intended size.

Worked examples: from LaTeX to PNG

Three equations from start to finish. Type each one without dollar signs; the preview updates as you type.

  1. Michaelis–Menten, for a slide. Type v = \frac{V_{\max}[S]}{K_m + [S]}, keep display style and a transparent background, and download a 600 dpi PNG. In PowerPoint use Insert → Pictures; at 600 dpi it stays sharp even when enlarged on a projector.
  2. A reaction, for a figure. Type \ce{6CO2 + 6H2O ->[h\nu] C6H12O6 + 6O2}. The \ce{} command (mhchem) sets subscripts, charges and arrows correctly without extra markup; text above an arrow goes in square brackets.
  3. Two aligned lines, for a document. Type \begin{aligned} \Delta G &= \Delta H - T\Delta S \\ \Delta G^\circ &= -RT\ln K \end{aligned}; the & marks the point the lines line up on and \\ starts a new line. Download a PNG at 300 dpi for Word or Google Docs.
The Michaelis–Menten equation, v = Vmax[S] / (Km + [S]), typeset in black on a transparent background
Example 1 as this page downloads it: a 300 dpi PNG with a transparent background, 506 × 219 px (4.3 × 1.9 cm), with its DPI recorded in the file.

How big is the PNG? The size you choose is the size at 96 dpi; the DPI only adds pixels. An equation 400 px wide at 96 dpi is 400/96=4.17 inches wide; at 300 dpi the PNG is 400×300/96=1250 px wide and still prints 4.17 inches wide, because the DPI is written into the file.

LaTeX you will use most
WhatType
Fraction\frac{a}{b}
Subscript and superscriptK_a,\ x^{2},\ e^{-kt}
Greek letters\alpha,\ \beta,\ \Delta G,\ \mu\mathrm{M}
Square root\sqrt{2},\ \sqrt[3]{x}
Sum and integral\sum_{i=1}^{n} x_i,\ \int_0^\infty f(t)\,dt
Upright units and labels\mathrm{pH},\ 25\ ^\circ\mathrm{C},\ 10\ \mathrm{mg\,mL^{-1}}
Plus–minus and approx.12.3 \pm 0.4,\ \approx,\ \times
Chemical equation\ce{2H2 + O2 -> 2H2O}
Equilibrium\ce{CH3COOH <=> CH3COO- + H+}

Frequently asked questions

How do I convert a LaTeX equation to PNG?

Type the equation without dollar signs, choose the size, colour and background, then click Download: PNG (set the resolution under More options): 300 dpi for slides and documents, 600 dpi for journal figures. The PNG records its DPI, so it is placed at the intended size.

How do I put a LaTeX equation in Word or Google Docs?

Download a 300 dpi PNG and insert it as a picture. In Google Docs use Insert → Image → Upload from computer. To edit the equation later, keep the LaTeX: paste it back into the tool and download again.

How do I write a chemical equation in LaTeX?

Use the mhchem command: \ce{2H2 + O2 -> 2H2O}. Numbers after an element become subscripts, charges go after the formula (\ce{SO4^2-}), <=> gives an equilibrium arrow and text in square brackets after an arrow is written above it.

How do I insert a LaTeX equation into PowerPoint or Google Slides?

Download the equation as a 300–600 dpi PNG with a transparent background, then insert it as a picture (Insert → Pictures in PowerPoint, Insert → Image in Google Slides). The DPI is recorded, so it arrives at the intended size.

Is the PNG background transparent?

Yes by default. Switch the background to white if the slide or document needs it.

Which LaTeX commands are supported?

Standard LaTeX math plus AMS environments (aligned, cases, pmatrix…), chemistry with \ce{…} from mhchem, and most MathJax extensions. Text-mode document commands such as \section are not, because this is an equation renderer.

What resolution should I use?

300 dpi is enough for slides and most documents; 600 dpi suits journal figures; 1200 dpi is for line art at very small sizes. For an equation you can resize freely, open it in the LabCanvas editor, where it stays an editable vector.

Is it free and private?

Yes. It runs entirely in your browser, needs no account, and your equations are not sent anywhere.

Put this equation on a figure, poster or slide

The LabCanvas editor has the same LaTeX equation tool built in: equations stay editable vector outlines next to your plots, structures and labels. Your equation from this page opens in it.

Open in the figure editor