Compress to a Target File Size

Automatically find the highest image quality that still fits under a KB size limit you specify.

  • 100% free
  • No upload — runs in your browser
  • No sign-up needed

Some upload forms enforce a strict maximum file size — a job application portal capped at 200 KB, a visa application system, a government form. Instead of guessing quality percentages by trial and error, this tool runs a quick automatic search across quality levels and returns the best-looking result that still fits under your target, in one click.

How to Compress to a Target File Size

  1. Add your image(s).
  2. Enter the target size in KB.
  3. Click "Compress to target size" and download the result.

Frequently asked questions

What happens if my target size is smaller than the tool can achieve?

The tool searches down to a minimum viable quality and returns its closest result; extremely small targets on large or highly detailed images may not be fully reachable without visible quality loss.

Does this work for PNG files too?

Yes — like the standard compressor, PNGs are automatically handled via JPG re-encoding, since JPG's lossy compression is what allows hitting a specific target size.

Is the target size exact, or approximate?

It's a "fits under" guarantee, not an exact match — the tool searches for the highest quality that keeps the file at or below your target, so the final size is usually close to, but not precisely, that number.