# Mermaid to SVG, PNG, or JPG image converter

Export Mermaid diagram text as a standalone SVG, PNG, or JPG image file. In the main editor, Mermaid code blocks inside Markdown can also be exported as images in one batch.

## Product surface

- Web route: https://depapel.ginylil.com/mermaid-to-image
- API route: https://depapel.ginylil.com/api/mermaid/render
- Batch API route: https://depapel.ginylil.com/api/mermaid/render-batch
- MCP tool: render_mermaid_image_direct

## API request

```json
{"mermaid":"flowchart TD\nA-->B","format":"svg","theme":"github","filename":"diagram"}
```

Supported formats are `svg`, `png`, `jpg`, and `jpeg`. The `jpg` alias renders as `image/jpeg`.

## Related pages

- [Open the renderer](https://depapel.ginylil.com/mermaid-to-image)
- [Markdown to PDF](https://depapel.ginylil.com/markdown-to-pdf)
- [Markdown to DOCX](https://depapel.ginylil.com/markdown-to-docx)
- [Capabilities](https://depapel.ginylil.com/capabilities)
