Online Image Compressor for JPG, PNG, WebP and AVIF

Drop images to compress

Compress one image in a focused workspace, or add a batch and download everything together. Processing happens locally in your browser.

JPG / PNG / WebP / AVIF / GIF / SVG
Compression workflow

Built for quick single-image work and clean batches

The page keeps static guidance and structured data server-rendered, while the local WebAssembly workspace loads only when you use the compressor.

Single Image Focus

One upload gets a large before/after workspace with dimensions, output format, savings, and direct download actions.

Batch Queue

Drop or choose multiple images, process them together, switch between files, retry failures, and export all results as a ZIP.

Format Conversion

Use auto mode to keep common formats, or convert to JPEG, WebP, AVIF, or optimized PNG depending on your delivery target.

Quality & Resize Controls

Tune lossy quality, PNG optimization level, and optional maximum edge resizing before encoding.

Clear Savings

Compare original and compressed sizes, saved bytes, percentage reduction, output dimensions, and browser support status.

Private by Design

Files are decoded and compressed in your browser using WebAssembly codecs. The images are not uploaded to a server.

Format support

Encoding is powered by jSquash packages; input decoding also depends on the browser's image decoder.

InputOutput optionsPractical note
JPEG / JPGJPEG, WebP, AVIF, PNGBest default: keep JPEG or convert to WebP for smaller web delivery.
PNGOptimized PNG, WebP, AVIF, JPEGUse PNG when transparency or lossless output matters; WebP/AVIF usually shrink photos more.
WebP / AVIFWebP, AVIF, JPEG, PNGBrowser decoding support varies, so unsupported files show a clear retry or fallback message.
GIF / BMP / SVG / HEIC / TIFFBrowser-decoded static output when supportedAnimated formats are rasterized to the browser-decoded frame; HEIC/TIFF support depends on the browser.

How to get best results

For photos, choose WebP around 75-85 quality. Use AVIF when smallest output matters and slower encoding is acceptable.

For screenshots, UI captures, logos, or transparent images, try optimized PNG first, then compare with WebP.

Enable max-edge resize for camera originals. Reducing a 4000px photo to 1600-2400px often saves more than quality alone.

常见问题

No. The interactive compressor runs in your browser. Files are decoded, resized, encoded, and downloaded locally without being sent to ZPTools servers.

The encoder supports JPEG, WebP, AVIF, and optimized PNG through jSquash WebAssembly packages. Input decoding also uses browser image support, so JPEG, PNG, WebP, AVIF, GIF, BMP, SVG, HEIC, and TIFF availability can vary by browser.

Lossless PNG optimization can be limited if the image is already optimized. For screenshots or transparent art, PNG may be right; for photos, WebP or AVIF usually produce smaller files.

Yes. Drop or choose multiple images, use Process all, then download individual outputs or package completed files into one ZIP.

Most outputs are re-encoded from browser pixel data, so metadata such as EXIF and GPS is generally removed. Use the Image Metadata tool when you need to inspect or edit metadata separately.

持续增长的高效、隐私优先开发者工具集合。所有工具都在浏览器中运行,数据不会离开你的设备。

工具

JSON 解析器JSON Schema 校验器JSON 转换器JSON 转 TypeScriptOpenAPI 查看器代码格式化SQL 格式化cURL 转换器时间戳转换器Cron 解析器URL 编码器二维码工具IP 与 CIDR 计算器Gzip 与 Deflate 工具JWT 解码器JWT 验签与 JWK 工具哈希生成器密码与 TOTPBase64 编码器UUID 生成器图片元数据图片压缩Tiny 图片压缩器图片工具箱 Pro屏幕录制正则测试器文本 DiffMarkdown 与 Mermaid 预览颜色与对比度工具

法律

隐私政策服务条款

© 2026 ZPTools. 保留所有权利。