Compress Image to Custom Size
Set any target in KB or MB and compress toward it, with the achieved size reported. Runs in your browser.
Compress Image to Custom Size is a browser-based image tool on ImgToolsBase. Set any target in KB or MB and compress toward it, with the achieved size reported. Runs in your browser. To use it, upload or drop your image and view the result directly in your browser — no signup and nothing to install.
How this tool works
What it does
Compresses an image toward any size you choose, in KB or MB. It keeps the largest result at or under your target when it can, otherwise the closest, and reports the achieved size.
Presets and units
Tap a preset chip for a common size, or type your own value and pick KB or MB. The presets just fill in the target for you.
Privacy
The image is processed on your device. Nothing is uploaded, and re-encoding strips EXIF and GPS metadata.
Compress Image to Custom Size in your browser
This is the flexible target-size compressor: set any value in KB or MB and the tool compresses toward it in your browser. Use a preset chip or type your own number.
It keeps the largest result at or under your target when it can, otherwise the closest, and reports the achieved size. If the target cannot be reached at full size, the panel shows the closest size and flags it as over target.
How to use Compress Image to Custom Size
- Add an image using the upload box or drag and drop.
- Tap a preset chip, or type a value and choose KB or MB as the unit.
- Optionally choose an output format, resize, or set a JPG background, then click Process.
- Check the achieved size against your chosen target in the panel, then click Download.
Why use this tool
Type a custom KB or MB value, or pick a preset, instead of being locked to one fixed target.
Keeps the largest result at or under your target when possible, and flags it as over target when the target cannot be reached.
Outputs the same format where possible and converts HEIC, TIFF, SVG, and GIF to JPG, which it discloses.
All compression happens in your browser; nothing is uploaded to a server.
Common uses for Compress Image to Custom Size
Meet a specific cap a form or service requires, whatever the number.
Switch between KB and MB targets without changing tools.
Jump to 20 KB, 100 KB, 1 MB and other common sizes with one tap.
Use the same tool for every image-size requirement you run into.
Frequently asked questions
Can I set a custom KB or MB value?
Yes. Type any value and choose KB or MB, or tap a preset chip. The tool compresses toward that size and reports the achieved result.
Will it hit my custom size exactly?
No tool can guarantee an exact size. This one keeps the largest result at or under your target when it can, and tells you the size it actually reached, marking it over target if needed.
Are my files uploaded when I choose a custom size?
No. The image is compressed in your browser, so it never leaves your device.
What if my target is smaller than the image can reach?
The panel shows the closest achievable size and flags it as over target, so you can lower the dimensions and try again.
Does it keep already-small images as-is?
If the file is already under your chosen target, the original is kept unless you turn on the recompress checkbox.
Related image tools
Tools that pair well with Compress Image to Custom Size.