Skip to main content
PicKit

Compression

How to Compress an Image to a Specific File Size (20 KB, 100 KB, 1 MB)

· 5 min read

Passport portals, job applications and content systems often say “maximum 100 KB” or “between 20 and 200 KB”. A picture’s file size is not a setting you can type in: it follows from how big the picture is, how detailed it is and how hard it is compressed. Knowing which of those you can change makes hitting a target quick.

What decides the size

  • Dimensions: a 4000 by 3000 pixel photo has far more to store than a 1000 by 750 one. Reducing the dimensions is the biggest lever and costs nothing you will notice on a small screen.
  • Quality (for JPEG and WebP): a lower quality setting throws away fine detail. Around 75 to 85 percent usually looks the same to the eye; below about 50 percent blocks and blur appear.
  • Format: photographs are much smaller as JPEG or WebP than as PNG. PNG is lossless, which is why a photo saved as PNG can be many times larger.
  • Detail: a smooth sky compresses much better than leaves or fabric. Cropping away unnecessary background helps too.

Reaching a target without guessing

Trying quality settings by hand is slow. The exact file size tool does the search for you: give it a target such as 20 KB, 50 KB, 100 KB, 200 KB, 500 KB or 1 MB and it tries quality settings, and, if you allow it, a smaller picture, until the file fits. It shows the quality and size it used.

ToolCompress to a File SizeWorks towards the size you choose and never claims success it did not reach: if the target needs more quality loss than is sensible, it says so and shows the closest result.

If the target cannot be reached

  1. Allow the picture to be made smaller. The dimensions usually matter more than quality.
  2. Resize the picture first to the size the form needs, then compress it.
  3. Crop away parts of the picture you do not need.
  4. Save photographs as JPG or WebP, not PNG.
ToolImage ResizerSets exact pixel sizes or a percentage and keeps the proportions, so you can shrink the dimensions before compressing.

A very small target on a large, detailed picture may not be reachable without an ugly result. That is a property of the picture, not a fault of the tool, and the honest answer is a smaller picture.

Everything above runs in your browser, so the picture you are trying to make smaller (often an ID photo or a document) is never uploaded. For the smallest ordinary JPEG at a quality you pick, the JPEG compressor uses the MozJPEG encoder.

ToolJPEG CompressorCreates smaller JPEG files than the browser’s default encoder at the same quality setting and lets you compare before saving.