Processed locally in your browser.
Convert SVG to PNG Online
Sanitize and rasterize an SVG file into a PNG image directly in your browser, with no upload required.
What it does
SVG to PNG rasterizes vector artwork into a PNG image, first stripping script tags, foreignObject elements and quoted inline event handlers from the SVG before it is drawn. The output uses the width and height your browser reads from the SVG, or falls back to a 1024x1024 canvas when the browser reports no size. Everything runs in your browser, and the file is never uploaded.
How to use it
- Choose an SVG file.
- Press Process.
- The PNG downloads automatically, and the result line shows its pixel size.
Example
- Input
- icon.svg with width="256" and height="256"
- Output
- icon.png (256x256)
What happens to your file
- Your file or text is processed by code running in this browser tab. It is not uploaded to any server.
- The processing code is downloaded from this site with the page; nothing about your input is sent back.
- The result is created on your device and saved only when you choose to download it.
Limits
- Output dimensions follow the size the browser reads from the SVG, or default to 1024x1024px if none is reported; there is no manual resize option.
- One SVG file per run; no batch conversion.
- Sanitization removes script tags, foreignObject elements and quoted inline event handlers, which may affect SVGs relying on those features.
Questions
What size is the resulting PNG?
It matches the width and height your browser reads from the SVG; if the browser reports no intrinsic size, the PNG defaults to 1024x1024px. Setting width and height attributes on the SVG gives the most predictable result.
Is the SVG sanitized before rendering?
Yes, script tags, foreignObject elements and quoted inline event handler attributes (like onclick="...") are stripped before the file is drawn to canvas.
Can I set a custom output size?
No, there is no resize control; the output follows the SVG's dimensions or the 1024x1024 fallback.
What happens if I choose a non-SVG file?
The tool checks the file's type and extension and shows an error if it isn't recognized as an SVG.
Can I convert several SVG files at once?
No, this tool processes one file per run.