About this tool
Compress an image to a specific target file size — useful when a service has an exact byte limit (passport photos, ID upload forms, app submissions) or when you need every image in a batch to come in under a fixed weight. The tool iterates compression quality until it lands at or below your target.
When to use it
- Hitting a passport-photo file-size requirement (e.g., under 240 KB)
- Producing images that fit a strict app-store or upload limit
- Trimming images to fit an email-attachment budget without going over
- Standardising file size across a batch for predictable bandwidth
- Compressing for a service whose API rejects images over a specific size
What to expect
Targets are best-effort — for very small targets on detailed photos, the tool reduces resolution as well as quality to hit the limit. The output is the smallest faithful version of your image at or under the target. Specifying targets that are too small (<10 KB on a complex photo) produces visibly compressed output.
Frequently asked questions
What if my target is impossibly small?
The tool reduces both quality and resolution to hit the target. Very aggressive targets produce visibly compressed images — at some point, you're trading quality for size. If you need a hard floor on quality, set a slightly larger target.
Can I specify the target in MB instead of KB?
Yes — switch the unit between KB and MB. Targets like `2 MB` work identically to `2048 KB`.
Will the output be exactly my target size?
It will be at or below your target, often very close. Iterative compression aims for the largest size that's still under the limit, to maximise quality.