Tools

SVG to PNG: Export Vector Graphics at Any Resolution

ZeroPhantom 2026-02-26 4 min read

SVG is perfect for logos and icons. PNG is what most platforms actually accept. Here's every way to convert between them.

Online (Quickest)

ZeroPhantom converter — upload SVG, specify dimensions, download PNG. No install.

Inkscape (Command Line)

inkscape --export-type=png --export-width=1200 logo.svg -o logo.png

Python (cairosvg)

import cairosvg
cairosvg.svg2png(url='logo.svg', write_to='logo.png', output_width=1200)

Resolution Guidelines

  • Social media avatar: 400×400px minimum
  • Twitter/X header: 1500×500px
  • Email header: 1200px wide (600px @2x for retina)
  • Print (300 DPI): 4-inch print = 1200px width
  • Favicon: 32×32 and 16×16px

Preserving Transparency

PNG supports alpha channel. SVG backgrounds are transparent by default — conversion preserves this. For white background add style="background:white" to the SVG root before converting.

Convert SVG to PNG free — instant download →
ZeroPhantom Support AI-Powered · Usually replies instantly
👋 Hi there! Let's chat.
Fill in your details to get started.
ZeroPhantom Support