SVG to PNG Converter
Paste SVG markup or upload a file, choose an output width, and get a crisp PNG at any resolution with transparency preserved — all in your browser.
Paste SVG markup or upload a file, set the width, and the PNG renders automatically at any resolution. Transparency is preserved. Runs entirely in your browser.
FreeNo sign-upPrivate — runs in your browser, nothing is uploaded
Quick answer
To convert SVG to PNG, paste your SVG code (or upload an .svg file) and set the output width; the tool rasterizes it to a PNG at that resolution with transparency preserved. Because SVG is vector, you can export at any size — 512, 1024, or larger — without blurring. Everything runs in your browser, so your graphic is never uploaded.
How it works
The SVG is wrapped in a Blob and loaded as an image, then drawn onto a canvas sized to your chosen width (its height set by the SVG's viewBox or width/height ratio). The canvas is exported as a PNG, which keeps the alpha channel so transparent areas stay transparent. Rendering uses the browser's own SVG engine, so the output matches how the SVG displays on screen.
Examples
Example 1: Export a logo at 512px
- Input
- Paste SVG, width 512
- Result
- 512px-wide PNG
- Why
- Vector scales cleanly, so the PNG is sharp at any size.
Example 2: High-resolution export
- Input
- Width 2048
- Result
- A 2048px PNG
- Why
- Set a larger width for print or retina displays.
Example 3: Keep transparency
- Input
- SVG with no background
- Result
- Transparent PNG
- Why
- The alpha channel is preserved in the PNG output.
When to use this tool
- Turning an SVG icon or logo into a PNG for platforms that don't accept SVG.
- Exporting a vector graphic at a specific pixel size.
- Generating a high-resolution raster from a scalable source.
Common mistakes
- Expecting external images or fonts referenced by URL to render — browsers don't load them when an SVG is drawn as an image.
- Leaving out a viewBox or width/height, which makes the aspect ratio ambiguous.
- Exporting at a tiny width and then enlarging the PNG, which defeats the point of starting from vector.
Frequently asked questions
How do I convert SVG to PNG?
Paste the SVG code or upload an .svg file, set the output width, and the PNG renders automatically. Click download to save it.
Is transparency kept?
Yes. The PNG preserves the alpha channel, so transparent regions of the SVG stay transparent.
What size can I export?
Any width up to 4096px. Since SVG is vector, the output stays crisp at any resolution you choose.
Why won't my SVG render?
Check the markup is valid SVG with the xmlns attribute. External images or fonts referenced by URL are not loaded in SVG-as-image, so inline them (e.g. as data URIs) and try again.
Is my graphic uploaded?
No. The conversion happens entirely in your browser.
Can I convert the other way?
Not losslessly — PNG is raster, so it can't be turned back into editable vector paths.
Sources & references
External references open in a new tab. We are independent and not affiliated with these organizations.
- Free
- No sign-up
- Runs entirely in your browser — nothing is uploaded.
- Formula and method shown above
Provided “as is” for general information only — results may be inaccurate, so verify before you rely on them. No warranty; use at your own risk.
Built and reviewed by HIFreeTools against the formula shown above and any authoritative references cited on this page. See our methodology and editorial standards below.
Related tools
Embed this tool on your site
Free to embed, no sign-up. Paste this code where you want the tool to appear: