FREE API

LaTeX to Image

Free to use • No signup required

Try It Live

Enter any LaTeX expression and get a ready-to-use URL

Preview
SVG
Rendered: \frac{-b \pm \sqrt{b^2-4ac}}{2a}
Format
Scale: 2x
Text
Background
Copy Output
URLhttps://mathpad.ai/api/v1/latex2image?latex=%5Cfrac%7B-b+%5Cpm+%5Csqrt%7Bb%5E2-4ac%7D%7D%7B2a%7D
Markdown![equation](https://mathpad.ai/api/v1/latex2image?latex=%5Cfrac%7B-b+%5Cpm+%5Csqrt%7Bb%5E2-4ac%7D%7D%7B2a%7D)
HTML<img src="https://mathpad.ai/api/v1/latex2image?latex=%5Cfrac%7B-b+%5Cpm+%5Csqrt%7Bb%5E2-4ac%7D%7D%7B2a%7D" alt="equation" />

Ready-to-Use Examples

Click any tile to copy the full URL

Default
Default
SVG format, scale 2format=svg
PNG Output
PNG Output
Raster image formatformat=png
High Resolution
High Resolution
PNG at 4x scaleformat=png&scale=4
Custom Color
Custom Color
Blue equation textcolor=1976D2
Dark Mode
Dark Mode
White on dark backgroundcolor=ffffff&bg=1e1e1e
Compact
Compact
PNG at 1x for inlineformat=png&scale=1

API Parameters

Customize your rendered equations

EndpointGET https://mathpad.ai/api/v1/latex2image?latex=YOUR_LATEX
latex
required
string
URL-encoded LaTeX string to render
format
optional
string
Output format: svg (default) or png
Default: svg
scale
optional
number
Scale factor 1-4 (default: 2)
Default: 2
color
optional
string
Text color as hex code (e.g., #000000)
Default: #000000
bg
optional
string
Background color as hex code (transparent for SVG)
Default: transparent

Free to Use

If you find it useful, please consider adding a link back to MathPad

HTML<a href="https://mathpad.ai" target="_blank" rel="noopener">Rendered by MathPad</a>

Need More?

Questions, feature requests, or want to integrate at scale? Let's talk.