Compress Image to KB

Reduce a JPG, PNG or WebP image to a target size such as 20 KB, 50 KB or 100 KB. The tool lowers quality first, then dimensions, until the result fits the number you choose.

🔒 Your file never leaves your device.

Drop an image here or click to choose

JPG, PNG or WebP · up to 20 MB
Turning this off keeps the pixel size but may miss the target.
Working…
Your compressed image is ready
Before: – After: – Saved: – Dimensions: –
Preview of the compressed image

How to use this tool

  1. Choose your image. Drop a JPG, PNG or WebP file onto the box, or click it to browse. The limit is 20 MB per image.
  2. Pick a target size. Choose 20 KB, 50 KB, 100 KB or 200 KB, or type a custom value in kilobytes.
  3. Compress. The tool tries a high-quality setting first and steps down only until the file fits your target.
  4. Check the result. You will see the before and after size, the percentage saved and the final dimensions.
  5. Download. Save the compressed file. It stays in the same format as the original where the browser supports it.

Why use this tool

Many forms and websites reject images above a fixed size, such as 20 KB for a signature or 100 KB for a profile photo. Guessing a quality slider until the file fits is slow. This tool works backwards from the limit: it searches for the highest quality that still meets the number you entered.

Because the work happens in your browser, there is no upload wait and no copy of your image on a server. That matters for identity documents, photographs of family and anything else you would rather not hand to an unknown website.

Frequently asked questions

Is the image uploaded to a server?
No. Compression runs locally with the Canvas API. Nothing is sent over the network, and the page works after the first load even if you go offline.
Why is my PNG still large after compression?
PNG is a lossless format, so lowering a quality setting has no effect. For PNG the tool reduces the pixel dimensions instead, which is the only reliable way to reach a small target size.
Does compressing reduce image quality?
JPG and WebP are lossy, so some detail is removed. The tool starts from the highest quality that meets your target, so the reduction is as small as possible. At 50 KB to 200 KB, most web images still look sharp.