Upload forms rarely agree on a limit. One wants a photo under 300 KB, the next allows 5 MB, a third asks for something between 20 and 50 KB. Instead of guessing a quality setting and checking the result, you can type the limit and let the tool search for the best quality that fits.
Steps
- Open Compress image.
- Type the limit into Maximum file size and pick KB or MB next to it, or tap one of the ready-made limits from 20 KB to 2 MB.
- Choose one or more pictures. They are processed in your browser and are not uploaded.
- Download each result, or use Download all (ZIP) when you added several.
What the tool does to reach the limit
It first tries the picture at its full pixel size and lowers the quality only as far as needed. If even a low quality does not fit, it makes the picture smaller in pixels and tries again. Under each result you can read what happened, for example "quality 74 %" or "pixels reduced to 40 %", together with the new file size and dimensions.
If the pixel size matters, for example a form that demands 600 × 800, set it in Resize image instead. That tool keeps the dimensions fixed and has its own optional file size limit.
More options
- Format: JPG is the default and the right choice for photos. WebP gives smaller files where it is accepted. PNG has no quality setting, so the only way to make it smaller is fewer pixels. Transparent areas turn white in a JPG.
- Minimum size: some forms reject files that are too small. Enter the lower bound in KB and a JPG or PNG that ends up below it is padded to reach it, without changing the picture.
A limit is counted strictly
The tool treats 1 KB as 1000 bytes, the stricter reading, so a result for 100 KB also passes on systems that count 1024. To change the file type without a size target, use Convert image.