Tutorials

How to Convert SVG to PNG (Online, Browser, Inkscape, Command Line)

SVG Genie TeamSVG Design Expert & Technical Writer at SVG Genie
||5 min read

Reviewed by SVG Genie Editorial Team

To convert SVG to PNG, open the SVG to PNG converter, upload the file or paste the code, pick a scale (1x–4x), and download. It runs entirely in your browser, so your file is never uploaded and transparency is kept. If you have raw markup instead of a file, use SVG code to PNG.

An SVG is resolution-independent. A PNG is fixed pixels. Converting means choosing a size, so export at the largest size you will actually display.

Method 1: Online, in your browser (fastest)

  1. Open SVG to PNG.
  2. Drop in a .svg file, or paste code in SVG code to PNG.
  3. Choose 1x, 2x or 4x (use 2x or more for retina displays).
  4. Download the PNG.

Need a different format? Use SVG to JPG, SVG to WebP or SVG to PDF.

Method 2: Any web browser

Open the SVG in Chrome or Firefox, take a screenshot, or draw it onto a <canvas> and call toDataURL('image/png'). It works, but the resolution is capped at screen size. The online converter does this properly at 4x.

Method 3: Inkscape (free desktop)

  1. Open the SVG.
  2. File → Export (Shift+Ctrl+E).
  3. Choose PNG, set the width or DPI, and click Export.

Method 4: Command line (batch)

With Inkscape 1.x:

inkscape logo.svg --export-type=png --export-width=1024

With rsvg-convert:

rsvg-convert -w 1024 logo.svg -o logo.png

Pick the right size

UseExport size
Website imageDisplay width × 2
App icon1024×1024 (see app icon sizes)
Favicon32, 180, 512px (use the favicon generator)
Social post1080–2048px wide
Print300 DPI at print size

Fix blank or broken PNGs

Should you convert at all? For logos and icons on the web, SVG is usually the better format. See SVG vs PNG. For the reverse direction, read how to convert PNG to SVG. For JPG output, see the SVG to JPG guide.

Create your own SVG graphics with AI

Describe what you need, get a production-ready vector in seconds. No design skills required.

Try SVG Genie Freearrow_forward

About This Article

This article was written by SVG Genie Team based on hands-on testing with SVG Genie’s tools and years of experience in vector design and web graphics. All recommendations reflect real-world usage and are reviewed by the SVG Genie editorial team for accuracy.

About the Author

SVG Genie Team

SVG Design Expert & Technical Writer at SVG Genie

SVG Genie Team is a vector design specialist and technical writer at SVG Genie with years of hands-on experience in SVG tooling, AI-assisted design workflows, and web graphics optimization. Their work focuses on making professional vector design accessible to everyone.

More articles by SVG Genie Teamarrow_forward

Ready to Create Your Own Vectors?

Start designing with AI-powered precision today.

Get Started Freearrow_forward