首页文章 工具关于 支持订阅

压缩 PNG

在保持透明度的同时显著减小 PNG 文件大小。转换为 WebP 可实现最高 70% 的文件缩小。免费、即时,所有操作均在浏览器中完成。

为什么 PNG 文件体积大——以及如何解决

PNG 使用无损压缩,这意味着每个像素都被精确保存。它非常适合徽标和截图,但对照片和复杂图像而言文件会非常大。PNG 照片的体积可能是同等 JPEG 的 5–10 倍。压缩 PNG 最有效的方法是转换为 WebP,WebP 支持透明度(如 PNG),但采用有损压缩,可使文件缩小 26–70%。

PNG 压缩选项

  • 转换为 WebP(推荐): 保留透明度,文件大小降低 26–70%。最适合网页使用。
  • 转换为 JPG: 最大尺寸缩减(60–80%),但会失去透明度。最适合没有透明背景的照片。
  • 重新编码为 PNG: 浏览器的 PNG 编码器可能产生略有不同的大小。结果会有差异——有时更小,有时不变。不建议作为主要压缩方案。

何时在文件体积较大时仍保留 PNG

当需要无损质量进行专业编辑、文件会被多次重新保存,或处理需要在任何比例下保持锐利边缘的徽标时,保留 PNG 是必要的。最终网页发布时,请始终转换为 WebP。

常见问题

PNG uses lossless compression - there’s no quality setting to reduce. Re-encoding a PNG simply applies the browser’s PNG encoder, which may produce a larger or smaller file than the original depending on the encoder used. For meaningful PNG size reduction, convert to WebP (preserves transparency) or JPEG (no transparency support).
Yes - convert to WebP instead of JPG. WebP supports alpha transparency just like PNG, and produces files 26–70% smaller using lossy compression. The default quality of 82 preserves visual quality well while delivering significant size reduction.
WebP is the recommended replacement. It supports transparency, delivers 26–70% smaller files than PNG, and is supported by all modern browsers (Chrome, Firefox, Safari 14+, Edge). For maximum compression on cutting-edge browsers, AVIF supports transparency too and is 20% smaller than WebP.
For logos, use WebP at quality 90–95. WebP handles sharp edges and flat colors better than JPEG, and the transparency support means your logo will still work on any background. At quality 92, a WebP logo is visually indistinguishable from the PNG original while being 40–60% smaller.