Image Compressor (to a Target File Size)

Type the largest size the form accepts, in KB, and you get back a copy under it.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

What you give it
  1. Drop in the photo
  2. Type the limit in KB
  3. Download a copy that fits

What it does

Pixels left alone

The width and height stay as they were. Only the quality moves.

The format stays

The page opens at Same as source, so a JPG comes back as a JPG. A PNG has no quality to lower, so it comes back as a JPG.

One limit, each photo

Drop in several photos and each one gets its own search against the same number.

Limits Nothing is uploaded: every save in the search happens in your browser.

The form says 500 KB at most, and your photo is twice that

You don't have to guess a quality setting. Give the tool the size, and it plays a game of higher-or-lower until a copy fits.

A number guessed in halves

You've probably played the game where someone thinks of a number between 1 and 100 and answers each guess with higher or lower. The quick way to win is to guess the middle every time. Each answer throws away half of what's left, and you close in fast.

The compressor plays that game with quality, the setting that decides how much fine detail a JPG or WebP keeps; more detail makes a bigger file. Your limit is the only answer it gets: this copy fits, or it's too big. It starts at the Maximum quality setting, 92%, and stops right there if the photo already fits. If not, it jumps to the bottom, 1%, to make sure a copy can fit at all. Then it guesses the middle, 46.5%, and keeps halving the gap.

Why the copy lands under your limit, not on it

The game is short. The tool saves the photo six times at most, and the last four of those saves each halve the gap. That leaves the best quality that fitted about 6 points below the lowest that didn't, and the copy you get is the one that fitted. A quality somewhere in that gap might have come closer to your number, but it was never tried.

The copy came in 46 KB under the 500 KB limit

Before

JPG 991 KB

The copy

JPG 454 KB

File size, KB

Both are 1,920 by 1,275 pixels. How we checked

Squeezing a photo under the limit

Here the Image Space Saver opens with its size limit already on.

  1. Press Add images and find the photo the form turned down.

  2. On a phone the settings hide behind the gear at the top of the tool, so tap it. On a computer they're already showing.

  3. Leave Limit each file’s size ticked and type the form's limit in KB in the box under it.

    Limit each file's size ticked, with 500 typed in the box under it and KB beside it; the box is outlined.
    Limit each file's size ticked, with 500 typed in the box under it and KB beside it; the box is outlined.
  4. Press Process 1 image, above the photo.

  5. Press the download arrow at the bottom of the card.

    The photo's card after the run, with its old and new sizes under the name and the download arrow outlined.
    The photo's card after the run, with its old and new sizes under the name and the download arrow outlined.

When no quality is low enough

At 1% a photo is about as blurry and blocky as the format allows. If the copy is still too big at that setting, there's nothing left to lower, so the tool stops after those first two saves. It won't hand you a file that breaks the rule.

  1. With the limit at 1 KB, the card ends in Failed and says “This image can't get under 1 KB. The smallest copy was 2 KB. Try a higher limit.” There's no copy to download, so press × to take it off the list.

    The photo's card after a run with the limit at 1 KB: under its size it says This image can't get under 1 KB, with a red Failed label.
    The photo's card after a run with the limit at 1 KB: under its size it says This image can't get under 1 KB, with a red Failed label.

The card doesn't say how close it came. Usually the photo simply has more pixels than the form needs, and fewer pixels make a smaller file at any quality. The Image Resizer takes them off; then come back and set the limit again.

Search FluffyBench