// 免费在线工具
图片压缩器
在浏览器中直接将图片文件大小降低最高 90%。无需上传、无需账户、完全私密。支持 JPG、PNG、WebP、AVIF、GIF、BMP 和 TIFF。
如何在线压缩图片
将图片拖到上传区域(或点击浏览),然后调节质量滑块并选择输出格式。前后预览实时更新,让您直观看到节省的大小。满意后点击 下载 - 无需账户、无需邮件、无需等待。
为什么选择 WebP 作为压缩图片格式?
WebP 是 Google 为网络专门设计的开放图片格式。它生成的文件比同等质量的 JPEG 小 25–35%,比 PNG 小 26%,并支持完整透明度。所有现代浏览器(Chrome、Firefox、Safari 14+、Edge)均原生支持 WebP,是 2025 年网页图片最安全的格式选择。
何时使用各输出格式
- WebP - 网站通用最佳选择。体积最小且质量出色。
- JPEG - 需要兼容所有浏览器(包括旧版)和邮件客户端时使用。
- PNG - 需要透明度或像素级完美质量的图片(如徽标、截图)时必选。
- AVIF - 次世代格式,文件比 JPEG 小约 50%。在 Chrome 85+、Firefox 93+、Safari 16+ 上受支持。
您的图片永不离开设备
与大多数在线图片工具不同,此压缩器 100% 在客户端运行,使用浏览器内置的 Canvas API。文件在本地内存中处理,绝不传输至任何服务器。这样工具既快速(无需上传延迟),又私密,并且首次访问后可离线使用。
常见问题
No. All compression and conversion happens directly in your browser using the Canvas API. Your images never leave your device. This makes the tool completely private - ideal for confidential documents, personal photos, or sensitive business assets.
Input: JPG, PNG, WebP, AVIF, GIF, BMP, TIFF (and HEIC in Safari on Apple devices). Output: WebP, JPEG, PNG, or AVIF. For AVIF output you need Chrome 85+ or Firefox 93+. GIF compression captures the first frame as a static image.
For web images: 75–85 is the sweet spot - most people can't tell the difference from 100 quality at typical screen sizes. For thumbnails or background images: 60–75. For print-ready images or large hero images where you want zero compression artifacts: 90–95.
There is no enforced limit since processing happens locally. Files up to 50 MB and images up to 8000×8000 pixels work reliably on modern devices. The canvas maximum dimension is 16,383 pixels - the tool enforces this automatically. Very large files may be slow on older hardware.
This tool processes one image at a time with a live preview. For multiple images, use the dedicated 批量图片压缩 → which accepts up to 20 files simultaneously.