Skip to content
ImageDoctor

SVG to PNG Converter

Turn SVG logos, icons and diagrams into transparent PNGs for sites and apps that won't accept SVG.

Drop SVG images to convert to PNG

Add SVG files and they're drawn and saved as PNG, with transparency kept.

Processed locally in your browser

JPG · PNG · WebP · AVIF · GIF · BMP · TIFF · SVG

Common conversions

Converting a transparent PNG to JPG flattens transparency onto a background colour you choose. Animated GIFs are flattened to their first frame.

Converting SVG to PNG

Add SVG files above and download PNGs. Your browser draws each SVG to pixels and saves the result as a PNG, so transparent areas stay transparent. The one decision that matters is the pixel size, because a PNG is only sharp up to the size it was made at.

What changes

Result
TransparencyKept, including anti-aliased edges
SharpnessFixed at the PNG's pixel size. Enlarging the PNG later blurs it, unlike the SVG
File sizeDepends on pixel size, not on how complex the drawing is
Scripts and animationScripts don't run, and animation isn't kept: one still frame is saved
TextDrawn with fonts installed on your device; a missing font is substituted

How the PNG's size is chosen

The SVG is drawn at the size its own file declares, read from the width, height and viewBox attributes on its root <svg> element:

  • `width` and `height` set: that size, in pixels. Physical units are converted at 96 pixels per inch, so width="2in" gives 192 px and width="50mm" about 189 px.
  • Only a `viewBox`, or percentage sizes: the viewBox's width and height become the pixel size. A viewBox="0 0 24 24" icon comes out 24 × 24.
  • Neither: the size your browser gives an image with no dimensions — 300 × 150 px in Chrome, the web's standard default. Add a viewBox, or width and height, rather than relying on it.

Very large declared sizes are scaled down to fit what a browser canvas can hold.

Getting a larger PNG that stays sharp

Switching on Resize while converting works on the drawn pixels. Making the PNG smaller than the SVG's declared size is fine. Making it larger enlarges pixels, so edges go soft — the same as enlarging any PNG.

  1. Open the SVG in a text editorAn SVG is plain text. Find the opening <svg …> tag at the top.
  2. Set the size you needChange width and height to the pixel size you want, keeping their ratio, for example width="1024" height="1024" for a square icon. Leave the viewBox as it is; it controls what is drawn, not how big.
  3. Convert it hereThe browser now draws the vector at that size, so every edge is sharp.

PNG, or something else?

  • PNG — logos, icons and diagrams for platforms that won't take SVG, with the transparency kept.
  • WebP — the same, but smaller, for a website. Choose WebP in the format menu after adding the file.
  • ICO and favicon sizes — use the Favicon Generator, which takes the SVG directly.
  • Keeping the SVG — on your own website, the SVG itself is usually the better file. See the SVG format.

Common questions

Yes. Areas of the SVG with nothing drawn on them stay transparent in the PNG.

The size the SVG declares in its width and height attributes, or its viewBox if those are missing or percentages. An SVG with neither gets the browser's default image size, which in Chrome is 300 × 150 pixels, so it is worth adding a viewBox first.

Resizing works on the drawn pixels, so enlarging past the SVG's own size stretches them. Raise the width and height in the SVG file instead, then convert, and the vector is drawn sharply at the new size.

Browsers don't load images, stylesheets or fonts that an SVG links to from another file when it is drawn as an image. Embed those resources in the SVG, or convert text to outlines, and convert again.