// Runs in your browser

SVG to PNG

An SVG is a set of instructions, not a grid of pixels, so a browser can draw it at whatever size it is asked for. This page does that: pick a width, and the drawing is redrawn at that size and written out as PNG or WebP. The height follows the proportions of the drawing itself, and the size is written into the file before it is drawn, so the browser renders it at exactly that size rather than at the one the file happens to mention. The background is either transparent, which is the default, or white. A vector has no pixels of its own, so nothing in the export can be blocky.

Add a file

Drop a file here

or click to choose · paste with Ctrl+V · up to 20 MB

Press Ctrl+V (⌘ on a Mac) with an image on the clipboard

Preview

Your result shows up here.

Result—

Settings

Width2048px
Background
Format

Export

The format and the size of the file you take away. Nothing is uploaded — the conversion runs on your own device.

How to turn an SVG into a PNG in 3 steps

  1. 01

    Add the drawing

    Drop the SVG onto the page, choose it from your device, or paste it. This page takes SVG files, up to 20 MB, and nothing else — a drawing is text, so there is no bitmap to read.

  2. 02

    Choose the width to draw it at

    The width slider runs from 16 to 4096 pixels and starts at 2048. The height follows the proportions of the drawing, so a wide drawing does not come out square and a tall one is not squashed. The size is written into the drawing before it is drawn, which is what makes the result sharp.

  3. 03

    Pick the background and the format, then download

    The background is transparent by default, or white if you want a solid card behind the drawing. The file is written out as PNG by default and WebP is one click away. The panel shows the size and the weight of the result, and Download writes it to your device.

A vector is redrawn, so the export is sharp at any size

A bitmap is a fixed grid of pixels: ask for more of it and the extra is made up of bigger blocks. A vector is a set of instructions, so the browser draws it again at whatever size it is given and the lines stay clean. That is the whole difference between an SVG and a PNG, and it is what this page is for. The width you choose is written into the drawing itself before anything is rendered, so the drawing is not scaled up from a small copy and then pasted — it is drawn at that size in the first place. The height is not yours to set: it follows the proportions the drawing declares, so a square stays square and a wide banner stays wide. The background is transparent or white, and the output is PNG by default, or WebP. The honest limit is that the drawing has to stand on its own — a file that pulls in an outside picture or a web font is drawn without them, so those parts are missing. This page is the single-picture version: it draws one vector as a picture. When a whole folder of icons has to become PNG, the Batch SVG to PNG draws every one of them at the same size and hands back a single archive.

Frequently asked questions

Why is the export sharp when my SVG looks blurry elsewhere?

Because it is drawn again rather than enlarged. A bitmap can only be scaled by duplicating and blending its existing pixels, which is what makes it go soft. A vector holds the shapes themselves, so the browser re-draws them at the size you ask for and the edges come out clean. The width you choose is written into the file before it is drawn, so the drawing is rendered at that size rather than stretched from a smaller one.

Why can I only set the width and not the height?

Because the drawing already knows its own proportions, and overwriting them would distort it. The height is calculated from the width using the ratio the file declares, so a square stays square, a wide drawing stays wide and a tall one is never squashed. If the file declares no size at all, the export falls back to a square of the width you chose.

Can I get a transparent background?

Yes, and that is the default. The background setting offers transparent or white, and with transparent the PNG keeps the alpha channel, so anything the drawing does not cover stays see-through. Choose white if the file is going somewhere that has no background of its own, such as a slide or a document. WebP keeps transparency as well.

What happens if my SVG uses an outside image or a web font?

Those parts are left out. The drawing is loaded on its own, so a file that links to a picture hosted elsewhere or to a font from a website is drawn without them, and you will see them missing in the export. The fix is to make the file self-contained: embed the image as data inside the SVG, and either outline the text as shapes or use a font the drawing carries with it.

What size should I export at?

At the size the picture will be used, or larger if it may be shown bigger later. The width slider runs from 16 to 4096 pixels and starts at 2048, which is enough for most screens and for a slide. Going up in size costs file weight rather than sharpness, so there is little reason to pick 4096 for a picture that will be read at 400 pixels wide.

The drawing is read in your tab and stays there

Everything this page does happens in the browser tab you are reading this in. The SVG is read as text there, its size is written in there, the browser draws it there and the canvas is encoded there; no request is made after the page has loaded, so there is nothing on a server to delete afterwards. SVG files of up to 20 MB are accepted, and the download you take away is produced from the bytes the browser encoded on your own machine.