Compress an image to a target file size
Set a file-size budget in kilobytes and the tool finds the highest quality that fits. Everything happens locally in your browser, so your images are never uploaded.
Compress to a specific size
How it works
- 1
Select an image
Choose a JPEG, PNG, or WebP file, or drag and drop it onto the tool.
- 2
Set your target size
The tool is preset to aim for your chosen file size. Adjust the KB range if you need a different budget.
- 3
Compress and download
The tool finds the highest quality that fits your size range, then download the result — all without uploading.
Related tools
Frequently asked questions
- How do I compress an image to a target size?
- Select your image and the tool automatically searches for the highest JPEG quality that keeps the file at or below a target size. You can widen or narrow the KB range if you need a different budget.
- Are my images uploaded to a server?
- No. Compression runs entirely in your browser. Your images and metadata never leave your device.
- Why is the output a JPEG?
- Target-size compression exports JPEG because its quality control gives fine, predictable file-size steps — which is what hitting an exact KB budget needs.
- What if my image can't reach the target size?
- Very large or highly detailed images may not fit an extreme budget without visible quality loss. The tool gets as close as possible and tells you when the result falls outside your range.
- Can I resize or crop before compressing?
- Yes. Use the geometry options to set exact dimensions, scale by percentage, or crop first — the target-size compression is applied to the final pixels.
- Can I set a print DPI?
- Yes. You can stamp a print resolution such as 300 DPI into the file's metadata. This changes only the metadata, not the pixels, so the image looks identical but reports the requested DPI.
About target-size compression
Many forms and portals cap uploads at a specific size — for example 20 KB, 50 KB, or 100 KB. Instead of guessing quality settings, enter the size range you need and the tool searches for the best JPEG quality that lands inside it, right on your device.
You can also resize or crop first, and stamp a print DPI into the file's metadata. Your images never leave your browser.