Compress Image to an Exact Size in KB

Compress images to an exact file size — free, private, in your browser. Pick a target, add your images, download – each file comes out as close to the limit as the image allows, never over it.

Target size
More options: exact dimensions, format, EXIF
Exact dimensions (optional)

Leave empty to keep the original shape. Width only or height only keeps the aspect ratio.

Output format

How to compress an image to a specific size

  1. Choose a target

    Pick 10, 20, 50, 100 KB… or type any size. Optionally set exact dimensions.

  2. Add images

    Drop JPG, PNG or WebP files, choose them, or paste from the clipboard.

  3. Download

    Each result is at or below your target. Download one by one or all as a ZIP.

Popular sizes

Any image

JPG

PNG

Form presets

All sizes: compress image by size · Official requirements: exam & form sizes

Private by design

Your images are processed on your own device. Nothing is sent anywhere – the site's security policy blocks uploads to other servers.

Best quality that fits

MozJPEG and WebP encoders find the highest quality under your limit instead of guessing, so text and faces stay as sharp as possible.

Frequently asked questions

How does this tool hit an exact file size?

It encodes your image several times at different quality levels and keeps the largest result that is still under your limit. Only if the lowest acceptable quality is still too big does it reduce the dimensions step by step.

Are my images uploaded?

No. Everything runs in your browser with WebAssembly. Files never leave your device, and once you have used it, most browsers can run the tool offline too.

Is 1 KB 1,000 or 1,024 bytes?

Websites differ. The tool keeps files under N × 1,000 bytes, which is also under N × 1,024 bytes, so your file passes either way. The exact byte count is shown with every result.

Can I set the size in cm or mm?

Yes. Open "More options", enter width and height in mm, cm or inches with a DPI (300 by default), and the image is resized to the matching pixels. For JPG, the DPI is also written into the file.

Is it free?

Yes, free with no sign-up and no watermark.

Send us an email

Choose how to send it. The message is filled in for you and you can edit it before sending.

Or write to

Powered by InventStarts (opens in a new tab)