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 file you get is never larger than this.
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. It is never over the limit you set.

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.

Honest 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.

How to use the 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.

Supported formats

Input: JPG/JPEG/JFIF, PNG, WebP, HEIC, AVIF, GIF (first frame), BMP and TIFF, up to 10 MB per file without an account and 25 MB when signed in. 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, honestly

  • 1 KB is counted as 1000 bytes, 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 colours 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 colour profiles are removed to save space. Colours are converted to sRGB first, so they look the same.
  • PNG stays lossless only while it fits. To reach a limit it is reduced to 256 colours 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" on, the tool keeps the highest quality it can and 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.