🗜️ Image Compressor

Shrink PNG, JPEG, WebP, and AVIF locally — pick a quality preset, or aim for an exact size in KB and we'll binary-search the quality.

Drop image(s) here, click to choose, or paste with Ctrl/Cmd+V

Accepts PNG, JPEG, WebP, AVIF, BMP — up to 50 files

About Image Compressor

Drop one or many images, pick a quality preset, or specify a target file size and let the tool binary-search the right quality for you. Decoding, re-encoding, and the search loop all run locally in a Web Worker — your images never leave the browser.

How to use

  1. Drop image(s), click the drop zone, or paste from the clipboard.
  2. Pick a mode: Quality preset for "make it smaller, pick a tradeoff" or Target size for "fit under N kilobytes."
  3. Optionally tick Resize first to cap the long edge — most compression wins come from downsizing huge phone photos before encoding.
  4. Download single results, or Download all (zip) for the batch.

Common use cases

  • Fitting an image under an email attachment limit (e.g. 250 KB).
  • Bulk-shrinking screenshots for a static site.
  • Trading PNG for WebP at the same visual quality to save bandwidth.
  • Converting and compressing in one pass — pick "Auto" format strategy and a preset.

Tips

  • Visually identical (q=0.85) is the sweet spot for photos. Drop to Smaller for thumbnails.
  • For target-size mode, set a realistic budget — a 4K screenshot won't hit 50 KB without a quality you'd hate. The tool surfaces "target not hit" when the constraint isn't achievable.
  • WebP is usually smaller than JPEG at the same quality and supports transparency — pick Auto or Force WebP to take advantage.
  • EXIF and color profiles are stripped by the Canvas pipeline — a privacy plus, but worth knowing if you depend on them.

FAQ

Does my image ever leave my computer?
No. Everything happens locally in your browser — no upload, no server, no third-party API. Decoding and encoding run in a Web Worker.
What's the difference between this and the Image Format Converter?
The converter is about format choice (PNG → WebP, etc.). The compressor is about hitting a size target — pick a preset, or specify a KB budget and we binary-search the quality for you.
How does target-size mode work?
We re-encode the image with different quality values and binary-search until the output falls inside your target ± tolerance (default ±5%). Up to 8 iterations per file; we surface the final quality and iteration count.
What if my target size isn't achievable?
We surface the smallest size we managed and flag the card with "target not hit." Common cause: a giant photo at a too-aggressive target — tick "Resize first" to shrink the input before encoding.
What does 'Lossless' actually mean here?
PNG output — pixel-identical to the source, just with PNG's compression. The quality slider doesn't apply. (Canvas-based WebP-lossless isn't exposed by browsers, so PNG is the only true-lossless option in this tool.)
Why is my output sometimes bigger than the input?
Re-encoding already-compressed lossy formats can grow the file (the source was already aggressive). The summary bar flags this in red so you don't accidentally ship a worse copy — keep the original in that case.

More tools

JSON

Code

Ornaments

Image

Web / SEO

Generators

PDF