Images

SVG to PNG

At the size you choose, drawn here.

On this device

Choose the size

1024 pixels wide unless you say otherwise. PNG keeps the transparent background; JPG asks what to paint behind it.

    Opened on this device · never transmitted

    What this tool does, exactly

    An SVG is a set of instructions with no pixels of its own, which is why the one question here is how big to draw it. Name a width, the height follows the file's proportions, and your browser's own renderer draws it — the same engine that displays the SVG on a web page, so it comes out the way it looks there.

    What it does
    Reads the SVG as text, works out its natural size from its width and height, or from its viewBox when it states none, scales that to the width you asked for, and has your browser draw it onto a canvas at exactly those pixels. The result names the size it drew and where the natural size came from.
    Why it strips things first
    An SVG is a program as much as a picture: it can carry script, click handlers, and references to images and stylesheets on other sites. Drawn into a picture the script does not run, but a reference to another site is still a request — and this site's promise is that opening a file makes none. So those are removed before drawing, and the result lists exactly what went. References inside the file itself, to its own shapes or to data: URIs, stay, because they are the picture.
    How big it can go
    The long side is capped at 8192 pixels, which is what a canvas holds reliably across browsers; a request past that is scaled down and the result says what was drawn. A 16-megapixel PNG of a logo is almost never what anyone needs, and it is the point where phones start failing quietly.
    Fonts and filters
    Text in an SVG is drawn with whatever font your browser has, so a file that names a font you do not have is drawn in a fallback — exactly as it would be on a web page. Filters, masks and gradients are drawn as your browser draws them, which is the same thing every viewer sees.
    It runs on the page, not in a worker
    Every other tool on this site works in a background thread. Drawing an SVG needs the page's own renderer, so this one runs in the tab; a very large or very complex file can make the page pause for a moment while it draws.

    About this tool

    What size should I choose?

    The size it will be shown at, or twice that for a screen with a high pixel density. A logo for a web page header is fine at 512 or 1024 wide; a poster for print wants the width at the printed size times the printer's dots per inch, which is why the cap sits at 8192. The height is worked out from the file's own proportions, so nothing is squashed.

    Is the transparent background kept?

    In PNG, yes. JPG has no transparency at all, so the transparent parts have to be painted a colour — white or black, your choice — and the result says which. If the picture is going onto a coloured page, choose PNG.

    Why does the result say something was removed?

    Because the file contained script, an event handler, or a reference to an image, font or stylesheet on another site. Those are not part of the drawing, and fetching one would be a request from this page to somewhere else, which this site does not make. What was removed is named so you can decide whether the picture is complete; a file whose whole image is an external photograph will come out without it.

    Can I convert PNG to SVG instead?

    Not here, and not honestly anywhere without a warning. Turning pixels into vectors means tracing shapes and guessing, and the result is only good for simple flat artwork. This tool goes the other way, from instructions to pixels, which is exact.

    Is my file uploaded?

    No. The SVG is read, checked and drawn in this browser tab, and the site has no endpoint that could receive it. Diagrams and logos are frequently the unreleased kind, and a format change does not need a copy of them.

    More images tools · All 50 · How they work