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)
- Pick a size button (10 KB to 1 MB) or type the limit your form asks for, in KB.
- Choose or drop your image — JPG, PNG, WEBP or iPhone HEIC.
- Download the JPG. It is at or under your limit; pick another size to try again instantly.
Which size do I need?
| Upload | Typical limit | Best tool |
|---|---|---|
| Signatures on exam, bank and government forms | 10 – 20 KB | Signature resizer (crops and cleans the paper too) |
| Photos on job portals and application forms | 20 – 100 KB | 20 KB · 50 KB · 100 KB |
| Passport and visa photo uploads | Exact pixels and a KB limit | Passport & visa photo tools — size, framing and file limit in one step |
| Email attachments and websites | 200 KB – 1 MB | 200 KB · 500 KB · 1 MB |
| Website images with transparency | Under 100 KB | PNG 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.
| Size | 1 KB = 1,000 bytes (what this tool aims for) | 1 KB = 1,024 bytes |
|---|---|---|
| 10 KB | 10,000 bytes | 10,240 bytes |
| 20 KB | 20,000 bytes | 20,480 bytes |
| 30 KB | 30,000 bytes | 30,720 bytes |
| 50 KB | 50,000 bytes | 51,200 bytes |
| 100 KB | 100,000 bytes | 102,400 bytes |
| 200 KB | 200,000 bytes | 204,800 bytes |
| 500 KB | 500,000 bytes | 512,000 bytes |
| 1 MB | 1,000,000 bytes | 1,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
- PNG to WebP Under 100 KB Convert a PNG, JPG or HEIC image to WebP that is guaranteed to be 100 KB or less, at the best quality that fits — transparency included. Free and private.
- Resize Image Resize images to exact pixel dimensions or by percentage, keeping proportions. Free, fast and processed on your device.
- Signature Resizer Resize a signature for online forms: crop it, clean the background to pure white and save it at exact sizes like 140×60 px and 10–20 KB, or as a transparent PNG.
- Compress PDF to an Exact Size (100 KB – 1 MB) Make a PDF small enough for an upload form or email: pick 100 KB, 200 KB, 500 KB, 1 MB or type any limit. It tries lossless compression first, and your document never leaves your device.
- AVIF to JPG Converter Convert AVIF images to JPG in your browser so they open and upload everywhere. Free, private and in batches.
- HEIC to JPG Converter Convert iPhone HEIC photos to JPG in your browser — free, private and in batches. Works on Windows, Mac, Android and iPhone.