FREE API
LaTeX to Image
verifiedFree to use • No signup required
Try It Live
Enter any LaTeX expression and get a ready-to-use URL
Preview
SVG
Format
Scale: 2x
Text
Background
Copy Output
URL
https://mathpad.ai/api/v1/latex2image?latex=%5Cfrac%7B-b+%5Cpm+%5Csqrt%7Bb%5E2-4ac%7D%7D%7B2a%7DMarkdown
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
Defaultcontent_copy
SVG format, scale 2format=svgPNG Outputcontent_copy
Raster image formatformat=pngHigh Resolutioncontent_copy
PNG at 4x scaleformat=png&scale=4Custom Colorcontent_copy
Blue equation textcolor=1976D2Dark Modecontent_copy
White on dark backgroundcolor=ffffff&bg=1e1e1eCompactcontent_copy
PNG at 1x for inlineformat=png&scale=1API Parameters
Customize your rendered equations
Endpoint
GET https://mathpad.ai/api/v1/latex2image?latex=YOUR_LATEXlatexrequired
string
URL-encoded LaTeX string to render
formatoptional
string
Output format: svg (default) or png
Default:
svgscaleoptional
number
Scale factor 1-4 (default: 2)
Default:
2coloroptional
string
Text color as hex code (e.g., #000000)
Default:
#000000bgoptional
string
Background color as hex code (transparent for SVG)
Default:
transparentFree 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.