SVG to PNG Converter

  • 100% free
  • No sign-up
  • Runs on your device

How do I convert an SVG to a PNG? Drop your file below and it converts straight away. Because an SVG has no fixed size of its own, the tool shows you the size it found and lets you set an exact pixel width before you download.

SVG files
Drag them in, click to pick them, or paste one. As many at once as your device can hold, and .svgz works too.

Or press Ctrl+V (Cmd+V) to paste a file, or the markup itself.

What size will your PNG be?

An SVG stores shapes, not pixels, so nothing in the file has to say how big it is. Most of them say it anyway, in one of two places: a width and a height on the root element, or a viewBox that sets up the drawing's own coordinates. Every file above shows which of the two it used, and what that comes to in pixels.

A viewBox with no width is the common case, and it is where sizes quietly go wrong. Given nothing else to go on, a browser draws that file 300 pixels wide, whatever is inside it. Here it comes out at the size of its own viewBox, and you can type a different number.

Pixel size

Type a width in pixels and the height follows the shape of the artwork. Ask for 4096 if you want it: the vector is redrawn at whatever size you name rather than stretched, so there is no resolution to run out of.

Output size

This only matters for a file measured in millimetres, centimetres, inches or points. 96 is what a browser uses; 300 is what a print shop asks for.

Export at 1×, 2× and 3× at once

Tick more than one and every file comes out at each size you picked, in a single pass. The 1× file keeps its own name and the rest get a suffix.

Convert SVG to JPG or WebP instead

PNG is the right answer nearly every time, because it is lossless and it keeps transparency. Pick JPG when the thing you are feeding will only take a photo format, and WebP when the file has to be small.

Output format

PNG is lossless, so there is no quality to set. Switch to JPG or WebP to use this.

Background

An SVG usually has nothing behind the artwork. Leave it transparent for PNG and WebP, or put a color underneath, which JPG needs because it has no transparency to fall back on.

Background

These settings are remembered for next time, in this browser, on this device. There is no account behind that.

Paste SVG code instead of a file

If the SVG is already on your clipboard as text, out of an editor or a component, paste it straight in. Nothing has to be saved to disk first.

The markup itself, starting with the opening svg tag.

Text, fonts, and things the file only links to

An SVG stores the name of a typeface, not the typeface itself. Your device supplies the font when the file is drawn, and if it does not have the one the file asked for, something else is used and the text changes shape. Any file where that happens says so on its row, before you download it.

The reliable fix is at the other end: convert the text to outlines in whatever drew the file, and the letters become shapes that need no font at all. The same goes for a photo an SVG links to rather than contains. It is not part of the file, so it cannot become part of the PNG.

Your files are converted on your device. There's no server here to upload them to.

Frequently asked questions

Drop in an SVG and download it as a PNG, JPG or WebP at a size you choose. Because an SVG carries no pixels of its own, every file shows the size it resolved to and which part of the file that number came from, before anything is converted. Override it with an exact pixel width, a multiplier, or a print DPI, run a whole folder of icons at 1×, 2× and 3× in one pass, and take the lot as a ZIP.

Related tools

HEIC to JPG Converter
Turn iPhone HEIC photos into JPGs, hundreds at a time.
WebP to JPG Converter
Turn WebP images into JPG or PNG, a folder at a time.
PNG to JPG Converter
Convert PNG to JPG or JPG to PNG, as many as you like.