Uttir

Image Compressor to Size

Compress a JPG, PNG, or WebP image to an exact target file size in KB. Iteratively re-encodes until the result fits.

Image Compressor to Size — Most image compressors let you pick a quality, but not a target size. This one does the opposite: you pick a size (e.g. 100 KB), and the tool iteratively re-encodes the image at decreasing quality until the result fits.

Your image never leaves the browser. Compression happens locally in JavaScript.

Was Image Compressor to Size useful?

What is image compressor to size?

Most image compressors let you pick a quality, but not a target size. This one does the opposite: you pick a size (e.g. 100 KB), and the tool iteratively re-encodes the image at decreasing quality until the result fits.

It runs entirely in your browser. The image never touches a server, so you can compress sensitive photos without uploading them. Supports JPG, PNG, and WebP output, and can also reduce dimensions if quality alone is not enough.

How to use it

  1. Choose an image

    JPG, PNG, or WebP, up to 25 MB.

  2. Set a target size

    In kilobytes. Common: 100 KB for email, 50 KB for avatars, 20 KB for thumbnails.

  3. Pick output format

    WebP usually gives the smallest file at a given quality.

  4. Click Compress

    The tool re-encodes iteratively and shows the result.

Examples

Compress a 4 MB photo to 200 KB

A real use case: shrinking a phone photo to attach to an email.

4 MB JPG → 200 KB target

Result: ~120 KB JPG, quality ~0.45, no resize needed

Frequently asked questions

Related tools