TheFileTools

How to convert SVG to PNG

Turn an SVG logo or icon into a PNG picture, and how to control the pixel size of the result.

An SVG is a drawing described as shapes, so it stays sharp at any size. That is ideal for designers and awkward everywhere else: social networks, office documents, email signatures and most upload forms want a normal pixel picture. PNG is the natural target because it keeps sharp edges and transparency.

Steps

  1. Open SVG to PNG.
  2. Choose the .svg file, or several. They are drawn by your browser on your device.
  3. Check the pixel size shown next to the result.
  4. Download the PNG, or use Download all (ZIP) for a set of icons.

The size comes from the SVG

This tool has no field for the output size. The PNG is as large as the SVG says it is. An icon that declares itself as 24 by 24 produces a 24 by 24 pixel PNG, which is tiny.

To get a larger, sharp PNG, change the size inside the SVG first. An SVG is a text file: open it in a text editor and raise the width and height values in the first tag, keeping the proportions, then convert. Enlarging the finished PNG with Resize image also works, but it stretches pixels and the edges turn soft. Making a PNG smaller that way is fine.

An SVG that states no size at all may come out at a size the browser picks, or fail to open.

What to check in the result

  • Transparency is kept. An SVG without a background gives a PNG without one. If you need a white background, PNG to JPG adds it.
  • Fonts: text is drawn with fonts installed on your device. If the SVG names a font you do not have, a substitute is used and the text can shift.
  • Linked files: pictures or fonts that the SVG loads from elsewhere are generally not drawn.

For a website icon in all the usual sizes, Favicon generator is the quicker route.