Skip to content

Compress Image to a Target File Size

Every upload form, mail server and CMS has its own file size limit, and it is rarely the one your photo happens to be. Type that limit below - 100KB, 200KB, 1MB, anything - and the tool lowers the quality step by step, switching to a smaller or more efficient format when that helps, until the saved file fits. Everything runs inside your browser, so the image is never uploaded.

Compress to a Target Size

Drag & drop images here, or click to choose

Supports JPG / PNG / WebP / GIF / AVIF / SVG, no file size limit

Type the limit your form asks for, for example 100KB or 0.5MB, then compress. The tool lowers quality - and switches to a smaller or more efficient format - until the file fits.

📁 Drag a whole folder to batch add · ⌨ Ctrl+V to paste images · 📎 No limit on quantity · Zero upload, processed locally

Most upload forms do not want the smallest image you can make - they want an image under a specific number of kilobytes. A visa application wants 100 KB. A comment box wants 1 MB. A CMS wants something in between, and the limit is stated in a different unit on every site.

So rather than guess a quality percentage and hope, type the number you were actually given. The panel above takes it, and the output is a file that is verifiably under that limit.

Pick your target size

These four limits cover the overwhelming majority of real upload forms. Each page has the target already filled in, plus the honest measurements of what a real photo does at that size.

Need a limit that is not on that list? Use the panel at the top of this page and type it in yourself - any value from 10 KB to several megabytes works.

How the compression reaches your target

  1. Type the limit into the Target Size field - for example 100KB or 0.5MB. You can also drop a whole folder, or paste with Ctrl+V.
  2. Press Start Compressing. The tool steps the quality down and re-measures each time.
  3. It changes format when that helps. JPEG is not always the smallest way to store a given picture; when switching to a more efficient format gets under the limit that JPEG cannot, it does.
  4. It stops the moment the file fits, so the result is as close to your limit as possible from above rather than needlessly destroyed. The card under the panel tells you the real resulting size.

When your image will not go that small

Some content cannot be described in very few bytes. Smooth gradients repeat themselves and compress well; grain, sharp text and hard edges do not. If the tool reports that even the lowest quality stays above your limit, the picture is the constraint - and lowering quality further only makes it uglier without helping.

Cut the dimensions instead. Two hundred pixels wide with honest quality looks better than two thousand pixels wide turned to mush:

  1. Resize the image to the pixel size you actually need - 320 px is plenty for an avatar, 640 px for a form photo, 1280 px for a CMS upload.
  2. Convert it to WebP, which often buys the missing kilobytes on its own at equal perceived quality.
  3. Come back here and compress to your target again.

The DPI changer helps too: a 300 DPI file carries metadata that inflates the byte count without adding a single visible pixel of detail.

Nothing leaves your device

The whole job runs in your browser, not on a server. Your picture is decoded and re-encoded by JavaScript inside the tab you are already looking at, so nothing is transmitted, nothing is stored on a server, and the page keeps working without a network connection once it has loaded. There is no watermark, no registration and no download limit.

The privacy policy spells out exactly what this site does and does not collect.

Frequently asked questions

What does "compress image to a specific size" actually mean?

It means ending up with a file that is guaranteed to be under a byte limit you were given - not just "smaller than before". The tool lowers the quality step by step, and moves to a smaller or more efficient format when that helps, then stops as soon as the file fits. The number it reports is the real size of the file you download.

How do I know which target size to type?

Use the limit the form or site states in its own words: "maximum 100 KB", "files up to 2 MB". If it only gives dimensions, pick a size that comfortably fits the pixel count you need - the pages below cover the four limits people hit most often. When the figure is genuinely open, 100 KB is the safest common denominator.

Can every image be compressed to any size?

No, and any tool that says otherwise is doing something lossy in a way you cannot see. Some pictures bottom out above very small targets: a 214 KB screenshot of body text still measured 30.8 KB at the lowest quality, while a 213 KB smooth photo reached 16.2 KB. When a file refuses to fit, cut the pixel dimensions with the resizer rather than destroying the quality.

Does the tool re-compress my file after I download it?

No. There is no second quality slider on this page. What the result card reports is exactly what the Download button hands over, so the size you were promised is the size you get.

Are my images uploaded anywhere?

No. Decoding and re-encoding happen inside your browser tab using the canvas API, so the picture never leaves your device. There is no watermark, no signup, no download limit, and the page keeps working without a network connection once it has loaded.