Paritian

Developers

SVG to PNG Converter

Turn an SVG drawing into a PNG at 1×, 2×, 4× or 8× its size, keeping the transparent background, in your browser.

Results

New size 1024 x 1024
New width 1024 px
New height 1024 px
Megapixels 1.05

What this tool does

An SVG is a set of drawing instructions, so it stays sharp at any size, but many places only accept pixels: social networks, email signatures, older apps, documents. Because the vector is redrawn at the size you pick rather than stretched, a 2× or 4× PNG is just as crisp as the original, and transparent areas stay transparent. If the file does not state its own width and height, the size is taken from its viewBox. Fonts the SVG expects to find on your computer, and images it links to on the web, may not come through; drawings with shapes and embedded fonts convert exactly.

Formula

PNG width and height = SVG size × scale; the drawing is redrawn at that size, not stretched

Variables

SymbolMeaningUnit
source_wOriginal width—
source_hOriginal height—
percentSize of the PNG—
OUTNew size—
OWNew widthpx
OHNew heightpx
MPMegapixels—

Worked example

  • Original width512
  • Original height512
  • Size of the PNG200
  • New size1024 x 1024
  • New width1024 px
  • New height1024 px
  • Megapixels1.05

Limitations

  • The calculation runs entirely in your browser. The values you type are never sent to a server.