Image to an exact size in KB or MB

Say how big the file may be, like 100 KB or 1 MB, and the tool finds the best quality that fits, shrinking the picture only if it has to.

loading Image to an exact size in KB or MB
About this tool

What is "compress a photo to an exact size"?

Many forms, job portals, school systems and government sites say “upload a photo of up to 100 KB” or “maximum 1 MB”. A normal compressor makes the file smaller but does not tell you whether it fits. This tool works the other way round: you type the largest file size allowed and it finds the best quality that stays under that limit, so you keep as much detail as possible.

It tries different qualities until the file is as big as allowed and no bigger. If even the lowest quality it is willing to use is still too large, it makes the picture smaller (fewer pixels) as well. For JPG and WebP it searches the quality; PNG has no quality setting, so to reach a size a PNG is made smaller instead. That is why JPG or WebP usually fit with less loss.

The limit accepts plain numbers and units. The tool understands 200 (read as KB), 200 KB, 1.5 MB and 1,5mb, with 1 KB = 1024 bytes and 1 MB = 1024 KB. Several photos can be processed at once, each one against the same limit. The result shows the final size, the quality used and, when needed, how much the picture was reduced. Everything runs in your browser, so ID photos and documents never leave your device.

If you only want a smaller file without a target, the image compressor is simpler. If a form asks for exact pixel dimensions rather than bytes, use image resize.

How to shrink a photo to 100 KB, 200 KB or 1 MB

  1. Click Add images and choose the photos.
  2. Type the Maximum file size and pick the Unit (KB or MB). The minimum is 1 KB.
  3. Choose Save as: JPG or WebP for the best result, or PNG (lossless) if the site requires it.
  4. Press Compress to this size.
  5. Read the result for each file: “Result: 98.4 KB”, the quality used and whether the picture was reduced. If the size could not be reached, the message tells you the smallest it got.
  6. Download the file or all of them.

Examples

A 4 MB phone photo for a 200 KB limit

Set 200 KB, format JPG. The tool tries qualities and keeps the highest one whose file is no bigger than 200 KB. The result line shows the exact size and the quality, for example “quality 62”.

Typing the limit in different ways

100kb, 100 KB and 100 are all 102,400 bytes. 1.5 MB and 1,5mb are both 1,572,864 bytes. 0 or text such as abc is not accepted.

A PNG for a size limit

A 3 MB PNG with a 500 KB limit: because PNG has no quality, the tool makes the picture smaller until it fits. The note says “reduced to X% of the original size”. For a sharper result at the same size, save as JPG or WebP.

A limit that cannot be reached

A very detailed photo with a limit of 5 KB: the tool lowers quality to its floor and then reduces dimensions, and if it still does not fit it reports the smallest size it reached. Raise the limit or choose another format.

Common mistakes

  • Mixing up KB and MB. 1 MB is 1024 KB. Check the unit before pressing the button.
  • Asking PNG to be compressed by quality. PNG is lossless; it can only shrink by losing dimensions here. Use JPG or WebP.
  • Expecting the exact byte count. The tool aims for “as large as allowed, not larger”, so a file slightly under the limit is the best case.
  • Compressing an already compressed photo several times. Each pass loses detail. Start from the original.
  • Ignoring the dimension requirements. Some portals also demand a width and height. Combine this with image resize.
  • Using a smaller target than needed. A limit of 20 KB for a large photo forces blur. Check the real requirement.

Frequently asked questions

How do I reduce a photo to under 100 KB?

Add it, set 100 and the unit KB, choose JPG and press the button. The tool finds the best quality that fits.

Is my photo uploaded?

No. The compression runs in your browser. This is important for ID photos and signatures.

Why did the picture get smaller in pixels?

Because the lowest quality was still above the limit, the tool also reduced dimensions. The result line says by how much.

Is 1 KB 1000 or 1024 bytes?

Here 1 KB is 1024 bytes, 1 MB is 1024 KB. A site that counts 1000 bytes per KB gets a slightly smaller file than it expects, which is safe.

Can I compress many photos to the same size?

Yes. Add them all; each one is fitted to the same maximum size.

Report a problem