SVG to PNG Converter
Rasterize self-contained static SVG to PNG locally with transparent or custom backgrounds, 1×/2×/4× scaling and custom pixel dimensions.
Self-contained static SVG only. Max 2 MiB input / 16 MP output. Scripts, event handlers, active content and external image/font/style references are blocked before decoding. SVG is never inserted into this page DOM.
—
—
SVG to PNG Converter
Rasterize self-contained static SVG to PNG locally with transparent or custom backgrounds, 1×/2×/4× scaling and custom pixel dimensions.
How to use
- Choose a UTF-8 SVG file or paste a complete self-contained SVG document.
- Choose 1×, 2×, 4× or custom dimensions; aspect ratio is kept by default. Choose transparent or a solid background.
- Convert and check the output pixel dimensions and exact byte count before downloading PNG.
Frequently asked questions
Can it load remote fonts or images?
No. Only self-contained static SVG is accepted. External references, scripts and active content are rejected before decoding. Inline raster data:image resources and local #id references are allowed.
Will transparency remain?
Yes. Transparent PNG is the default. Choose white or a custom background to fill transparent areas.
Is the result still vector?
No. PNG is a raster image at the selected pixel dimensions. Fonts and filters can render differently across browsers; check the result.
Related tools
SVG 转 PNG 转换器
在本地将自包含静态 SVG 栅格化为 PNG,支持透明或自定义底色、1×/2×/4× 倍率及自定义像素宽高。
使用步骤
- 选择 UTF-8 SVG 文件,或粘贴完整的自包含 SVG 文档。
- 选择 1×、2×、4× 或自定义宽高,默认保持宽高比,再选择透明或纯色底。
- 转换后核对输出像素宽高与精确字节数,下载 PNG。
常见问题
可以加载远程字体和图片吗?
不可以。仅接受自包含静态 SVG,解码前拒绝外链、脚本和动态内容。允许内联栅格 data:image 资源与本地 #id 引用。
会保留透明吗?
会。默认输出透明 PNG,也可选择白色或自定义底色填充透明区域。
输出仍是矢量图吗?
不是。PNG 是所选像素尺寸的位图。字体和滤镜在不同浏览器可能显示不同,请核对结果。
相关工具
将 PNG 转为 JPG · 调整位图尺寸 · 制作 Favicon
Picking the Right Export Scale for Crisp Vector-to-PNG Rasterization
Because SVG artwork is resolution-independent math, exporting at native 1x size often looks fuzzy on 2x/3x Retina smartphones and 4K monitors. Choosing 2x for web UI icons and 3x or 4x for slide decks and print graphics produces razor-sharp anti-aliased edges with intact alpha transparency.
- Built-in script sanitization: Before rasterizing, any active script tags inside untrusted SVG files are stripped safely in browser memory.
- Need a solid white background JPG instead? Switch to our SVG to JPG Converter, or shrink raw SVG code first in our sister site's SVG Optimizer.
Frequently Asked Questions
- Why did my SVG fail to render dimensions?
- SVGs missing explicit width, height, or viewBox attributes default poorly in browsers; ensure the root svg tag includes a viewBox.
- Are external fonts inside my SVG preserved?
- Browser security sandboxes block external network fetches when rasterizing SVG to Canvas; convert custom text to paths (<path>) in Figma or Illustrator first for exact typography.
- Does SVG to PNG keep transparent backgrounds?
- Yes. PNG output preserves full alpha transparency automatically.