Compress Image to Exact Size
Set a target file size in KB or MB, plus an optional resolution and aspect ratio, and get the sharpest JPG or WebP that fits.
How to compress an image to a target size
Add your image
Drop an image onto the box, or choose it from your device.
Set the target
Enter a size in KB or MB.
Add dimensions
Optional. Set a width, height or aspect ratio if the form asks for one.
Download
The sharpest JPG or WebP that fits under your limit is saved.
When to use Compress Image to Exact Size
A form says the photo must be under 100 KB, and your picture is several megabytes.
An upload rejects files over a limit, and you want the best quality that still fits.
Tips for a better Compress Image to Exact Size result
Enter the size limit in KB or MB, and add a width, height or aspect ratio if the form also asks for one.
Set the target a little under the real limit to leave room for rounding.
Compress Image to Exact Size: limits and what to check
A very small target means visibly lower quality, so try a larger limit if the result looks poor.
If you set both width and height, the picture is cropped from the centre and not stretched.
About Compress Image to Exact Size
Set the file size you need, and the tool finds the sharpest JPG or WebP that fits under it. You can also set the width and height or pick an aspect ratio such as 1:1 or 4:3, so one pass gives the exact size, shape and weight a form asks for.
FAQs
What if the target is too small?
Very small targets mean a visibly lower quality. Try a larger limit if the picture looks poor.
Can I set the pixel size too?
Yes. Enter a width, height or both, or pick an aspect ratio. With both, the picture is cropped from the centre, not stretched.