SVG to PNG Converter

Turn an SVG graphic into a PNG image, right in your browser.

or drop files here

How to Convert SVG to PNGAll how-to videos
SV

SVG Format

Scalable Vector Graphics

An XML-based vector image format and W3C standard. Shapes, paths and text are described mathematically, so images scale to any size without losing sharpness.

  • Resolution independent
  • XML text
  • Supports animation and scripting
  • Styleable with CSS
PN

PNG Format

Portable Network Graphics

A lossless raster image format standardized as ISO/IEC 15948 and a W3C Recommendation, and a patent-free replacement for GIF.

  • Lossless compression
  • Alpha transparency
  • 8-bit and 16-bit channels
  • Supported by every browser

How to convert SVG to PNG

Follow these steps to convert SVG to PNG online.

    1

    Choose your SVG file, or several at once.

    2

    Wait while the converter turns each file into PNG.

    3

    Download each new PNG file. Your original file isn't changed.

What to know before converting SVG to PNG

  • A PNG is made of pixels, so it loses the SVG's resolution independence.
  • Transparency is kept in the PNG.
  • The PNG takes the size your browser reports for the SVG, drawn 1:1, with no scale option.
  • The PNG is a single still image; the page adds no handling for animation or scripts.
  • The conversion happens in your browser, so the SVG isn't uploaded.

About SVG files

What is an SVG file?

The W3C publishes SVG (Scalable Vector Graphics) as an open standard. SVG 1.0 became a Recommendation in 2001 and SVG 1.1 in 2003. An SVG file is XML text that describes a two-dimensional drawing as shapes, text and embedded images. It stores drawing instructions instead of pixels, so any size can be drawn without losing sharpness.

Being text has side effects. An SVG can be opened in a text editor, searched, indexed and compressed; a gzip-compressed copy uses the .svgz ending. CSS and JavaScript work with it, which lets an SVG be styled, scripted and animated; clipping paths, masks and filter effects are supported too. An SVG can stand alone or sit inside an HTML page, and all the major browsers display it.

SVG files typically hold website logos and icons, illustrations, diagrams, charts and maps. The media type is image/svg+xml.

Programs that open SVG files

Linux, Mac and Windows

  • Inkscape: native SVG editing.
  • GIMP: opens an SVG as a GIMP image in the usual way.
  • ImageMagick: reads and writes SVG, drawing it with Inkscape, RSVG or its own renderer.

Web, Windows, Mac and Linux

  • Firefox: displays SVG, as does every other major browser.

Web and Mobile

  • Chrome: displays SVG.

Mobile

  • Safari: displays SVG.

SVG and PNG compared

  • File endings: .svg or .svgz is image/svg+xml, and .png is image/png.
  • How the picture is stored: SVG keeps shapes and text as instructions. PNG keeps a fixed grid of pixels, compressed losslessly with DEFLATE.
  • Scaling: an SVG redraws cleanly at any size. A PNG blurs or turns blocky when enlarged past its pixels.
  • Transparency: both have it. An SVG is clear wherever nothing is drawn; a PNG records an alpha value per pixel.
  • Text: in an SVG it stays real text. In a PNG it becomes pixels.
  • Motion: SVG can animate. This page writes a single still PNG.
  • Color depth: PNG supports between 1 and 16 bits per sample; this page saves 8 bits per channel.
  • Outside files: an SVG is rendered as a standalone image here, so anything it links to, such as a picture, a stylesheet or a web font, is never fetched. What is embedded in the file, and fonts installed on your device, do appear.

How this page draws it: your browser renders the SVG at the size it reports, one to one, onto a transparent canvas, and the canvas is saved as a PNG. Nothing in this page scales the picture or caps its size.

Other ways to convert SVG to PNG

  • Inkscape (Windows, Mac, Linux): open the SVG and choose File > Export (Shift+Ctrl+E). On the Single File tab, pick Selection, Document, Page or Custom as the area, set the image size or DPI, choose PNG as the export format and click Export. The Background Color button sets what fills the background.
  • GIMP (Windows, Mac, Linux): bring the SVG into GIMP, then use File > Export As (Shift+Ctrl+E) to save it as a PNG. GIMP is a raster editor, so the drawing becomes pixels.
  • ImageMagick (command line): run magick input.svg output.png. ImageMagick draws SVG with Inkscape, RSVG or its own MSVG renderer.

Problems with SVG files

  • The PNG is smaller than you wanted: there is no scale option here. Export from Inkscape and set the image size or DPI there.
  • Text shows in the wrong font: lettering uses whichever fonts your device has, and a font the file links to over the web isn't loaded here.
  • The background looks black or checkered in some viewers: the PNG keeps the SVG's empty areas transparent, so what shows behind them depends on the viewer.
  • A linked picture is missing: pictures the SVG only links to are never loaded here. Embed them in the SVG before converting.
  • Many drawings to convert: choose them together, and the page draws the SVGs one after another and hands back a separate PNG for each, with no ZIP to unpack.
  • A site won't accept your SVG: upload the PNG instead, since a PNG is displayed by every major browser.
  • "Image decode failed.": the browser could not render the file. Fix it in a text editor or re-export it from your design tool.
  • You need a JPG or an icon: use the SVG to JPG converter or the SVG to ICO converter.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert an SVG to PNG?

Can you convert SVG to PNG without losing quality?

How do I get a high-resolution PNG from an SVG?

Does the PNG keep a transparent background?

Will text in the SVG still be editable?

What happens to animated or scripted SVGs?

Why are the fonts or linked pictures missing from my PNG?

Why does my SVG open as code?

What does "Image decode failed." mean for an SVG?

Can I convert more than one SVG at once?