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.
SVG code
Paste SVG code above, or open an .svg file.
Preview
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
- Copy the SVG markup (from a design tool, an icon set or a web page) and paste it into the box.
- Check the preview — errors in the code are pointed out underneath.
- 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.