SVG to PNG Converter

Turn SVG files into PNG images at any size from 16 to 2048 px.Transparency is kept, and the files never leave your browser.

How to convert an SVG to PNG

  1. Add your SVG. Drop one or more files on the page, pick them with the file button, or paste SVG code. Each file can be up to 1 MB, and 30 fit at a time. Very detailed drawings can be refused below 1 MB.
  2. Set the size. Type the longer side in pixels, from 16 to 2048, or pick a preset. The other side follows the SVG's viewBox, so a 200 × 100 logo at 1024 becomes 1024 × 512.
  3. Add a background if you need one. The PNG is transparent by default. Choose a circle, rounded square, or square, then set its color and padding.
  4. Download. One file downloads as a PNG, or you can copy it and paste it into a slide or document. Several files download together as one ZIP.

Why the file never leaves your browser

The converter is a page, not a service. Your browser reads the SVG, draws it on a canvas at the size you picked, and saves the canvas as a PNG. No request carries the file, its name, or its contents. You can confirm that in the network panel of your browser's developer tools.

Nothing is saved either. The files stay in the page's memory and are gone when you close or reload the tab. The one exception is Edit in the editor, which adds the file to My icons in this browser so the editor can open it.

Before anything is drawn, the SVG is cleaned: scripts, event handlers, links, and references to outside files are removed. A file from an unknown source is safe to open here, and the row tells you when something was removed.

Size, shape, and transparency

  • The size is the longer side. The converter draws the vector at the size you ask for, so a 24-unit icon exported at 1024 px has sharp edges. Bitmap images embedded in the SVG are the exception: they blur when enlarged.
  • The viewBox decides the shape. The PNG has the proportions of the viewBox. The width and height on the <svg> tag are ignored, so the file's own pixel size does not limit the export. An SVG with no viewBox uses its width and height instead, when they are plain numbers or pixels. One with neither cannot be converted.
  • Transparent unless you add a background. Every pixel the SVG does not paint stays transparent. A background paints only its shape, so the corners outside a circle or rounded square stay transparent too.
  • A background makes the PNG square. The artwork is centered inside the square with the padding you set, up to 30% per side. For a solid white PNG, choose Square, set the color to #ffffff, and lower the padding to 0.
  • Colors stay as drawn, with one catch. Icons that use currentColor come out black, because a file converted on its own has no text color to inherit. If the icon uses a single color, Edit in the editor lets you pick it there.
  • Text uses the fonts on your device. An SVG drawn as an image cannot load web fonts. Convert text to outlines in your design tool first.

To script the conversion instead, the guide covers four ways with code: canvas, sharp for Node.js, the command line, and a headless browser.

Read the guide: How to Convert an SVG to PNG

Need favicon.ico and app icons rather than one PNG? The Favicon Generator builds the whole set.

FAQ

Is the converter free, and are my files uploaded? It is free, with no account and no watermark. The SVG is read, drawn, and saved as a PNG inside your browser, so the file is never uploaded.

What is the largest PNG I can make? 2048 px on the longer side. The smallest is 16 px. If you need a larger image, keep the SVG: it scales without limit.

Why did my icon turn black? The SVG uses currentColor, which means "use the text color around me". A file converted on its own has nothing around it, so the color falls back to black. If the icon uses one color, choose Edit in the editor, pick a color, and export the PNG there.

Can I get a white background instead of a transparent one? Yes. Choose the Square background, set its color to #ffffff, and set the padding to 0. The PNG becomes a square with the artwork centered. A filled background on a non-square image is not available.

Can I convert several SVGs at once? Yes, up to 30 at a time. They share one size and one background setting and download as one ZIP. Each file keeps its own proportions unless a background is on.

Why was my file refused? A file is refused when it is larger than 1 MB, is not an SVG, has no viewBox or size, or is too complex: more than about 200,000 characters after cleaning, or so heavy that drawing it would freeze the page. Simplify it in your design tool or with an optimizer, then try again.