FreeTools
All Tools

Categories

AboutContactBrowse All Tools
Image Tools

Compress Image to Size

Compress an image to a specific target file size. Uses an intelligent binary search algorithm to hit your target within a few KB.

100% private — processed in your browser only

Drop your file here

or click to browse from your device

JPG, PNG, WebP, GIFPrivate — never uploaded

How to use Compress Image to Size

1
Upload your image
Drag and drop or click to select an image file.
2
Choose a target size
Select a preset like 50KB or 100KB, or enter a custom size.
3
Compress and download
The tool uses a binary search algorithm to hit your target size.
Your privacy is protected
This tool runs entirely in your browser. Files you upload are never sent to any server — they are processed locally using JavaScript and immediately discarded when you close the page.

Frequently Asked Questions

How accurate is it?

The binary search algorithm gets within a few KB of your target in most cases. Very small targets on large images may not be achievable.

Why can't I hit a very small size?

JPEG compression has limits. If the target is smaller than what is achievable at the lowest quality, the tool returns the smallest possible result.

Related Tools