Monu Tools

SVG 转 PNG 转换器

完全在浏览器中,将 SVG 矢量图形以任意尺寸转换为 PNG 位图。

如何使用 SVG 转 PNG

  1. 01

    上传 SVG 文件或粘贴其标记。

  2. 02

    设置输出宽度;高度会按宽高比跟随。

  3. 03

    下载渲染后的 PNG。

What it does

An SVG to PNG converter that rasterizes vector graphics at any resolution you choose, in your browser. Give it an SVG file or paste the raw markup, set the output size, and download a PNG.

SVG is a vector format made of shapes and paths, so it scales to any size without blurring, which is why icons and logos are stored as SVG. PNG is a raster (pixel) format, which is what many platforms, image fields and tools actually accept.

Conversion happens entirely on your device, so your graphics are never uploaded to a server.

How it works in your browser

It runs locally with the Canvas API, rendering the SVG and reading back the pixels, so conversion is instant and your graphics stay on your device.

Resolution and transparency

Because the source is vector, you can export at whatever resolution you need without losing sharpness. For crisp results on high-resolution screens, export at 2x or 3x the size the image will be displayed at.

PNG supports transparency, so an SVG with no background converts to a PNG with a transparent background, ready to place over any color, which is ideal for logos and icons.

Fonts and external resources

One caveat: the SVG renders using the fonts your browser has available, and an SVG that references external images or resources may not include them. Self-contained SVGs, with shapes and embedded data, convert most reliably.

常见问题

我的 SVG 会被上传到任何地方吗?

不会。SVG 完全在你的浏览器中使用 Canvas API 渲染为 PNG,因此不会向服务器发送任何内容。

我应该导出什么尺寸?

由于 SVG 是矢量的,你可以在任意尺寸下导出而不模糊。以显示尺寸的 2 倍或 3 倍导出,以在高分辨率屏幕上获得清晰效果。

会包含外部图像和字体吗?

字体会使用你浏览器可用的资源渲染,引用外部资源的 SVG 可能不会包含它们。自包含的 SVG 转换最可靠。

来源

嵌入此工具

将此工具添加到你自己的网站。复制下方代码片段即可,它会自动保持最新。

<iframe src="https://monu.tools/embed/zh/svg-to-png" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

相关工具