Skip to content
toolsdocks

Compress an image to a target size

Enter the largest file size you can upload, for example 100 KB. Each image is encoded at several quality levels to find the highest one that still fits, and the result shows its final size, quality and dimensions.

Runs on your device
Loading tool…

How to use

  1. Add images.
  2. Enter a target size (for example 100 KB) or pick a quality.
  3. Compress. Each result shows its final size, quality and dimensions.

Worked example

A 4 MB 4032×3024 photo with the 500 KB JPEG preset comes out between 450 KB and 500 KB at the full 4032×3024 size; the result row shows the quality the search settled on.

Supported formats and limits

InputJPEG, PNG, WebP, AVIF, BMP, TIFF, HEIC
OutputJPEG, WebP, AVIF, PNG
LimitsUp to 50 MB per image; 200 images per batch. Targets from 10 KB.
EngineBinary search over encoder quality (MozJPEG/libwebp/libavif), then stepwise downscaling

Limitations

  • Very small targets for large photos require shrinking dimensions; the result shows when that happened.
  • PNG output is lossless, so it can only reach targets by reducing colours or dimensions.

Questions

Will the image get smaller in pixels?

Only if needed. The quality is searched first at full size. If even the minimum quality you set is too large and resizing is allowed, the dimensions shrink in steps of about 10% until the file fits. The result says when that happened.

Is 100 KB counted as 100,000 bytes?

No. Targets use binary units, so 100 KB is 102,400 bytes. The download never goes over the target.

Can PNG files reach a target?

PNG is lossless, so there is no quality to lower. It can reach a target only by reducing colours to a palette or by shrinking dimensions.

Guides

Privacy

Runs on your device. Files and text are processed in this browser tab and are not uploaded.

See the privacy policy for how toolsdocks handles data.