ToolDash
SVG to PNG

SVG to PNG Converter

Paste SVG markup or drop an .svg file, set the output width and height, and download a crisp PNG, JPEG or WebP. Because SVG is vector, you can export at any resolution without blur.

  • Free, no sign-up
  • Runs in your browser — nothing is uploaded
  • Instant results, no waiting on a server

Rasterize any SVG to PNG, JPEG, or WebP at any resolution — perfect for exporting icons at 2× / 3× / 4× for asset pipelines.

SVG Source
Or Drop SVG

Drop files here or click to browse

Preview

Width

Height

Paste or drop an SVG on the left.

How to convert SVG to PNG

  1. 1Paste your SVG code into the SVG Source editor, or drop an .svg file in the Or Drop SVG area. Click Load Sample to try it with an example icon.
  2. 2Set the output Width and Height. Dropped files start at 4x the SVG's own size, and the link button keeps the aspect ratio locked to the SVG's viewBox.
  3. 3Choose PNG, JPEG or WebP. For JPEG and WebP, a quality slider appears.
  4. 4Check the Preview, then click Download to save the image.

Rasterizing SVG: what to know

An SVG describes shapes mathematically, so it has no fixed pixel size. To rasterize SVG, you pick a pixel grid and ask the browser to paint the shapes onto it. Because the shapes are redrawn at the target size, a 24x24 icon exported at 512x512 stays perfectly sharp. That's the opposite of enlarging a PNG, which can only stretch the pixels it already has. So when you convert SVG to PNG, high resolution costs nothing in sharpness, only in file size. One SVG can feed every density an app needs.

The viewBox attribute defines the SVG's internal coordinate system and aspect ratio. This tool reads it to work out the native size and to keep width and height proportional when the aspect lock is on. If your SVG has no viewBox, it falls back to the width and height attributes. Exporting at a different ratio will stretch the drawing.

PNG is usually the right output for icons and logos: it's lossless and keeps transparent backgrounds. JPEG has no transparency, so anything see-through is filled with white. That makes SVG to JPG a poor choice for most icons, though it's fine for diagrams or illustrations on a solid white background. SVG to WebP gives you transparency at a smaller size if your target supports it. For pixel-precise icons, export at whole multiples of the viewBox size, such as 2x or 3x, so edges line up with the pixel grid.

Rendering uses the browser's own SVG engine, so the result matches what you'd see on a web page. One catch: SVG loaded as an image can't fetch external resources. Web fonts, linked images or stylesheets referenced by URL won't load, so convert text to paths or embed assets before exporting. Nothing is uploaded at any point.

When developers reach for it

Exporting @2x and @3x assets

Render one SVG icon at several sizes for iOS, Android or retina web assets that need raster files.

Making app icons and favicons

Export a vector logo at 512x512 or 1024x1024 as a source image for app stores and favicon generators.

Sharing graphics where SVG isn't accepted

Export SVG as PNG for slides, docs, chat apps and social posts that won't accept vector files.

Previewing SVG code

Paste markup from a design tool or icon library to see exactly how it renders before you ship it.

Frequently asked questions

How do I convert SVG to a high-resolution PNG?

+

Enter a larger Width and Height before downloading. SVG is redrawn at the size you choose, so a 2048-pixel export is just as sharp as a small one.

Does the PNG keep a transparent background?

+

Yes. PNG and WebP keep transparency. JPEG doesn't support it, so transparent areas are filled with white.

Why are my fonts or embedded images missing?

+

When an SVG is loaded as an image, browsers block external resources such as web fonts and linked files. Convert text to outlines or embed images as data URLs in the SVG first.

Why does my output look stretched?

+

The width and height don't match the SVG's aspect ratio. Turn on the aspect lock and re-enter one dimension to restore the correct proportions.

Is my SVG uploaded anywhere?

+

No. The SVG is rendered and encoded by your browser, and nothing is sent to a server.