Compress to Target Size
Hit a 10 KB, 20 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB or custom size by searching quality and, if allowed, dimensions. Nothing is uploaded.
How this tool works without JavaScript
Compress to Target Size handles hit a 10 KB, 20 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB or custom size by searching quality and, if allowed, dimensions. It is built for Meet a government form upload limit in kilobytes, accepts JPEG, PNG and other supported formats, and returns image from local browser memory. A target size is reached by actually re-encoding, so the result may be slightly under or over the goal.
Enable JavaScript to use the interactive tool. Processing happens locally in your browser; nothing is uploaded.
What it does
Compress to Target Size handles hit a 10 KB, 20 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB or custom size by searching quality and, if allowed, dimensions. It is built for Meet a government form upload limit in kilobytes, accepts JPEG, PNG and other supported formats, and returns image from local browser memory. A target size is reached by actually re-encoding, so the result may be slightly under or over the goal.
Tool-specific detail
Compress to Target Size is scoped to Meet a government form upload limit in kilobytes: it accepts JPEG, PNG and other supported formats, produces image, and exposes only the controls that job needs. A target size is reached by actually re-encoding, so the result may be slightly under or over the goal.
How to use
- Upload the image and enter the exact target in kilobytes. Preset targets are shown in the field help.
- Choose JPEG, WebP or AVIF. Leave downscaling enabled unless the required pixel dimensions are fixed.
- Start the search. Bench tests real encodings, narrows in on quality and only reduces dimensions when necessary.
- Check the achieved size and the note. If the target cannot be met without dropping below your minimum quality, the tool says so instead of hiding it.
Common use cases
- Meet a government form upload limit in kilobytes.
- Prepare a thumbnail below a strict CDN limit.
- Reduce a photo for an email attachment without guessing the quality slider.
Limits & considerations
A target size is reached by actually re-encoding, so the result may be slightly under or over the goal. PNG is lossless and cannot be quality-tuned, so target-size search is not offered for PNG. Very small targets on large photos can require substantial downscaling. Application forms that demand exact pixels should keep downscaling disabled.
How your image is processed
Compress to Target Size uses Canvas in your browser directly in your browser to create image. Every intermediate buffer stays on this device and no image leaves the page.
Privacy & security
Compress to Target Size reads JPEG, PNG and other supported formats from local memory, creates image with browser APIs, and keeps the result in a temporary object URL until you download it or leave the page. No image bytes are uploaded, logged, or stored by Bench.
Frequently asked questions
Decoding, editing and encoding all run inside your browser using Canvas and File APIs. The file is never uploaded, logged or stored by Bench, and the result exists only in a temporary object URL until you download it or close the page.
A target size is reached by actually re-encoding, so the result may be slightly under or over the goal. PNG is lossless and cannot be quality-tuned, so target-size search is not offered for PNG. Very small targets on large photos can require substantial downscaling. Application forms that demand exact pixels should keep downscaling disabled.
Yes. The tool runs locally in your browser with no account, subscription or watermark on your output. Bench is supported by the rest of its free utility catalogue.