Compress Image to an Exact Size (10 KB – 1 MB)

Compress any image to the exact size an upload form asks for — 10 KB, 20 KB, 30 KB, 50 KB, 100 KB, 200 KB, 500 KB, 1 MB or any limit you type — at the best quality that fits.

  • Files stay on your device
  • Free, no sign-up
  • Updated

Loading tool…

Pick the size your form asks for — 10, 20, 30, 50, 100, 200 or 500 KB, 1 MB, or any number you type — and choose an image: the tool saves it as a JPG at or under that size, at the highest quality that fits, shrinking the pixel dimensions only if it has to. Everything runs in your browser; nothing is uploaded.

How to use the Compress Image to an Exact Size (10 KB – 1 MB)

  1. Pick a size button (10 KB to 1 MB) or type the limit your form asks for, in KB.
  2. Choose or drop your image — JPG, PNG, WEBP or iPhone HEIC.
  3. Download the JPG. It is at or under your limit; pick another size to try again instantly.

Which size do I need?

UploadTypical limitBest tool
Signatures on exam, bank and government forms10 – 20 KBSignature resizer (crops and cleans the paper too)
Photos on job portals and application forms20 – 100 KB20 KB · 50 KB · 100 KB
Passport and visa photo uploadsExact pixels and a KB limitPassport & visa photo tools — size, framing and file limit in one step
Email attachments and websites200 KB – 1 MB200 KB · 500 KB · 1 MB
Website images with transparencyUnder 100 KBPNG to WebP under 100 KB

How big is each size?

Forms don't agree on whether a kilobyte is 1,000 or 1,024 bytes. This tool always aims for the smaller number, so the file passes either way.

Size1 KB = 1,000 bytes (what this tool aims for)1 KB = 1,024 bytes
10 KB10,000 bytes10,240 bytes
20 KB20,000 bytes20,480 bytes
30 KB30,000 bytes30,720 bytes
50 KB50,000 bytes51,200 bytes
100 KB100,000 bytes102,400 bytes
200 KB200,000 bytes204,800 bytes
500 KB500,000 bytes512,000 bytes
1 MB1,000,000 bytes1,024,000 bytes

How it keeps the best quality

The tool tries JPEG quality settings step by step and keeps the highest one that still fits your limit. Only when the image is too large even at low quality does it reduce the pixel dimensions, a little at a time, until it fits. Very small targets like 10 KB usually mean a small image, while 500 KB keeps most phone photos sharp at full width.

Tips for a sharper result

  • Crop away empty space first — fewer pixels means more quality per pixel at the same file size.
  • If the form also gives exact pixel dimensions, resize the image first, then compress it here.
  • Photos compress far better than screenshots with lots of small text.
  • iPhone HEIC photos are converted to JPG automatically.

Frequently asked questions

Is my image uploaded anywhere?

No. Compression happens entirely in your browser, so your photo never leaves your device.

How do I compress an image to exactly 20 KB (or 50 KB, 100 KB)?

Click the size button — or type the number into the target box — and choose your image. The file comes out at or just under that size, at the best quality that fits.

Why is my image smaller in pixels after compressing?

For small targets, lowering the quality alone isn’t enough, so the tool also reduces the pixel dimensions until the file fits. Crop the image first to keep more detail.

Will a 50 KB file pass a form that counts 1 KB as 1,024 bytes?

Yes. The tool aims for 50,000 bytes or less, which is under both 50,000 and 51,200 bytes.

Can I compress PNG and WEBP files?

Yes. PNG, WEBP and HEIC images are accepted and saved as JPG, which is much smaller for photos. To keep transparency, use PNG to WebP under 100 KB instead.

Related tools