Skip to content

SVG to PNG Converter

Render SVG markup to PNG at an exact size or a scale, with transparency kept and the output dimensions shown before you download.

Paste or choose an SVG

Rendering happens in this tab. Nothing is uploaded.

Size and output

Paste or choose an SVG to begin.

A transparent PNG at the size you choose appears here.

Scripts, event handlers, external references and embedded HTML are rejected before rendering. The output is a flat PNG; text and shapes stop being editable.

Your file is never sent to a server. It is read and processed by your own browser, and the results are not stored.

How to use it

  1. Choose an SVG file or paste its markup into the source box.
  2. Set a width, height or scale, and choose a transparent, white or custom background.
  3. Render the PNG, check the reported dimensions, then download.

Limits worth knowing

  • SVG files up to 5 MB of markup are accepted. A larger file is refused before parsing.
  • Scripts, event handlers, foreignObject, iframes, objects and external http(s) references are removed. An SVG that depends on an external font or image will render without it.
  • The output is a PNG rendered by this browser. Fonts must be available on the device or embedded in the SVG, and some CSS features render differently across browsers.
  • Export is capped by the same pixel ceilings as the other image tools, so an enormous requested size is clamped rather than attempted.

How the conversion works

The markup is parsed, dangerous elements and attributes are removed, and the cleaned SVG is serialised into a Blob URL. The browser then draws that image onto a canvas at the requested pixel size and encodes the canvas as PNG.

Because the browser does the rendering, the result is exactly what that browser would show: fonts, gradients, filters and masks are handled by the same engine as the page. It also means the source has to be self-contained to look identical everywhere.

Choosing the export size

SVG has no fixed resolution. An icon exported at 512 pixels can be used at 32 pixels with no loss, while a 32-pixel export cannot be enlarged. For favicons and app icons, export each size the platform asks for rather than scaling one PNG down.

Entering both width and height lets you force a non-proportional canvas, but the tool clamps the derived side when only one is given so the drawing keeps its shape. The reported dimensions are the ones actually produced.

Frequently asked questions

Does SVG to PNG Converter upload my files to any server?

No. SVG to PNG Converter runs in your browser, and the file is read there rather than sent to a server for processing. Our host still sees ordinary page-request metadata, which is described on the privacy page.

Is SVG to PNG Converter free to use?

Yes, SVG to PNG Converter is free, with no paid tier, no account, and no watermark added to your output. The limits are technical rather than commercial: file size, page count and supported formats are listed on this page.

What file formats and sizes are supported?

SVG to PNG Converter supports .svg files up to 5MB directly in your browser.

Does the PNG keep the SVG transparency?

Yes, when the background is set to transparent. PNG has an alpha channel, so unpainted areas stay see-through. Choosing white or a custom colour flattens the drawing onto that colour, which is useful when a downstream tool does not handle alpha.

Can I export an exact pixel size?

Yes. Enter a width, a height, or both. If you enter only one side, the other is derived from the SVG aspect ratio and clamped to the pixel ceiling, so the drawing is never distorted. The scale control multiplies the resulting size.

Why was my SVG refused?

The tool rejects markup that contains scripts, event-handler attributes, foreignObject, iframes, embedded objects or external references. Those constructs can execute code or fetch remote content while the image is being rendered, so they are removed before the browser sees the SVG.