Convert SVG to PNG
Rasterise a vector SVG into a PNG at whatever resolution you need — the output is sharp at any size because it is rendered from the vector, not scaled up from pixels.
Drop your image here
or
Choose ImageYou can also paste an image with Ctrl+V
Images are processed on your device and never uploaded.
• •
Runs on your device — nothing is uploaded.
Working…
0%
- Original
- Result
- Saved
- Quality
How to convert SVG to PNG
- Select your
.svgfile. - Choose an output width, or a scale multiplier such as 2× or 4×.
- Keep the background transparent, or set a solid colour.
- Press Convert and download.
Every SVG is sanitised first
SVG is not a passive image format — it is an XML document that can contain scripts, event handlers, external references and embedded HTML. Rendering an untrusted SVG naively is a genuine cross-site scripting vector.
Before anything is drawn, the file is parsed and stripped of:
<script>elements and everyon*event attribute;javascript:anddata:text/htmlURLs;- external references — remote images, stylesheets, fonts and
<use xlink:href>pointing off-document; <foreignObject>, which can smuggle arbitrary HTML;<iframe>,<embed>and<object>.
The sanitised document is then rendered into a canvas that has no page access. Purely visual content is untouched, so ordinary icons and illustrations convert exactly as drawn.
Choosing an output size
Vectors have no inherent pixel size, so you decide. Useful reference points:
- Icons — export at 512 px and downscale as needed, or export each size directly for maximum sharpness.
- Logos for print — width in inches × 300 DPI. A 3-inch logo needs 900 px.
- Retina web assets — 2× the CSS display size.
Fonts and external assets
If the SVG references a font by name, rendering uses whatever is installed on your system — the output may not match the designer's intent. Converting text to outlines in the source file before export removes the ambiguity.
Remote images referenced by URL are blocked by the sanitiser and will not appear. Embedded base64 images are fine and render normally.
Frequently asked questions
Are my images uploaded to your server?
No. The image is decoded, processed and re-encoded by your own browser using the Canvas and Web Worker APIs. There is no upload endpoint for this tool — open your browser's network panel while you use it and you will see no request carrying image data.
Will the PNG have a transparent background?
Yes, unless you choose a solid colour. SVGs are transparent by default and that is preserved in the PNG's alpha channel.
My SVG rendered blank — why?
The usual causes are a missing viewBox, content positioned outside the viewBox, or reliance on external CSS or remote images that the sanitiser blocked. Opening the file in a browser directly will usually show the same problem.
Can I convert PNG back to SVG?
Not meaningfully. Going from vector to pixels is a rendering step; going back requires tracing, which guesses at shapes and rarely reproduces the original.
What happens to my file when I close the tab?
It is gone. The image only ever exists in your browser's memory as an object URL; closing or refreshing the page discards it. Nothing is written to our servers, and nothing is stored on your device unless you download the result.