How SVG to PNG Conversion Works
An SVG is a text file that describes shapes, paths and text with XML. A PNG is a grid of coloured pixels. To convert one into the other, the SVG has to be drawn at a chosen size and the result saved as pixels. This svg to png converter does that in your browser tab: it checks that the SVG is valid, works out its natural size, draws it on a canvas at the size you pick and saves the canvas as an image file.
Because the drawing is done by your browser's own SVG renderer, the output matches what you see when you open the SVG in that browser. No server is involved, so logos, product drawings and unreleased designs never leave your device.
Choosing PNG, JPG or WebP
- PNG: lossless and keeps transparency. The best choice for logos, icons, diagrams and screenshots with sharp edges.
- JPG: much smaller for photographic or colourful artwork, but it has no transparency. The tool fills the background with white or your chosen colour and lets you set the quality.
- WebP: usually smaller than PNG and JPG at the same quality and keeps transparency. It is supported by all current browsers.
If you only need to embed a small graphic in a web page, you often do not need an image file at all. An SVG can be placed in a page as it is, or turned into text with Base64 Encode when you need a data URI.
Size, Resolution and Transparent Backgrounds
SVG has no fixed pixel size, so the size options decide how sharp the image is. 1x uses the width and height written in the file, or its viewBox when those are missing. 2x and 3x give crisp images on high-density phone and laptop screens, and 4x or a custom width suits print, slides and large banners.
- Units such as pt, mm, cm and in in the width and height are converted to pixels at 96 per inch.
- Very large outputs are blocked at 8,192 pixels on a side so your browser tab does not run out of memory.
- Transparent keeps empty areas see-through in PNG and WebP. In JPG that area becomes white or the colour you choose.
Common Uses and Related Tools
- Social media and email: most platforms and email clients do not show SVG, so export a PNG or JPG.
- Documents and slides: convert an SVG logo or chart to PNG for Word, Google Docs or PowerPoint.
- App stores and ads: upload networks ask for PNG or JPG at an exact size.
- XML-based graphics: an SVG is XML, so people who search for xml to png or xml to jpeg can paste the SVG markup here. Other XML formats are not images and cannot be drawn.
To go the other direction, PNG to SVG traces a picture into a vector, and the swap button sends your result straight there. SVG to XML writes an Android vector drawable from the same code, and HTML to SVG wraps web content in a vector file.