LaTeX
Preview
A tool that typesets LaTeX math in your browser so you can preview it and export it as a PNG image. Enter a formula such as "x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}" and KaTeX renders it cleanly and instantly; you can switch between display (block) and inline rendering. Pick a font size, text color, and background (transparent or white), then press "Save PNG" to get a high-resolution image of just the equation. It's handy whenever you need to drop math into a place that can't accept LaTeX directly — Word, slides (PowerPoint / Keynote / Google Slides), technical blog posts, reports, or math Q&A sites. You can also copy the result to the clipboard as an image, or copy the LaTeX source itself. All typesetting and rasterization happen locally in your browser; the KaTeX library, CSS, and fonts are self-hosted on this site and simply loaded. The formula you enter is never sent to any server.
How to use
- Type or paste a LaTeX (TeX) formula into the input box (e.g. x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}). You can also load one of the samples to try it out.
- Adjust the display mode (display / inline), font size, text color, and background (transparent / white) as needed. The preview updates instantly.
- Use "Save PNG" to download the image, "Copy image" to put it on the clipboard, or "Copy LaTeX" to copy the source.
FAQ
Is my formula sent to a server?
No. Both the typesetting (KaTeX) and the image export happen entirely in your browser; the formula you enter is never uploaded, stored, or transmitted. The KaTeX library, CSS, and fonts are self-hosted files loaded from this site, and your math never leaves your device.
Is this KaTeX rather than MathJax? Does it matter?
This tool uses KaTeX, chosen because it is fast, produces stable output, and is easy to self-host. Common LaTeX math — fractions, roots, sums, integrals, matrices, Greek letters, and so on — typesets as-is. Some specialized macros or package-dependent syntax may not be supported.
Can the exported image have a transparent background?
Yes. Set the background to "Transparent" and you get a PNG with just the equation on a transparent background, so it sits cleanly over slides or colored pages without a white box. Choose "White" for a solid white background instead.
Will the saved image be sharp (high resolution)?
Yes. The equation is scaled up vectorially before rasterization, so it stays crisp when enlarged and exports at a resolution suitable for print and slides. Increasing the font size yields a larger, higher-detail image.
What's the difference between inline and display math?
Display (block) math is set on its own line with larger sub/superscripts for sums and integrals, as you'd place a standalone equation. Inline math is the smaller style meant to sit within a line of text. Switch between them to match your use.