Google Docs and Slides

How to Use LaTeX in Gmail

By imagetolatex team · Published

Gmail cannot render LaTeX by itself: \frac{a}{b} arrives as plain text. The method that works for every recipient is to turn the formula into an image — paste the LaTeX into LaTeX to PNG, download or copy the PNG, and insert it into the email. Browser extensions can render TeX in the compose window, but the recipient still receives an image or text.

Method 1: insert the equation as an image (works for everyone)

  1. Step 1: Render the formulaPaste your LaTeX into LaTeX to PNG. Keep Transparent background on and choose size 2× or 3× so it stays sharp.
  2. Step 2: Get the imageClick Download PNG, or Copy image to put it on the clipboard.
  3. Step 3: Insert it into the emailIn Gmail click Insert photo and choose Inline, then pick the PNG. Pasting the copied image into the message body also works in most browsers.
The LaTeX to PNG tool with Euler identity typed in, its rendered preview, and Download PNG and Copy image buttons
Render the formula as a transparent PNG, then insert it inline in Gmail.

Images are not searchable and screen readers cannot read them. Add the LaTeX in the text too, for example after the image, if the recipient may need it.

Method 2: a browser extension that renders TeX

Some Chrome extensions, such as "TeX for Gmail and Outlook" in the Chrome Web Store, and user scripts shared on Reddit and the KaTeX discussions, render $…$ in the Gmail compose window. We have not tested them. Before installing, check what they send: the recipient usually gets an image, or plain text if they do not use the same extension.

An extension that reads and edits your email needs broad permissions. Review them on the store page, especially for a work account.

Method 3: plain LaTeX for technical readers

Mathematicians and physicists often read raw LaTeX fluently. Write inline math between dollar signs and keep it short: $E = mc^2$. For anything longer, link a rendered version or attach a PDF.

Readable even as plain text
E = m c 2
E = mc^2Open in the LaTeX editor

Which method to choose

MethodRecipient seesBest for
PNG imageThe rendered formula, on any deviceStudents, clients, anyone
ExtensionUsually an image; plain text without the extensionFrequent senders who accept the permissions
Plain LaTeXCode such as \frac{a}{b}Colleagues who read LaTeX

FAQ

Can Gmail render LaTeX?
No. Gmail shows LaTeX as plain text. Send the formula as an image, or use an extension that renders it before sending.
How do I put an equation in a Gmail message?
Render it as a PNG with LaTeX to PNG, then use Insert photo › Inline.
Does the recipient need anything installed?
Not for an image. For extension-rendered math, the recipient sees whatever the extension inserted, usually an image.
Does this work in Outlook?
Yes, the image method works in any email program: insert the PNG as an inline picture.

Sources

Related guides

Converting more than one equation?

When the math is in a whole page, a PDF, a Word file or handwriting, these converters do it in one go and keep every equation editable.

Single printed formulas are free: 3 a day without an account, 6 with a free account. New accounts get 30 credits to try handwriting, pages and documents; failed conversions return their credits. See plans and credit prices.