Skip to content

SVG to PNG, JPG or an .svg file

Paste SVG markup, check the preview, and download it as an .svg — or as a sharp PNG, JPG or WebP at any size. Everything happens in your browser.

SVGPNGJPGWEBP

SVG code

Paste SVG code above, or open an .svg file.

Preview

Preview of your SVG Your SVG shows here

Download

The .svg is your code exactly as pasted. PNG and WebP keep transparency; JPG has no transparency, so the background colour above fills it. Height follows the SVG’s proportions.

How to save SVG code as a file

  1. Copy the SVG markup (from a design tool, an icon set or a web page) and paste it into the box.
  2. Check the preview — errors in the code are pointed out underneath.
  3. Name the file and download it as SVG, or as PNG, JPG or WebP at the width you need.

Private by design

Your code never leaves this page — it’s rendered and converted right in your browser. Need it inside a stylesheet instead? Use SVG to CSS url().

Frequently asked questions

How do I convert SVG code to a PNG?

Paste the SVG markup into the box, set the image width and click PNG. The height follows the SVG’s proportions.

Which formats can I download?

The .svg file exactly as pasted, or a PNG, JPG or WebP at the width you choose.

Does it keep transparency?

PNG and WebP keep transparency. JPG has none, so the background colour you pick fills it.

Is my code uploaded?

No. Everything is rendered and converted in your browser; your code never leaves the page.

What if my SVG has an error?

The preview shows what the browser can draw, and errors in the code are pointed out underneath it.

Related tools

Squozi SVG to PNG Converter — free, online, no sign-up

With Squozi's free SVG to PNG Converter you can turn SVG code into a PNG, JPG or SVG file you can download. Squozi also compresses videos, converts video and audio and turns MP4 into MP3. Everything works in any browser on a phone or computer: free, with no sign-up, no watermark and nothing to install, and uploaded files are deleted after 2 hours.