Just under your targetCompress Image to Target Size

The Compress Image to Target Size workbench

The Compress Image to Target Size workbench with sample material loaded (English interface).
The Compress Image to Target Size workbench with sample material loaded (English interface).Back to the workbench ↑

About Compress Image to Target Size

Compress Image to Target Size squeezes JPG, PNG, and WebP images down to one exact file size. Pick 200 KB, 500 KB, or 1 MB — or set a custom target from 10 KB to 50 MB — and every image in the batch ends up under it, at the best quality that still fits. The tool searches the encoder quality between 0.05 and 0.92 and shrinks the image only if it has to, so quality is traded only as far as the target demands. A file already under the target in the chosen format is copied, not re-encoded, and everything runs in your browser — no upload, no account.

When to use it

How to use Compress Image to Target Size

  1. 1Drop up to 50 JPG, PNG, or WebP images — 2 GB in total. GIF and AVIF files are refused up front, and any image over 8,192 px on a side cannot be compressed.
  2. 2Pick a target size: the 200 KB, 500 KB, or 1 MB preset (500 KB is the default), or Custom and drag the slider from 10 KB to 50 MB in 10 KB steps. Then pick the output format, JPG or WebP.
  3. 3Press Compress all. For each image the tool searches the quality between 0.05 and 0.92 for the highest setting that still fits, shrinking the image in up to 4 rounds only if even the lowest quality is too big. Each card shows the before and after sizes and, for re-encoded images, the quality used.
  4. 4Download the finished set as one ZIP, or download any image on its own. Files that fail stay listed with their reason instead of blocking the rest of the batch.

What people use it for

Examples

A 4.2 MB phone photo to 500 KB

A 4.2 MB JPEG from a phone, 500 KB preset, JPG output: the tool finds the highest quality that still lands under 500 KB, and the result downloads as photo-500KB.jpg.

A 12 MB, 6000 × 4000 photo to 1 MB

A 12 MB photo at 6000 × 4000 px with a 1 MB target: the quality search runs at full size first, and when even the lowest quality is too big, the tool shrinks the photo proportionally and searches again, landing just under 1 MB.

A 180 KB JPG that is already small enough

A 180 KB JPG with a 500 KB target and JPG output is already under the target in the chosen format, so it is copied untouched — same file, same name, no re-encoding.

Fifty product photos to one ZIP

Fifty mixed JPG and PNG product photos, 1 MB target, WebP output: each one is compressed on its own, the finished set downloads as a single ZIP, and any file that fails is listed with its reason while the rest still download.

How your file is processed

Compress Image to Target Size tells you where processing happens. Browser-only operations keep the file on your device; transcription and server processing upload only the media they need and apply the account limits shown in the tool.

Best for

Not for

Things to know

Other tools to consider

Frequently asked questions

Is my image uploaded anywhere?

No. Compression runs entirely in your browser — the file never leaves your device, and there is no account or watermark.

What formats can I compress, and what comes out?

JPG, PNG, and WebP go in; JPG or WebP comes out. GIF and AVIF are refused up front — GIF because it is animated, AVIF because browsers cannot encode it. PNG sources are always re-encoded, since PNG has no quality setting.

What happens to transparency?

WebP keeps the alpha channel. JPG cannot, so transparent areas are flattened over white — the workbench warns you when a transparent image is queued with JPG selected.

Will my image be resized?

Only if it has to be. The tool first searches the quality from 0.05 to 0.92 at full size; only when even the lowest quality is too big does it shrink the image proportionally — up to 4 rounds, down to a 16 px longest side — and search again.

What if the target cannot be reached?

The file fails with an explicit error that names the smallest size it reached, instead of shipping an over-target file. Raise the target, or switch to WebP, which is usually smaller than JPG at the same quality.

How many images can I compress at once?

Up to 50 images per batch, 2 GB in total. Files beyond those limits are skipped with a notice, and each file is processed on its own — one failure never blocks the rest. A file already under the target in the chosen format is copied untouched instead of re-encoded.

Related tools

All tools →