ImageToSVG

How to Convert SVG to PNG

Convert any SVG file to PNG at exactly the resolution you need — for social media, website images, print, or platform uploads that don't accept SVG.

Preset:
Colors:
VTracer vectorization + SVGO optimizationPrivacy protected

Method 1: Browser (Quickest)

For a quick conversion, open the SVG in Chrome or Firefox and use the browser's built-in tools.

  • Open SVG file in Chrome: File > Open or drag file onto browser
  • Right-click the SVG > 'Save Image As' — saves as PNG
  • For high-resolution: use the DevTools device emulator to zoom
  • Screenshot tool: captures the exact rendered SVG at current display size
  • Limitation: you can't easily control exact pixel dimensions this way

Method 2: Inkscape (Recommended for Precision)

Inkscape offers precise DPI control for PNG export — the best choice when exact resolution matters.

  • File > Export PNG Image (Shift+Ctrl+E)
  • Set DPI (96 DPI for screen, 300 DPI for print, 600 DPI for high-res)
  • Alternatively set exact Width and Height in pixels
  • Export As: choose output filename and click 'Export PNG'
  • Batch export: Extensions > Export > Batch Export for multiple files

Method 3: Code (for automation)

For automated SVG-to-PNG conversion in CI/CD or scripting workflows.

  • Node: npm install sharp — sharp('file.svg').png().toFile('out.png')
  • Python: cairosvg library — cairosvg.svg2png(url='file.svg', output='out.png')
  • ImageMagick: convert -density 300 file.svg file.png
  • Puppeteer: headless Chrome for SVG screenshots at exact viewport
  • Inkscape CLI: inkscape input.svg --export-png=output.png --export-dpi=300

Frequently Asked Questions

What DPI should I use for SVG to PNG conversion?

72–96 DPI for web display, 150–300 DPI for standard print, 300–600 DPI for high-quality print or Retina screen assets. Higher DPI = larger file size.

How do I export an SVG as a transparent PNG?

SVG with no background converts to transparent PNG by default in Inkscape. In browser: right-click > Save Image As — only works if the SVG itself has no background.

Can I convert SVG to @2x and @3x PNG in one step?

In Inkscape, export multiple DPIs as separate files. For automation, use a shell script calling inkscape CLI with different --export-dpi values.

Why is my SVG to PNG conversion blurry?

Export at a higher DPI. If the SVG has fixed small pixel dimensions without viewBox, the rasterization produces a small image. Add a viewBox to the SVG before exporting.

Which is better for email: SVG or PNG?

PNG. Email clients have poor SVG support — only Apple Mail and Thunderbird render SVG. For email, export your SVG to PNG at the appropriate dimensions.

Related guides

Ready to Convert Your Image to SVG?

Free online converter — no sign-up, no watermarks, results in under 3 seconds.

Try It Free — Convert Image to SVG