Skip to content

Compress Image to an Exact Size

Government portals, exam forms, job applications and visa systems love hard limits: "photo must be under 100 KB". Guessing quality sliders until a file fits is miserable, so this tool does the searching for you. Tell it the maximum size and it binary-searches the encoder quality; if quality alone cannot get there, it progressively reduces dimensions too — and reports exactly what it did.

Honesty is built in: the result always shows the real output size and whether your target was achieved. A target that is physically impossible for a noisy image at a sensible size is reported as not achieved, with the smallest result found — never a fake success message.

Drop an image to compress to an exact size

JPG, PNG, WebP, AVIF, GIF, BMP, TIFF, HEIC or SVG — processed locally, never uploaded · You can also paste from the clipboard

How to compress to Exact KB

  1. Drop the image that needs to fit a size limit.
  2. Enter the target — use the preset chips (20 KB–1 MB) or type your own.
  3. Choose the output format (JPG or WebP reach small sizes best).
  4. Press Compress to target and read the verdict: achieved, or the smallest possible result with the reason.
  5. Download the file — named with its real size target so you can find it later.

Frequently asked questions

Which preset should I choose?

Choose the largest size your form or portal allows — a 200 KB photo looks noticeably better than a 20 KB one. Common limits: 20–50 KB for exam/ID photos, 100–200 KB for job and visa portals, 500 KB–1 MB for general document uploads.

Why did my image get smaller in dimensions too?

Some images (especially noisy or highly detailed photos) cannot reach a very small target at full size even at the lowest quality. The tool then trades dimensions for bytes and tells you the final size it used.

Can it always hit the target?

No tool honestly can. Pure noise-like images have a floor below which they cannot shrink at readable dimensions. When that happens you get the smallest result found and a plain explanation — plus the option to allow a smaller output size.

Related tools