Browser tool

Compress Image to a Custom Size

Set any target in KB or MB and compress toward it, with the achieved size reported. Runs in your browser.

Most flexible target toolType a target or tap a preset, choose KB or MB, optionally resize or change format, then Process. The tool compresses toward your value and reports the result.
Result will appear here.

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

  1. Add an image using the upload box or drag and drop.
  2. Tap a preset chip, or type a value and choose KB or MB as the unit.
  3. Optionally choose an output format, resize, or set a JPG background, then click Process.
  4. Check the achieved size against your chosen target in the panel, then click Download.

Why use this tool

Any size you want

Type a custom KB or MB value, or pick a preset, instead of being locked to one fixed target.

Honest result

Keeps the largest result at or under your target when possible, and flags it as over target when the target cannot be reached.

Keeps your format

Outputs the same format where possible and converts HEIC, TIFF, SVG, and GIF to JPG, which it discloses.

Private and local

All compression happens in your browser; nothing is uploaded to a server.

Common uses for Compress Image to Custom Size

Unusual size limits

Meet a specific cap a form or service requires, whatever the number.

One tool for many targets

Switch between KB and MB targets without changing tools.

Quick presets

Jump to 20 KB, 100 KB, 1 MB and other common sizes with one tap.

Repeatable workflow

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.