DEV Community


Math API: LaTeX Math as SVG image

uetchy profile image Yasuaki Uechi ・1 min read

I've always wanted to put LaTeX Math equations on a web page where MathJax is not allowed to run inside it.

Spending some time, I made Math API, that renders LaTeX Math markup into an SVG image.

So you can place your equation on almost everywhere on which you could put <img> or Markdown (![]()), such as GitHub, Jupyter Notebook or (here!).



Inline image

It is possible to generate an inline equation by changing the query from from to inline.

<img src="\\LaTeX" />

Online Editor

Also, there is the online editor available at


The source code is available on GitHub.
Give it a try and leave a comment/idea for a new feature.

Discussion (2)

Editor guide
webdva profile image
Jermaine Easterling

I might use this for some of my future posts.

Thanks for making this.

aeroreyna profile image
Adolfo Reyna

Thank you so much, I'm using this to add math equation to my figures for my scientific papers.