Convert an SVG file or SVG code into a PNG raster image at any resolution — with transparent or solid background options.
Max 5MB
PNG is supported everywhere, including platforms and older software that don't support SVG, such as some email clients or legacy applications.
Yes, if exported at a sufficiently high resolution — SVG is vector-based and renders cleanly at any size before being converted to PNG pixels.
Yes, select "Transparent" background mode to preserve transparency in the exported PNG.
No, conversion happens locally in your browser using the Canvas API.
This tool converts SVG (Scalable Vector Graphics) files or raw SVG code into PNG raster images at any resolution you choose, directly in your browser. Upload an .svg file or paste SVG markup, set your desired output dimensions and background, and download a PNG instantly.
SVG is a vector image format — it describes shapes, paths, and text mathematically, which means it can be scaled to any size without losing sharpness or quality. PNG, by contrast, is a raster (pixel-based) format — it stores a fixed grid of colored pixels, so scaling a PNG up beyond its native resolution causes blurriness. SVG is ideal for logos, icons, and illustrations that need to work at multiple sizes, while PNG is the more universally compatible format for situations where vector support isn't available or isn't needed.
Because SVG is resolution-independent, you can export it to PNG at any size without the source file itself needing to change — the tool simply renders the vector data at your chosen pixel dimensions. For sharp results at any target size (like a retina-display icon or a large print asset), export at 2x or higher than the size you'll actually display it at, since it's always safe to scale a high-resolution PNG down, but scaling a low-resolution PNG up introduces blur.
The tool loads your SVG (either from a file or pasted code) into an image element, then draws it onto an HTML canvas set to your specified output dimensions. If you choose a background color, it's filled in before the SVG is drawn on top; choosing "transparent" skips this step, preserving any transparency in the original SVG. The canvas is then exported as a PNG file ready to download.
All conversion happens locally in your browser using the Canvas API — your SVG file or code is never uploaded to any server.
If you're working with inline SVG markup from a codebase, a design export, or an icon library, the Paste SVG Code tab skips the file step entirely — paste the raw <svg>...</svg> markup and the tool parses it with DOMParser to read its native width and height before rendering it to canvas. This is faster than saving a temporary .svg file just to convert it, and it works for SVG snippets copied straight from a React component, a CSS-in-JS icon, or a Figma export panel.
When you select the Transparent background option, the tool skips filling the canvas with any color before drawing the SVG, so any pixels not covered by SVG shapes stay fully transparent in the alpha channel of the exported PNG. This only works correctly if the source SVG itself doesn't already have an opaque background rectangle — if your SVG was exported with a solid background shape included, you'll need to remove that from the SVG code first for true transparency.
Not every SVG file specifies width and height attributes — some only define a viewBox. When no explicit size is found, the tool falls back to the default 512×512 output dimensions, which you can then override manually. For best results with viewBox-only SVGs, set the output width and height to match the viewBox's aspect ratio so the image isn't stretched or distorted.
<svg> opening and closing tags with valid XML; a partial snippet copied from inside an SVG won't render.Common searches that lead people to this tool include "convert svg to png free," "svg to png transparent background," "svg code to image online," "export svg as png high resolution," and "vector to raster converter online." This tool handles each of these cases directly in the browser with no installation required.