Target-size compression
Hit an exact limit instead of trying quality settings one by one.
Compress a JPG, PNG or WebP image to a target size in KB, right in your browser
This tool is completely free — no credits required. All processing happens in your browser.
Choose an image to see its size and dimensions, then compress it to your target.
Upload forms often reject photos over a limit such as 100 KB or 500 KB. Instead of guessing a quality setting, enter the size you need and this tool finds the highest quality that fits, shrinking the dimensions only when it has to.
The tool re-encodes the image with the browser's canvas encoder and searches for the best settings.
JPG and WebP are encoded at 95% quality first. If that already fits, you're done.
Otherwise the quality range 5%–95% is halved 8 times, keeping the highest quality whose file is at or under the target.
If even 5% quality is too big, or the image is a PNG (which is lossless), the width and height are reduced by the same factor, again by binary search, at 70% quality for JPG and WebP.
You see the new size, dimensions and quality. Sizes use 1 KB = 1,024 bytes, so a 100 KB target means at most 102,400 bytes.
Hit an exact limit instead of trying quality settings one by one.
Shrinks width and height only when quality changes can't reach the target.
JPG and WebP use lossy quality; PNG is reduced by scaling.
Compare file size, dimensions and a preview of the result.
Save the compressed file with a name that shows the target size.
Your image stays on your device; nothing is sent to a server.
Anyone facing a file size limit.
Meet photo and signature limits on exam, visa and job portals.
Shrink photos so messages send quickly and stay under attachment limits.
Prepare product photos that meet marketplace limits and load fast.
Cut image weight to speed up pages.
Removing unneeded background saves more bytes than lowering quality.
PNG is lossless, so it can only get smaller by shrinking. Photos compress far better as JPG or WebP.
If a form says 100 KB maximum, aim for 95 KB in case it counts 1 KB as 1,000 bytes.
Very small targets for large photos can look soft. Raise the target if text or faces blur.
Enter 100 as the target. The tool finds the highest quality whose file is at most 102,400 bytes. Results are at or just under the target, rarely exactly on it.
Lowering the size means discarding some detail. The tool keeps as much quality as possible for the target, and reduces dimensions only when necessary.
PNG compression is lossless, so there's no quality setting to lower. Reducing width and height is the only way to reach a smaller file.
This tool uses 1,024 bytes, as Windows and most upload forms do. Some sites use 1,000; leave a small margin if you're unsure.
If even the image at 5% of its original width and height is over the target, you'll see an error asking for a larger target.
No. All processing happens in your browser using the canvas API, and nothing is stored.