1. Home
  2. Image Utilities
  3. Compress Image to Target Size (KB/MB)

Compress Image to a Target Size in KB or MB

Set the limit a form asks for, get a file that fits it.

Free No sign-up

Upload a photo, type the size limit you need (for example 50 KB) and download a file that is at or under it. The tool lowers the JPG or WebP quality step by step and checks the real file size after each try. If quality alone can't get there, it also makes the picture smaller in pixels. The result card shows the final size, dimensions and quality, so you can see what changed.

The tool aims for this size or less and tells you if it can't get there.
Some forms also set a lower limit, for example 20 to 50 KB. 0 = no minimum.
Off keeps the pixel size; very small limits may then be out of reach.

Your files are uploaded to Nimclip for processing. Uploads are deleted when processing ends and results 30 minutes after they are ready.

Features

Measured, not estimated

Every result is encoded and weighed before you get it. If it reaches your limit, it is at or under it; if it can't, the result card says so.

Common limits one click away

Buttons for 5 KB up to 2 MB, plus a 20 to 50 KB range that many application forms use.

Quality mode

Prefer a quality number instead of a size? Switch the mode and pick a JPG/WebP quality from 10 to 95.

Told when it can't

Some limits are too small for a big photo. Then you get the smallest file we could make and a note saying so.

Many files

Up to 20 images per run when signed in (5 without an account), downloaded as a ZIP.

Close to your number

The result is never above your limit and usually lands between 90% and 100% of it. The card shows the percentage.

How to use Compress Image to Target Size (KB/MB)

  1. Choose your image (JPG, PNG, WebP, HEIC, AVIF, GIF, BMP or TIFF).
  2. Pick a size button or type your own limit in KB or MB.
  3. Leave "Reduce dimensions when needed" on unless the pixel size must stay the same.
  4. Press Process, check the final size on the result card and download.

Example result

The same sunset lake picture twice: the original JPG on the left and the compressed 96 KB JPG on the right, which looks almost the same.
Target 100 KB: a 3000 x 2000 px JPG of 1.60 MB came out at 96.3 KB, still 3000 x 2000 px (quality 43). The test picture was generated by us, not taken with a camera. Busy real photos often need a lower quality or smaller dimensions to reach the same size.

Supported formats

Input: JPG/JPEG/JFIF, PNG, WebP, HEIC, AVIF, GIF (first frame), BMP and TIFF, up to 25 MB and 60 megapixels per file, with or without an account. Output: JPG, PNG or WebP. Automatic keeps JPG, PNG and WebP as they are and turns other formats into JPG (PNG if the image has transparency).

Good for

Exam and job application formsEmail attachmentsWebsite uploads with a size capReduce photo size in KB or MB

Limitations

  • Why 25 MB: memory grows with the number of pixels, and a 60 megapixel photo (about 25 MB as JPG) already needs about 3 GB of server memory. A bigger file of the same photo would only be a less compressed copy, so 25 MB and 60 megapixels cover every real photo.
  • 1 KB is counted as 1000 bytes here. So a file under 50 KB here is also under 50 KB on portals that count 1024 bytes per KB.
  • To protect readability the tool never goes below JPG/WebP quality 20, 16 PNG colors or 160 pixels on the longer side. If a limit needs more than that, you get the smallest file inside those floors and a note.
  • Camera details (EXIF, GPS) and color profiles are removed to save space. Colors are converted to sRGB first, so they look the same. A file that is already under the limit is returned unchanged, metadata included.
  • PNG stays lossless only while it fits. To reach a limit it is reduced to 256 colors or fewer, which can add grain to photos. JPG is usually the better choice for photos.
  • Only the first frame of an animated GIF or WebP is kept.
  • Files are processed on Nimclip's servers and deleted automatically 30 minutes after the result is ready.

Compress Image to Target Size (KB/MB) FAQ

Will the file really be under my limit?
Yes when the result card says it reached the target. The size shown is the size of the file you download. If the limit can't be reached within the quality floors, the card says so and shows the smallest size we got.
Why did my image get smaller in pixels?
Very small limits can't be met by lowering quality alone. With "Reduce dimensions when needed" turned on, the tool keeps the highest quality it can. It shrinks the picture only as much as the limit requires. Turn it off to keep the pixel size.
My image is already under the limit. What happens?
If it already fits and you didn't ask for another format, you get the original file back unchanged, with a note.
Is KB 1000 or 1024 bytes here?
1000. A file that fits a 1000-byte KB limit also fits a 1024-byte KB limit.
How long are my images kept?
They are deleted automatically 30 minutes after the result is ready. Uploaded originals are deleted as soon as processing ends.

User ratings

No ratings yet

Be the first to rate the Compress Image to Target Size (KB/MB). We show an average once 5 people have rated it.

Ratings come only from visitors who used the tool on this site. Nothing is imported from other sites, and nobody is paid or rewarded for a rating. How we handle reviews

Rate this tool

You can rate the Compress Image to Target Size (KB/MB) once you've used it: the stars unlock here when your result is ready.

Ready to try the Compress Image to Target Size (KB/MB)?

It's free and works without an account.

Choose a file