How to compress an image to a specific size in KB
Many websites for exam forms, job applications, visa portals and government services only accept images under a size limit, such as 20 KB, 50 KB or 100 KB. If your photo is a few megabytes from a phone camera, it will be rejected. This tool reduces the file size to the number you type, and it works inside your browser, so the image is never uploaded.
- Choose your image using the file button above. JPG, PNG and WebP files all work.
- Type the target size in KB, for example 100.
- Press Compress. The tool shows the final size and the pixel dimensions.
- Press Download compressed JPG and upload the file to your form.
How the compression works
A photo file is large because it stores a lot of color detail. The tool saves your image as a JPG and tries different quality levels to find the highest quality that still fits under your limit. If even the lowest reasonable quality is too large, the tool makes the picture a little smaller in pixels and tries again. This keeps the image as clear as possible while meeting your size target. The result is always at or just under the size you asked for, never above it.
Which target size should I choose?
| Target | Typical use |
|---|---|
| 10 to 20 KB | Signatures and small passport-style photos on exam forms |
| 50 KB | Photos for job portals and registration forms |
| 100 to 200 KB | Profile pictures and standard ID photos |
| 500 KB to 1 MB | Scanned documents and certificates that must stay readable |
Always read the exact limit on the website you are using. Some sites also require a minimum size or a fixed width and height. If you need exact dimensions as well, use our image resizer first and then compress.
Tips for the best quality
- Start from the original photo. Compressing a file that was already compressed several times makes it blurry.
- Crop first. Remove empty space around your face or document so the important part gets more of the file size.
- Resize first for tiny limits. For a limit under 30 KB, make the image smaller in pixels first, for example 200 × 230, then compress.
- Use plain backgrounds. Photos with a smooth background compress much better than busy ones.
- Keep text readable. For scanned documents, choose a higher target such as 300 or 500 KB so small letters stay sharp.
Why does it say it could not reach the size?
This happens when the target is very small for a large image. Try a bigger target, or reduce the pixel size of the image first. A 4000 × 3000 photo cannot become 10 KB without losing most of its detail, but a 300 × 300 image can.
JPG, PNG and WebP: what is the difference?
JPG is made for photos and gives the smallest files. PNG keeps sharp edges and transparency, which is good for logos but creates larger files for photos. WebP is a modern format that is often smaller than both. This tool outputs JPG because almost every website accepts it. If you need another format, use the image converter.
Frequently asked questions
Does compression upload my image?
No. The image stays on your device and is processed by your browser.
Will the quality go down?
Some quality is always lost when a file gets smaller, but the tool picks the best quality that fits your limit. For normal sizes like 100 KB or more, the difference is usually hard to see.
Can I compress a PNG with a transparent background?
Yes, but the output is a JPG and transparent areas become white.
Is there a limit on how many images I can compress?
No. You can compress as many images as you need, one at a time.