Nothing you open here is ever uploaded

Convert SVG to PNG

A vector has no fixed size, so the width you type is the width you get, with the height following the drawing’s proportions. The box starts at 1024 pixels. Set it to 0 and a size read out of the file is used instead — its width and height, or its viewBox. When the exact size matters, type it rather than leaving the box at 0.

This page loads no libraries at all. The work is done by the browser itself. Your file is read on your own machine and never sent anywhere. Open your browser’s network tab and watch while you use it.

Questions

What size will I get?

Whatever width you type, with the height worked out from the drawing’s proportions. Set the width to 0 and the size is read out of the file instead, from its width and height, or from its viewBox. Those two do not always agree, and which one is used depends on how the file was written, so type a width when the number matters.

What if the SVG has no width and height on it?

Then the viewBox is used. With neither of them the file states no size at all, and you get one of two things: your browser’s own 300×150 default, or a message saying the file has no size. Neither of those is your drawing, so add a viewBox to the file before converting it.

My SVG says width="100%". What happens?

A percentage is not a size in pixels, so it is skipped and the viewBox is read instead. The same goes for a width given in em, pt or mm. Only a plain number, with or without px after it, is read as a size.

Is the transparency kept?

Yes. Nothing is painted behind the drawing, so whatever is transparent in the SVG is transparent in the PNG. A JPEG could not do that. It has no way to store transparency, and those areas come out white.

Other images tools

Everything here is free and works the same way, in your browser.

New tools, once in a while

A new DeskKit tool lands every week or two. Leave an address to hear about it. Nothing else is ever sent, and one click removes you.