How we know →

This project is still in development. Contributions are welcome: see the project on GitHub and the contributing guide.

Compress to exact KB GitHub

Compress to exact KB

Shrink a JPG, PNG or WebP to fit under a size such as 50 KB or 200 KB.

Files

Settings

Save as

Small files that open everywhere. Best for photos.

Target size
Advanced

Larger images are scaled down. Smaller ones are left alone.

Preview

Add a file to see a preview.

How it works

  1. Add JPG, PNG or WebP images.
  2. Pick a target size, or enter your own, and choose JPG or WebP.
  3. Press Compress. The best quality that fits under the target is found for each file.

FAQ

How is a KB counted?
One KB is 1000 bytes here, so the result also fits websites that count 1024 bytes per KB.
What if the target cannot be reached?
The smallest result possible is returned, and the file is marked "target not reached". Try a larger target, or make the picture smaller first.
Why is PNG not offered?
Lowering quality does not make a PNG smaller. Save as JPG or WebP to reach a size.
What happens to transparent areas?
JPG cannot store transparency, so transparent areas become white. Choose WebP to keep them.
Does it pick the highest quality that fits?
Yes, or very close to it. A few trial runs are made for each file, and the best one under the limit is kept.