Photo Resizer by Target Size
Shrink a photo until it fits a size in kilobytes, keeping the highest quality that still fits.
Resize to a size limit
The picture is scaled down to the longest edge, then re-encoded at the highest quality that still fits the target. If even the lowest quality is too large, the smallest size it reached is reported so you can lower the edge and try again.
Result
Original—
Result—
History for this tool
The most recent data you entered in this tool, stored only in this browser.
Save what you type here, in this browser? Your work would go into this browser's local storage, so a refresh or a trip to another tool does not wipe it. You also get a short list of previous entries under the form, each one restorable with a click. Nothing is ever uploaded, and there is no account.
Being straight about the trade-off: anything kept there can be read by anyone who can use this browser profile, and by any script that later runs on this site. A tool page can hold a private key, a password or a signed token. Saving is convenient; it is not private.
About this tool
Some forms and services cap an upload at five hundred kilobytes or a megabyte. Give this tool the limit and the picture is scaled to fit, then re-encoded at the highest quality that stays under it, with the result shown before you download.
Questions
- 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.