Compress Image to an Exact Size

Type a target size in KB and we find the best possible quality that fits — JPG or WebP output, right in your browser.

Drop, convert, download

Processing happens on your device using Web Workers — your images never leave the browser.

Quality 82%
Resize (px, optional)
×

Your converted images will appear here.

How to use this tool

  1. 1

    Upload your image

    Drag and drop a JPG, PNG or WebP image into the upload zone.

  2. 2

    Set a target size

    Type the size you need in kilobytes (for example 50 or 100) and pick JPG or WebP output.

  3. 3

    Compress & download

    Click Compress to size. The tool adjusts quality automatically to land as close to your target as possible.

Format comparison

SettingBest for
Under 50 KBAvatars & email attachments
Under 100 KBWeb images & forms
Under 200 KBBlog posts & product photos
JPG / WebPLossy output with adjustable quality

Frequently asked questions

How does compression to an exact size work?
The tool re-encodes your image at different quality levels using binary search, then picks the quality that lands closest to your target size.
Will my image reach exactly the size I type?
It gets very close — usually within 5%. If the original image is smaller than the target, the output may already be smaller than requested.
Is my image uploaded to a server?
No. Everything runs in your browser using Web Workers and the Canvas API — your image never leaves your device.

More free image tools

All free ToolFlect tools