deftools.io Media

SVG → PNG

Convert SVG images to PNG format. Customizable output size.

Input
Preview

About this tool

Converts an SVG image into a PNG raster file. Paste SVG markup or upload an .svg file, choose the output width/height and background color, and download the resulting PNG. The SVG is rendered at the chosen pixel size, so vectors stay crisp regardless of scale.

Typical use: turn an SVG logo or icon into a PNG thumbnail for a place that does not accept vector files ( favicons, social previews, Slack emojis, email signatures). For example, a 24×24 icon SVG exported at 512×512 produces a high-resolution PNG suitable for an app-store listing.

If the SVG has no explicit background, you can set a solid color (white, black, or transparent) so the PNG does not come out with empty alpha where you expected white.

FAQ

Why is my PNG coming out blank or cut off?

Usually the SVG lacks a viewBox or width/height, so the renderer cannot infer its dimensions. Open the SVG and ensure it has a viewBox attribute (e.g. viewBox="0 0 24 24") or explicit width/height. The tool also lets you set the output size explicitly.

Does it preserve transparency?

Yes — if the SVG has no background element and you select the transparent background option, the PNG keeps its alpha channel. Choose a solid color only when you need an opaque background.

Is there a file size limit?

The conversion happens in your browser via a canvas, so the practical limit is your device memory. Very large output dimensions (e.g. 8000×8000) may fail on low-memory devices; 2048×2048 is a safe ceiling for most hardware.

Related media tools

Copied!