The Compress Image to Target Size 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
- A form, email attachment, or upload box caps files at 500 KB, and your photos are several megabytes each.
- A website or CMS rejects images over 1 MB, and you need a whole set under the limit without resizing each one by hand.
- You are preparing product or portfolio photos that must all share the same maximum file size.
- You want to find out how small a photo can go before the quality visibly drops, with the size fixed and the quality doing the work.
How to use Compress Image to Target Size
- 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.
- 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.
- 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.
- 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
- A seller compresses 50 product photos to 1 MB each so a marketplace upload accepts the whole set in one go.
- A photographer shrinks a 6 MB JPEG export to 1 MB for a client gallery that caps each file at 1 MB.
- A teacher prepares a folder of worksheet scans under 1 MB each for a learning platform that rejects larger files.
- A designer checks a batch of hero images against a 200 KB budget before a site launch, and re-exports at a higher target the ones that cannot fit.
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
- Hitting an exact upload limit — a form, inbox, or CMS cap — with a whole batch at once.
- Photos where a small, controlled quality trade is acceptable in exchange for a guaranteed size.
- Mixed JPG and PNG folders that need one target size and one output format.
Not for
- Pixel-perfect originals — every re-encoded image is lossy, and only files already under the target escape untouched.
- Animated images — GIF and AVIF files are refused; this tool handles still JPG, PNG, and WebP only.
Things to know
- A target can be too small to reach — If even the smallest version — lowest quality, shrunk down to a 16 px longest side — is still over the target, the file fails with an explicit error naming the smallest size reached, and no over-target file is shipped. Raise the target, or switch to WebP, which is usually smaller than JPG at the same quality.
- Transparent PNGs lose their transparency in JPG — JPG has no alpha channel, so transparent areas are flattened over white. The workbench warns you when a transparent image is queued with JPG selected — pick WebP to keep the transparency.
- Some files cannot be compressed here — GIF and AVIF files are not accepted — GIF because it is animated, AVIF because browsers cannot encode it — and any image over 8,192 px on a side fails with an explicit error instead of being compressed. Convert or resize those files first, then bring them here.
Other tools to consider
- Batch image resizer — When you need exact dimensions — a width, height, or scale — instead of an exact file size.
- Photo Enhance — When the photo itself needs work — sharpening or cleanup — before you worry about its size.
- Image upscaler — When the image is too small and needs to be enlarged; this tool only ever shrinks, it never upscales.
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.