Skip to content
ToolPlankDEV
Image & SVG Tools
100% In-Browser Execution

Updated:

SVG to PNG Converter Online

Convert SVG to PNG in your browser. Drop an .svg file or paste SVG code, choose PNG, JPG or WebP, pick the size and background, then download the image. Your file is never uploaded.

Processing in browser...

Loading the tool. It runs entirely in your browser, so your data is never uploaded.

More free tools you may need next.

Quick Guide

How to use SVG to PNG

Simple step-by-step instructions to get the exact output you need.

  1. 01

    Add your SVG

    Paste the SVG code into the Paste SVG code tab, or open the SVG file tab and drop an .svg file. The Sample button loads a small graphic so you can see the result first.

  2. 02

    Choose format, size and background

    Pick PNG, JPG or WebP. Choose 1x for the original size, 2x to 4x for sharper or larger images, or enter a custom width in pixels. Keep the background transparent for PNG and WebP, or set white or any colour.

  3. 03

    Check the preview

    The image on the right updates as you change an option. The badge above it shows the final width and height in pixels, and the footer shows the file size.

  4. 04

    Download or copy the image

    Press Download to save the file. Press Copy image to put a PNG on your clipboard and paste it straight into a document, chat or design tool.

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.
  • 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.

Frequently Asked Questions

Technical Q&A for SVG to PNG

Common questions about edge cases, character encoding, and privacy guarantees.

If the XML is SVG, yes. Paste it here (this works as an xml png and xml photo converter) and choose PNG for a transparent image, JPG for a smaller photo-style file or WebP. An Android vector drawable can be turned into an SVG first with XML to SVG. Other kinds of XML hold data, not a picture, so there is nothing to draw.

No. The SVG is read and drawn inside your browser tab and the image is created on your device. Nothing is sent to ToolPlank or anyone else.

Choose PNG as the format and leave the background on Transparent. Any part of the SVG that has no fill stays see-through. WebP also keeps transparency, JPG does not.

The browser draws the SVG without loading outside resources. Images linked from other sites and web fonts that are not embedded will be missing. Embed images as data URIs and convert text to outlines before exporting.

At 1x it uses the width and height of the SVG, or its viewBox if there is no size. Choose 2x to 4x or a custom width to make it larger. The exact pixel size is shown above the preview.

Only if the XML is an SVG. SVG is an XML format for graphics, so SVG markup works. A general XML file such as a data feed or a config file holds no drawing instructions, so there is nothing to render.

To protect your browser from running out of memory the tool stops at 8,192 pixels on a side. Pick a smaller multiplier or width.