Photo Resizer by Target Size Guide
Shrink a photo until it fits a size in kilobytes, keeping the highest quality that still fits.
Photo Resizer by Target Size keeps re-encoding a picture at lower JPEG qualities until it fits a size you name, then shows the result before you download it. That is useful for upload forms that cap a photo at, say, 500 KB.
Fit a throwaway image under a limit
Choose a disposable photo under Image with Target size (KB) at 500. The result line should read something like JPEG · …×… · … KB · quality 92%, and the status should say it is Ready. Set Target size (KB) lower and watch the quality percentage fall. Enter a number in Longest edge (px) to remove pixels as well; that is the lever for reaching very small limits. Choose Download to save a file whose name ends in its size in kilobytes.
If the smallest file the encoder reaches is still over the limit, the status says so and names the size and quality it managed; lower Longest edge and try again. With Try WebP as well ticked, the same quality is also encoded as WebP and the smaller of the two is kept, so the extension can be .webp instead of .jpg.
Where your input goes
Processing runs in your browser. The tool does not upload your input to ilham.dev.
Related guide
For more background, read Practical Image Tools.
Questions you might have
- How is the right quality found?
- The encoder is tried at a series of qualities from high to low and stops at the first result that fits. That gives the best-looking file the limit allows rather than a guess.
- What if the limit is too small?
- The smallest the encoder can produce is reported, along with the quality it used. Lower the longest edge, which removes pixels rather than quality, and try again.
- Which format comes out?
- JPEG by default, because it is the most widely accepted. With the WebP box ticked the same picture is also encoded as WebP, and whichever of the two is smaller is the one you get.