Free tool

SVG to PNG

Paste SVG markup and get a PNG at any width, rendered in a real browser with the fonts the SVG names. The same call as POST /v1/conversions, which also turns PNG, JPEG, WebP, GIF and AVIF into the format and size you need.

Free, no key. 20 renders a minute per visitor.
your result appears here
the same call with your key
curl -X POST 'https://api.imageapis.com/v1/conversions?width=1200' -H 'X-API-Key: YOUR_KEY' -H 'Content-Type: image/svg+xml' --data-binary @logo.svg

What this is

The SVG goes into a page in headless Chromium, the same browser that renders every image here, and the page is captured at the width you ask for. Because it is drawn inline rather than as an <img>, the SVG can load web fonts: every family it names in font-family is fetched from Google Fonts by name before the capture. Text exported from Figma, or written by an agent, comes out in its own typeface. A converter built on librsvg or ImageMagick draws with the fonts installed on its server and quietly falls back to another typeface when one is missing.

An SVG is a drawing, so its width is free: a 64-pixel icon renders as crisp at 2048 as at 64. Leave the height off and it follows the SVG's shape. PNG and WebP keep transparency. JPEG has no transparency, so transparent areas fill with your background or white. Diagrams whose labels are HTML inside <foreignObject>, as Mermaid draws them, render too.

From code, or from an agent

Send the file itself and put the options in the query string:

curl -X POST 'https://api.imageapis.com/v1/conversions?width=1024&format=webp' \
  -H 'X-API-Key: YOUR_KEY' -H 'Content-Type: image/svg+xml' --data-binary @diagram.svg

Or send the markup as text in JSON, which is what an agent that drew the SVG does, with no base64 step:

{ "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\">…</svg>", "width": 1024 }

The response is an image record with a hosted url. Add "response": "binary" to get the file back instead. On the MCP server the operation is the convert_image tool; the agents guide shows how to connect one.

Other images

The same endpoint takes PNG, JPEG, WebP, GIF and AVIF, as a public url, an upload id, base64 data or the file as the body. Give width or height and the other side keeps the image's shape. Give both and fit decides what happens to the shape: cover crops, contain letterboxes, fill stretches and inside shrinks the image to fit within the box. An animated GIF or WebP gives its first frame. Typical uses are a WebP for the web, a JPEG thumbnail for email, or a PNG of an AVIF that a platform will not accept.

Each conversion is one image against your plan: up to 10 MB in and 4096 px a side out, kept at its URL for 30 days on Free and a year on paid plans.

Get a free key: 150 images a month API reference