Vector to pixels · Local processing

SVG to PNG Converter

Rasterize a self-contained static SVG into PNG at a chosen size, with transparent or white background and a local preview.

How to use SVG to PNG Converter

  1. Paste a complete SVG document with a viewBox or numeric dimensions.
  2. Choose PNG dimensions and a background.
  3. Convert, inspect the fitted image, and download PNG.

Rasterize vector artwork at an explicit size

The SVG is fitted inside the target canvas with its aspect ratio preserved. A larger PNG contains more pixels, while the original SVG remains the editable vector source. Transparent output retains the canvas alpha channel; white output paints an opaque white background first. The output dimensions are limited to 4096 per side.

Use self-contained static SVG input

The converter accepts ordinary SVG geometry, text, gradients and local fragment references. It rejects scripts, event handlers, animation, foreignObject, embedded images, style elements, external links and external URL references. Supply a viewBox when the artwork uses percentage dimensions. System fonts may differ across devices; convert text to paths in your design application when exact lettering is required.

Example input

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 80"><rect width="120" height="80" rx="12" fill="#6366f1"/><circle cx="60" cy="40" r="22" fill="white"/></svg>

Can this load fonts or images from an external URL?

No. Keep the SVG self-contained. External references are rejected rather than fetched.

Is input uploaded?

Processing takes place in your browser. This tool does not send your input or selected files to a conversion API.

Related tools and guides

Browse all developer tools