SVG to PNG Converter API: SVG Code or URL to PNG Image avatar

SVG to PNG Converter API: SVG Code or URL to PNG Image

Pricing

from $2.00 / 1,000 image converteds

Go to Apify Store
SVG to PNG Converter API: SVG Code or URL to PNG Image

SVG to PNG Converter API: SVG Code or URL to PNG Image

Convert SVG to PNG. Paste SVG code or give SVG file URLs, get a PNG download link plus a ready data:image/png;base64 URI. Set width and background. Batch input, one JSON row per image. For AI agents that draw charts or icons as SVG, and developers. Failed items are never charged.

Pricing

from $2.00 / 1,000 image converteds

Rating

0.0

(0)

Developer

Broke to Built

Broke to Built

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

SVG to PNG Converter API: SVG Code or URL to PNG Image

Paste SVG code or give SVG file URLs. Get a PNG download link and a ready data:image/png;base64 URI back. One JSON row per image.

You give itYou get backYou pay (Free plan)
SVG markup, SVG URLs, or a list of either; optional width and backgroundA PNG file in the run's storage, its link, width/height, byte size, and a data URI$0.002 per image converted

Failed items are written to the dataset with the reason and are never charged.

Try it in one click

The input form is pre-filled with a small sample SVG. Press Start.

{}

Real output from that input (run on 2026-11-11, link shortened):

[
{
"ok": true,
"source": "text#1",
"width": 240,
"height": 120,
"pngBytes": 3986,
"pngKey": "image-0001.png",
"pngUrl": "https://api.apify.com/v2/key-value-stores/.../records/image-0001.png?signature=...",
"dataUri": "data:image/png;base64,iVBORw0KGgo..."
}
]

Who this is for

  • AI agents and LLM apps that draw charts, diagrams or icons as SVG but need a PNG to show in chat, email, Slack or a PDF.
  • Developers who need SVG rasterized server-side without installing a headless browser.
  • No-code builders (Make, Zapier, n8n) who get SVG from one tool and must hand PNG to the next.

Input

FieldWhat it does
svgOne SVG as markup or as a URL.
svgUrlsMany SVG URLs at once.
svgItemsMany SVG markup strings at once.
widthOutput width in pixels; height keeps the aspect ratio. Empty = the SVG's own size.
backgroundFill colour, e.g. white or #ffffff. Empty = transparent.
includeDataUriAlso return the PNG as a data URI (up to 1.5 MB).
maxFileSizeMbSkip SVG files larger than this.

Up to 200 images per run. Text in the SVG renders with DejaVu, Liberation or Noto fonts.

Output

One row per input. ok: true rows have the PNG link (pngUrl), size and optional dataUri. ok: false rows carry an error and are not charged.

Pricing

Pay per event: $0.002 per image converted plus a tiny $0.00005 start fee. No subscription. Failed images cost nothing.

FAQ

Does it run JavaScript inside the SVG? No. Scripts are ignored, which keeps it fast and safe.

Can I get a bigger PNG? Set width, e.g. 1024 or 2048.

Built by Broke to Built. Questions: eli@broke2builtai.com.