Image Compressor

Compress JPG, PNG, WebP, and AVIF images in your browser: set quality, target a file size, downscale, batch many files, and download a ZIP.

Loading tool…

Image CompressorShrink JPG, PNG, WebP, and AVIF images by quality or to a target file size, optionally downscaling dimensions — the single biggest size lever. Drop several images at once for batch compression with per-file before/after stats and a one-click ZIP download, and strip EXIF metadata on the way out. Everything re-encodes locally with the Canvas API, so your photos are never uploaded anywhere.

What is Image Compressor?

A free online image compressor that reduces the file size of JPG, PNG, WebP, and AVIF images entirely in your browser. You can compress with a quality slider, or switch to target-size mode where it binary-searches the encoder quality to land just under a chosen KB budget. An optional dimension limit downscales large photos to a maximum width and height — usually the biggest single saving — and a metadata toggle strips EXIF on export. Drop one image or dozens: each gets its own before/after size row and download button, plus a total-savings figure and a Download-all ZIP, and because encoding runs on the Canvas API locally, nothing is ever uploaded.

How to use Image Compressor

  1. Drop one or more images onto the dropzone, or click to browse and select them from your device (JPG, PNG, WebP, AVIF, and more).
  2. Open Settings and pick an output format — JPEG, WebP, PNG, or AVIF (AVIF and WebP appear only where your browser can encode them).
  3. Choose a compression mode: By quality drags a 10%-100% slider, or By target size lets you enter a KB budget and the tool searches the quality to fit it. For PNG the quality controls color/palette reduction.
  4. Optionally turn on Limit maximum dimensions and set a max width and height to downscale large images, and toggle Remove metadata (EXIF) to strip camera data.
  5. Review each image's original-to-compressed size and the total savings, then download files individually or grab everything as one ZIP.

Examples

Hit an email-friendly file size

Drop a large JPEG, switch to By target size, and enter 500. The tool searches the JPEG quality until the result lands just under 500 KB and shows the exact saving in the result row.

Batch-shrink a folder of screenshots

Drop a dozen PNGs at once. Each gets its own before/after row and download button; lower the quality to reduce the PNG color palette, then use Download all to save the whole set in one ZIP.

Downscale a huge photo for the web

Turn on Limit maximum dimensions, set 1600 x 1600, and pick WebP. The photo is resized to fit those bounds and re-encoded, typically cutting the file size by 90% or more.

Frequently asked questions

Which formats can I compress and export to?
You can load any image your browser can decode (JPG, PNG, WebP, AVIF, and more) and export to JPEG, WebP, PNG, or AVIF. AVIF and WebP output are offered only when your browser can encode them; otherwise the tool falls back to PNG.
How does target-size mode work?
Enter a size in kilobytes and the tool binary-searches the encoder quality, re-encoding a few times, to find the highest quality whose output stays under your budget. If even the lowest quality is larger than the target, it returns the smallest it can produce.
Does the quality slider affect PNG?
Yes. Because PNG is lossless, the slider controls palette/color reduction: a lower quality quantizes the image to fewer colors, which compresses much smaller. At 100% the PNG is left fully lossless.
What do the dimension limit and EXIF toggle do?
Limit maximum dimensions downscales images so neither side exceeds the width and height you set (it never upscales) — often the biggest saving. Remove metadata strips EXIF; re-encoding through Canvas already drops most metadata, and for JPEG-to-JPEG you can turn it off to keep the original EXIF.
Are my images uploaded to a server?
No. Everything runs 100% client-side in your browser using the Canvas API (and a local palette quantizer for PNG). Your images are never uploaded, sent, or stored anywhere, so it works even offline once the page has loaded.

Related tools