Free Compress Image to Target Size Online

By Amir Shahzad · Published 29 November 2026 · Updated 29 November 2026

TL;DR: Upload a photo, pick the exact file size you need — 100 KB, 200 KB, 500 KB, 1 MB, or any size you type — and download a JPEG that fits it. The tool lowers the quality only as far as it must, and tells you honestly if your target cannot be reached.

Photo coming soon — a real photo for this topic will be added here as soon as one is available.

Original
Result

Your files never leave your device — processing happens in your browser.

How to compress an image to a target size

  1. Upload your image. Click the box above or drag the file onto it. JPG, PNG, WebP and GIF all work.
  2. Pick your target. Press 100 KB, 200 KB, 500 KB or 1 MB, or type your own number in the custom box — a custom number wins over the presets.
  3. Press Compress image. The tool searches JPEG quality levels from high to low and keeps the highest-quality version that fits your target. If quality alone cannot reach it, it shrinks the picture and tries again.
  4. Download the result. Check the sizes under the previews, then press Download compressed image and use the file wherever the size limit was.

Keep your original photo — you will want it back if you ever print the picture.

How target-size compression works

Most upload forms do not ask for a quality level — they ask for a file size: a job portal says "maximum 200 KB", a university form says "photo under 500 KB", an email service rejects anything over 1 MB. Guessing a quality slider until the file happens to fit is slow. So this tool works the other way round: you name the size, and it finds the quality for you.

Under the hood it uses JPEG, the format made for photos. Its encoder throws away detail your eyes barely notice, and the quality setting decides how much. At quality 90 a photo looks almost identical to the original but the file stays large; at quality 70 most photos still look good on screen and the file is far smaller. At quality 50 and below you start to see it: edges soften, smooth sky or skin shows blocky patches, and fine detail like hair or leaves turns mushy. That is honest physics, not a flaw in the tool — a smaller file simply carries less information.

The tool searches in order. It tries quality 95, then 85, 75 and so on down to 5, keeping the first version — the highest quality — that lands at or under your target. Only if even quality 5 is still too big does it shrink the picture, to 80% of its width and height, then 64%, and so on, trying the quality ladder again at each size. Shrinking is a last resort, because fewer pixels need far fewer bytes. The result always tells you the final dimensions, so you know exactly what changed.

Two things are worth knowing. First, the output is always a JPEG, because JPEG reaches small targets best for photographs. If your image is a PNG with transparency — a logo, for example — the transparent parts become white, so use the general Image Compressor for those instead. Second, quality drops as the target shrinks, and very small targets may not be reachable for detailed photos at all. A busy landscape forced under 50 KB will look soft whatever the tool does; in that case use the largest target the form allows, not a smaller one.

Worked example: a 2.4 MB phone photo down to 200 KB

Take a typical phone photo — 2.1 MB, 4032 × 3024 pixels — that a university portal wants under 200 KB, about one-tenth of its size. Here is what happened when we ran it through this tool:

The download is about 165 KB, roughly 92% smaller — but look at the cost: the picture is about a third smaller on each side, saved at the lowest quality, so fine detail is visibly soft. That is the honest trade-off for a 12-megapixel photo at 200 KB; at a 1 MB target it would have kept full size at much higher quality. Forced under 100 KB instead, it shrank to 2064 × 1548 pixels and came out at about 84 KB. And at a 2 KB target the tool gave up honestly: even at the lowest quality and smallest size, the image stayed above 2 KB, and the message said so instead of handing over a file that breaks the limit.

Frequently asked questions

How do I compress an image to exactly 200 KB?

Upload your image, pick the 200 KB preset (or type 200 in the custom box), and press Compress image. The tool tries JPEG quality levels from high to low and keeps the highest quality version that fits at or under 200 KB, then you download it.

Is this tool really free?

Yes. There is no limit on the number of images, no account, no watermark and no payment. The tool runs entirely in your browser.

Will compressing to a small target ruin my photo?

It can. The smaller the target, the lower the JPEG quality the tool must use, so fine detail softens and flat areas can show blocky patches. A detailed photo forced under 50 KB will look noticeably soft — that is the limit of the format, not a fault in the tool.

What target sizes can I pick?

The presets are 100 KB, 200 KB, 500 KB and 1 MB, and you can type any custom size from 10 KB upward. Common limits are 200 KB for job and university portals, 500 KB for many government forms, and 1 MB for email attachments.

What happens if my image cannot reach the target?

The tool first steps the JPEG quality down to its lowest level, then shrinks the image dimensions and tries again. If the image still will not fit, the message says so honestly instead of giving you a file over the target — try a larger target or a smaller original image.

Are my photos uploaded anywhere?

No. Your photos never leave your device. The compression is done in your browser with the Canvas API, and nothing is sent to a server.

What formats are supported, and what comes out?

You can upload JPG, PNG, WebP or GIF. The output is always a JPEG, because JPEG is the format that reaches small targets best for photos. If your image had transparency, the transparent areas become white in the JPEG.

Will my image stay the same size in pixels?

Usually yes. The tool only shrinks the pixel dimensions if lowering the quality alone cannot reach your target. If that happens, the result message tells you the new dimensions, so you always know what changed.

Sources

General guidance only — confirm the limit on the form or portal you are using before you upload.

What to do next

Related tools

Share:
Disclaimer: The tools and guidance on this page are for general use. Tools run entirely in your browser and your input never leaves your device. Always keep a backup of your original image before converting or editing it.