Compress Image to Target Size in KB

Compress a JPEG or WebP image down to an exact target size in KB, like 20, 50, 100, or 200 KB, directly in your browser.

Drop an image here or click to choose
JPEG, PNG, or WebP

Just want a quality slider rather than a size target? Use the Image Compressor.

About Compress to Size

An image compressor that hits a size budget instead of a quality slider. Set a target in kilobytes, such as 50 KB for a forum avatar or 200 KB for a web upload, and the tool searches for the highest quality that keeps the file under that limit. When a target is too small for the image at full resolution, it scales the dimensions down until the size fits. It works on JPEG and WebP output and runs entirely on your device.

Many upload forms cap file size in kilobytes: a 50 KB profile photo, a 100 KB document scan, a 200 KB attachment for an online application. A normal quality slider makes you guess and re-export until you land under the cap. This tool removes the guesswork by treating your target size as the goal. It runs a binary search over the JPEG or WebP quality setting, encoding the image several times to converge on the highest quality that still fits inside your byte budget.

Some targets are simply too small for the image at its original resolution. A 4000-pixel photo cannot become a clean 20 KB file at full size, because there are too many pixels to describe in that few bytes. When quality alone is not enough, the tool reduces the pixel dimensions in steps and re-tries, so a tiny target still produces a usable result rather than a failure. The summary shows the final size, the quality that was used, and whether the image had to be scaled down.

PNG is intentionally left out because it has no lossy quality control, so it cannot be tuned to an arbitrary byte target the way JPEG and WebP can. WebP usually reaches a given size at higher visual quality than JPEG, which makes it the better choice when the destination accepts it.

How to use the Compress to Size
  1. 1

    Add your image

    Drop a JPEG, PNG, or WebP file onto the box or click to choose one. The original dimensions and file size are shown for reference.

  2. 2

    Set the target and format

    Type the size you need in kilobytes and pick JPEG or WebP output. WebP typically holds more detail at the same file size.

  3. 3

    Compress and download

    The tool finds the best quality under your limit, scaling dimensions down only if it must, then shows the result and a download button.

Common use cases

Meet an upload size limit

Get a photo under a strict 50 KB or 100 KB cap for a job portal, exam form, or government website upload.

Shrink images for faster pages

Compress hero images and thumbnails to a fixed budget so a web page stays fast on slow connections.

Fit an email attachment

Reduce a large photo to a few hundred kilobytes so it sends quickly and does not bounce against attachment limits.

Standardize a batch by size

Set the same KB target across multiple images so they all stay within a consistent size for a gallery or listing.

Frequently asked questions
How does it hit an exact size?

It re-encodes the image at several quality levels using a binary search, picking the highest quality that stays under your target. If quality alone cannot get small enough, it reduces the pixel dimensions and tries again.

Why is PNG not an option?

PNG is lossless and has no quality dial to trade detail for size, so it cannot be tuned to an arbitrary byte target. JPEG and WebP both support lossy quality, which is what makes a precise size possible.

What if my target is too small?

The tool scales the image down to try to fit. If even the smallest practical size and quality stay above your target, it returns that smallest result and tells you, so you can raise the target or start from a smaller image.

Will the image lose quality?

Lossy compression always trades some detail for size, and tighter targets mean more loss. The tool minimizes that by using the highest quality your size budget allows and only shrinking dimensions as a last resort.

Is the image uploaded anywhere?

No. The file is read, compressed, and downloaded entirely in your browser. Nothing is sent to a server, which keeps private photos and documents on your device.

imageconverterwebsocial-media