Image Compressor

Shrink JPEG, WebP and PNG files locally in your browser. Nothing is uploaded.

Compress an image Drag & drop or click to browse - stays on your device
Drop an image here, or click to browse
Format
Quality 80%
Max width (px, optional)
Max height (px, optional)

Image Compressor / 在线图片压缩

Compress JPEG, WebP and PNG photos right in your browser. Pick an output format, tune the quality slider, optionally cap the width or height, and download a smaller file - with a side-by-side before/after comparison so you can verify quality at a glance. 在浏览器中直接压缩 JPEG、WebP、PNG 图片,选择输出格式、调节质量、限制尺寸,下载前可对比原图与压缩结果。

Which format? / 选哪种格式?

  • JPEG - best for photos; smaller files, tiny browser support cost 照片首选
  • WebP - usually 20-30% smaller than JPEG at the same quality 更小体积
  • PNG - lossless, keeps transparency for logos and graphics 无损且保留透明

Privacy / 隐私说明

All compression happens locally via the canvas API. Your image never leaves the browser and the tool works offline. 全程本地处理,断网可用。

FAQ / 常见问题

Q: Will I see quality loss? / 会损失画质吗? - JPEG and WebP are lossy; start at 80% and check the comparison. PNG is lossless. JPEG/WebP 为有损压缩,建议从 80% 开始;PNG 无损。

Q: Can I resize while compressing? / 能同时调整尺寸吗? - Yes, set a max width and/or height; the image is downscaled proportionally. 可以,按比例缩小。

Related tools / 相关工具