ToolJutsu
All tools
Developer Tools

SVG to PNG

Convert SVG files into raster PNG images.

0 chars
Output scale
Output format
A transparent SVG exports as a transparent PNG unless you fill a background.
Processed on your device. We never see your files.

How to use SVG to PNG

What this tool does

This tool converts an SVG into a PNG or JPG raster image. SVGs are vector graphics — brilliant for scaling, but not every program, platform, or workflow accepts them. The tool takes your SVG, either pasted as markup or supplied as an .svg file, renders it through the browser’s image engine, draws it onto a <canvas> at the scale you choose, and exports either a transparent PNG or a quality-tuned JPG. You get a live preview, a download button, and an optional background colour for SVGs that would otherwise export with a transparent backdrop. The PNG output is the default; switch the Output format toggle to JPG when you need universal compatibility or a smaller file.

Why you might need it

Vector and raster formats each have their place, and you frequently need to cross between them. An icon designed as an SVG has to become a PNG to be used as a favicon source, an app store asset, an email graphic, or a social preview image. A logo built in vector form must be rasterized before it can go into a document, a slide, or a tool that simply does not understand SVG. Doing this by opening a full design application is slow when all you want is one export at one size. This tool does exactly that one job, quickly, and lets you pick the resolution so the result is crisp wherever it lands. Because everything runs in your browser, it is also a safe way to convert brand assets or unreleased artwork.

How to use it

  1. Paste your SVG markup into the input box, or drop an .svg file onto it (the Choose .svg file button works too).
  2. Pick an output scale: keeps the SVG’s native size, and multiply it, and Custom width lets you set an exact pixel width.
  3. If you need an opaque image, tick Fill background and choose a color.
  4. Click Convert to PNG. A preview appears below.
  5. Click Download PNG to save the file, named after its dimensions.
  6. Use Load sample to see a working example, or Clear to start over.

Common pitfalls

The transparency surprise is the one people hit most: a PNG exported from an SVG with no background is transparent, which looks like a blank or broken image on a white page. Enable Fill background when you need a solid color behind the artwork. The second common issue is external references — if your SVG points to a web font, a linked image, or an external stylesheet, the browser renders it in a sandbox and those resources are usually dropped, so text may fall back to a default font. Embedding fonts and images inside the SVG avoids this. Finally, watch the output size: a large SVG exported at can become very big, so the tool caps any dimension at 8192 pixels and tells you if you exceed it.

Tips and advanced use

For icons and logos that will appear on modern displays, export at or so the result stays sharp on high-density screens — a export can look soft when scaled up by the operating system. When the destination has a strict size, such as a 512 × 512 app icon, use Custom width to hit it exactly; the height follows the SVG’s aspect ratio automatically. If your SVG defines its size only through a viewBox and has no width or height attributes, the tool reads the viewBox to determine the base dimensions, so scaling still behaves predictably. And because the SVG is parsed, rendered, and exported entirely on your own device, you can convert confidential or pre-launch graphics without any of them ever leaving your browser.

Frequently asked questions

Can I export the SVG as a JPG instead of a PNG?
Yes. Use the Output format toggle to switch between PNG and JPG. JPG output is best for photographic SVGs and for destinations that only accept JPG; a quality slider appears so you can trade file size against fidelity (90% is a safe default). Because JPG has no alpha channel, transparent parts of the SVG are always filled with the background colour you choose — there is no transparent-JPG option.
How do I control the size of the exported PNG?
You choose a scale. 1x exports at the SVG's own pixel size, while 2x and 3x multiply it for sharper results on high-density screens. Custom width lets you type an exact pixel width, and the height is calculated automatically to keep the aspect ratio intact.
Why is my exported PNG transparent?
SVGs often have no background of their own, so the area around the artwork stays transparent in the PNG — which is correct PNG behaviour. If you need a solid background, enable Fill background and pick a color before converting.
Why does my SVG fail to render or look wrong?
The most common causes are invalid markup, such as an unclosed tag, or the SVG referencing an external font or image. The browser renders the SVG in isolation, so anything it cannot load is dropped. Embedding fonts and images directly in the SVG fixes this.
Is my SVG uploaded to a server?
No. The SVG is rendered into an image and drawn to an HTML canvas entirely inside your browser, and the PNG is produced with the browser's own toBlob function. Nothing about your file is transmitted, so the conversion works offline and stays private.
Can I convert a file instead of pasting markup?
Yes. You can drop an .svg file onto the input area or use the Choose .svg file button. The file is read locally and its markup is loaded into the editor, where you can tweak it before converting if you wish.

Related tools