Batch-Convert SVG, PNG, JPG, and WEBP in the Browser (and ZIP the Results)

A lot of “free converters” are upload forms with a size cap, a watermark, and a server you have to trust with unreleased icons. When the job is a folder of UI assets, I want the opposite: batch in the tab, files stay on the device, download a ZIP. SVG Buddy is a client-side conversion suite for that workflow.

许多所谓的“免费转换器”其实就是带有大小限制、水印的上传表单,你还得把未发布的图标交给一个必须信任的服务器。当任务是一整个文件夹的 UI 资源时,我想要的是完全相反的体验:在浏览器标签页中批量处理,文件留在本地设备上,最后下载一个 ZIP 压缩包。SVG Buddy 就是为这种工作流程设计的客户端转换套件。

Official FAQ language is direct: conversions run in the browser with Canvas and JavaScript; image bytes stay on your device unless you download the results. The universal converter batch-processes between SVG, PNG, JPG, and WEBP, including raster-to-SVG vectorization and SVG-to-raster export. Dedicated tools cover PNG-to-SVG tracing with palette control, SVG-to-PNG rasterization at 1×–4× with optional transparency, JPG-to-SVG color quantization for flat artwork, WEBP-to-PNG decoding with alpha, and an SVG optimizer that strips metadata and tightens coordinates. You can drop files, pick them, or paste with Ctrl+V. Finished batches download together as one ZIP.

官方常见问题解答直截了当:转换过程在浏览器中通过 Canvas 和 JavaScript 运行;除非你下载结果,否则图像字节数据会一直保留在你的设备上。通用转换器支持 SVG、PNG、JPG 和 WEBP 之间的批量处理,包括位图转 SVG 矢量化以及 SVG 转位图导出。专用工具涵盖了带调色板控制的 PNG 转 SVG 描边、支持 1 倍至 4 倍缩放及可选透明度的 SVG 转 PNG 光栅化、针对扁平化艺术作品的 JPG 转 SVG 色彩量化、带 Alpha 通道的 WEBP 转 PNG 解码,以及一个用于剥离元数据和精简坐标的 SVG 优化器。你可以拖拽文件、手动选择,或使用 Ctrl+V 粘贴。完成的批次会打包成一个 ZIP 文件下载。

Pick the tool that matches the job Rasterize an icon set for a chat or a doc. SVG to PNG at 2× or 4×, keep transparency, ZIP the folder. Flatten a logo for a CMS that hates SVG. SVG to JPG or PNG, at a size you measured first. Trace a simple mark back to vectors. PNG or JPG to SVG, with palette control or quantization. This is for flat artwork, not for photographs. A photo “vector” is usually a mess of shapes. Keep a WEBP with alpha as a PNG. Use the dedicated decode path so you do not drop the transparent background by accident. Ship a cleaner SVG. Run the optimizer to strip metadata and tighten coordinates before you commit the file to a repo. I do not run every file through the universal converter on autopilot. Trace settings that are perfect for a 24 px glyph will destroy a soft photograph, and a 4× PNG of a huge illustration can be a larger download than you wanted.

选择适合任务的工具:为聊天或文档光栅化一套图标。将 SVG 转为 2 倍或 4 倍的 PNG,保留透明度,然后压缩文件夹。为不支持 SVG 的内容管理系统(CMS)扁平化 Logo。将 SVG 转为 JPG 或 PNG,并预先测量好尺寸。将简单的标记追踪回矢量图。使用调色板控制或量化功能将 PNG 或 JPG 转为 SVG。这仅适用于扁平化艺术作品,不适用于照片。照片的“矢量化”通常会变成一团乱麻。将带 Alpha 通道的 WEBP 保存为 PNG 时,请使用专用的解码路径,以免意外丢失透明背景。发布更整洁的 SVG。在将文件提交到代码仓库之前,运行优化器以剥离元数据并精简坐标。我不会自动地把所有文件都丢进通用转换器。对于 24 像素字形完美的追踪设置,可能会毁掉一张柔和的照片;而一张大型插图的 4 倍 PNG 文件可能会比你预想的下载体积大得多。

A batch I actually trust Put only one kind of job in the drop zone (all icons, or all blog diagrams — not both). Convert a single sample and open it in a real viewer at 100% and at the target size. If the sample is good, batch the rest and Download All as ZIP. Spot-check two more files from the ZIP, especially anything with thin strokes or pale colors on white. For traces, inspect node count. If the SVG is huge, tighten the palette or go back to a cleaner source. Because nothing is uploaded to do the work, I will convert unreleased brand marks this way. I still do not paste secrets into a random tab I opened from a generic search ad; I use the official site and I watch that I am not on a look-alike domain.

我真正信任的批处理方式:在拖拽区域只放入同一种任务(要么全是图标,要么全是博客图表,不要混在一起)。转换一个样本,并在真实的查看器中以 100% 比例和目标尺寸打开它。如果样本效果良好,再批量处理其余文件并打包下载。从 ZIP 中抽查另外两个文件,特别是那些带有细线条或在白色背景上颜色较浅的文件。对于追踪任务,检查节点数量。如果 SVG 文件过大,请收紧调色板或换回更清晰的源文件。因为没有任何数据被上传,我会用这种方式转换未发布的品牌标识。我依然不会把我秘密的内容粘贴到从通用搜索广告打开的随机标签页中;我会使用官方网站,并留意自己是否处于仿冒域名上。

Limits worth stating Client-side Canvas conversion is not Adobe Illustrator’s Pathfinder, and it is not a print RIP. Complex filters, unusual color spaces, and tiny hairlines may need a professional editor after the batch. The ZIP is a convenience, not a proof of visual quality.

值得说明的局限性:客户端 Canvas 转换不是 Adobe Illustrator 的路径查找器(Pathfinder),也不是打印 RIP。复杂的滤镜、不常见的色彩空间以及极细的线条在批量处理后可能仍需要专业编辑器进行调整。ZIP 压缩包只是一种便利,而非视觉质量的保证。

A Monday-morning example from a docs site I had thirty SVG diagrams that also needed 2× PNGs for a documentation theme that still rasterizes some illustrations. I dropped three samples into SVG Buddy, exported transparent PNGs at 2×, and checked a thin arrow and a pale gray box at 100%. The arrow survived; I then batched the other twenty-seven and downloaded the ZIP. Two spot checks from the archive looked the same. Total elapsed time was less than the time I used to spend waiting on an upload queue — and the masters never left the laptop. I ran a second, separate pass to optimize a copy of the SVGs before committing them, so the conversion ZIP and the repo cleanup could not overwrite each other. Keeping those jobs apart is now part of the ritual. If you have a folder to convert and you do not want to upload it, start at https://svgbuddy.net/, test one file, then ZIP the rest.

一个周一早上的文档网站案例:我有 30 张 SVG 图表,由于文档主题仍需光栅化部分插图,因此还需要 2 倍的 PNG 版本。我将三个样本拖入 SVG Buddy,导出 2 倍透明 PNG,并以 100% 比例检查了一个细箭头和一个浅灰色方框。箭头效果完好;随后我批量处理了剩下的 27 个文件并下载了 ZIP。从压缩包中抽查的两个文件看起来效果一致。总耗时比我过去等待上传队列的时间还要短,而且原始文件从未离开过笔记本电脑。我进行了第二次单独的操作,在提交前优化了 SVG 的副本,这样转换后的 ZIP 包和仓库清理工作就不会相互覆盖。将这些任务分开处理现在已成为我的固定流程。如果你有一个文件夹需要转换且不想上传,请访问 https://svgbuddy.net/,测试一个文件,然后压缩其余部分。