CompSci.rocks

LaTeX to Image Converter

Paste LaTeX or MathJax and get back a clean PNG, JPEG, or WebP image — transparent or white background, any color, any resolution. Great for slides, docs, and anywhere else that can't render LaTeX directly.

Paste any LaTeX or MathJax expression below and this tool renders it into a clean image — PNG, JPEG, or WebP — you can drop straight into a Google Doc, a slide deck, a Discord message, or anywhere else that doesn't understand LaTeX natively. Pick a transparent or white background, any text color, and a resolution high enough to stay crisp even projected on a screen.

Everything happens in your browser using MathJax — nothing you type is ever sent to a server.

Type an expression above to preview it here.

Quick LaTeX reference

A few of the most common building blocks — click any "Quick insert" button above to drop these straight into the input, or type them yourself:

What you want LaTeX Rendered
Fraction\frac{a}{b}\(\frac{a}{b}\)
Square root\sqrt{x}\(\sqrt{x}\)
Exponent / subscriptx^{2}, x_{n}\(x^{2}, x_{n}\)
Summation\sum_{i=1}^{n}\(\sum_{i=1}^{n}\)
Integral\int_{a}^{b}\(\int_{a}^{b}\)
Greek letters\alpha \beta \gamma \pi \theta\(\alpha \beta \gamma \pi \theta\)
Matrix\begin{bmatrix} a & b \\ c & d \end{bmatrix}\(\begin{bmatrix} a & b \\ c & d \end{bmatrix}\)
Plus/minus, comparisons\pm, \leq, \geq, \neq, \approx\(\pm, \leq, \geq, \neq, \approx\)

Where to use the image

Most places students and teachers write don't render LaTeX directly, so converting an equation to an image first is the easiest way around that:

  • Google Docs / Slides — Insert → Image → Upload from computer (or paste directly on most platforms)
  • Word / PowerPoint — Insert → Pictures, or paste straight from the clipboard with Copy Image
  • Canvas, Google Classroom, or any LMS announcement/discussion post
  • Discord, Slack, or forum posts that don't support LaTeX rendering
  • Printed worksheets assembled in a document editor that can't typeset math itself

Transparent vs. white background

Use transparent when the equation is going on top of something else — a slide with a colored background, a document with shading, a dark-mode chat app — so it blends in without a visible box around it. Use white when you want a guaranteed-opaque image, such as pasting into an editor that renders transparency as black, or when you're not sure where the image will end up. Transparency only works with the PNG and WebP formats — JPEG has no transparency channel at all, so a JPEG export always gets a white background regardless of that setting.

Frequently asked questions

What's the difference between inline and display mode?

Display mode is how an equation looks centered on its own line in a textbook — summations, integrals, and fractions render larger and more spread out. Inline mode renders more compactly, the way an equation looks sitting in the middle of a sentence. Try both; the difference is mostly visible on expressions with big operators like \sum or \int.

What resolution should I use?

2× looks crisp in Google Docs, Slides, Word, and PowerPoint at normal sizes. Bump up to 3× or 4× if you're projecting on a large screen, printing, or plan to resize the image larger after pasting it in.

Which format should I pick — PNG, JPEG, or WebP?

PNG is the safest default — lossless, universally supported, and the only format guaranteed to paste correctly from the Copy Image button. WebP gets you a noticeably smaller file at the same quality and still supports transparency, but a small number of older tools don't accept it. JPEG is best avoided for text/equations unless something specifically requires it — it can't do transparency and its compression tends to leave faint artifacts around sharp edges like glyph outlines.

Why isn't GIF or AVIF an option?

Browsers can't actually encode either format from a canvas — not a limitation of this tool specifically, it's just not part of what any browser's image-export API supports. Producing a GIF or AVIF client-side would mean shipping a large extra encoder library for a static equation image, and GIF's limited color/transparency handling would make it look worse than PNG anyway.

Can I use MathJax-specific commands, or only standard LaTeX?

This renders through MathJax, which supports the vast majority of standard LaTeX math syntax (amsmath macros included) plus a handful of MathJax-specific extensions. If you're pasting an equation someone wrote in Canvas, Overleaf, or another MathJax/LaTeX-based editor, it should render the same way here.

Is my equation uploaded anywhere?

No. MathJax renders entirely in your browser and the image is generated locally on your device — nothing you type is sent to a server.

Looking for other classroom tools? Check out the full tools page.