SVG to PNG

Rasterize SVG vectors to PNG

Click or drop an SVG file hereChoose an SVG file

Background

About SVG to PNG

SVG to PNG turns a vector drawing into a PNG image of the size you choose. When the file is opened, the width and height boxes are filled from the SVG's own width and height, or its viewBox, with the longer side set to 512 pixels; while "Keep the SVG's proportions" is checked, changing one side updates the other. The background stays transparent, or you can fill it with a color. Because the SVG is drawn fresh at the chosen size, a large PNG stays sharp. There is no DPI setting: sizes are in pixels. The drawing is rendered by your browser on this page.

How to convert SVG to PNG

  1. 1Pick an .svg file in the upload area; the size boxes fill in from the drawing.
  2. 2Type a value in "Width (px)" or "Height (px)", or click one of the 512, 1024, or 2048 px wide buttons.
  3. 3Under "Background", keep "Transparent" or choose "Color" and pick it.
  4. 4Click "Convert to PNG", check the preview of the PNG, then click "Download".

Formats and limits

Input format
SVG (.svg), one file
Output format
PNG at the width and height you set
Largest PNG
On a computer, 32,767 px per side and 268 MP in total; a larger size is refused before drawing
On iPhone and iPad
The same numbers are accepted, but the result is assembled in memory at four bytes per pixel, so a very large PNG can exceed what Safari gives a page

Where your file is processed

The SVG is loaded as an image by your browser and painted onto a canvas here, so the drawing is not uploaded. If drawing or encoding the PNG fails, the cleaned error, the tool's name, and your browser's name and version are sent to our error log; the SVG and its name are not included.

Frequently asked questions

Can I set a DPI for printing?

No. The size is set in pixels. For print, multiply the printed width in inches by the dots per inch you need and type the result in "Width (px)".

Will the PNG keep the transparent background?

Yes, when "Transparent" is selected under "Background", which is the starting choice. Select "Color" to fill the transparent parts, for example with white for a document.

Can I change the width without changing the height?

Yes. Uncheck "Keep the SVG's proportions", then type both values; the drawing is stretched to fill them. With the box checked, one side follows the other.

Tips and tricks

  • ✓For a favicon, convert the SVG to a square PNG at the largest icon size you need here, then build the icon with PNG to ICO.