Compress Image Online to Any KB Size
Reduce photo file size in seconds. Free, private, no upload — everything happens in your browser.
Click to upload or drag & drop
JPG, PNG, WebP — max 25 MB
Original
Size: —
Compressed preview
Size: —
Lower quality = smaller file. 70–85 is the sweet spot for photos.
Finds the highest quality that fits. If quality alone is not enough, the image is scaled down too. 1 KB is counted as 1000 bytes so it also fits forms that count 1024.
0% smaller
Saved 0 KB
How to compress an image to a KB size
This image compressor reduces JPG, PNG and WebP files in your browser. Use the quality slider for everyday photos, or the Target size in KB box when a form sets a limit.
- Click the upload box (or press Enter on it) and choose a JPG, PNG or WebP image up to 25 MB.
- Pick the output format. Use JPG for exam forms and email; most government portals accept only JPG or JPEG.
- Either move the Quality slider and watch the compressed size, or type a limit such as 50 in Target size in KB and click Fit to size.
- Check the preview for blur and the pixel size shown under it, especially if the form also sets minimum pixels.
- Click Download compressed. The file keeps your original name with -compressed added.
How the target-KB compression works
JPG and WebP are lossy formats: a quality setting from 1 to 100 decides how much fine detail is thrown away. File size goes down as quality goes down, but not in a straight line, so the tool searches for the answer instead of guessing.
- It first encodes the image at 92% quality. If that already fits the target, it stops.
- Otherwise it runs a binary search on quality between 40% and 92%: try the middle, keep the higher half if the file fits, the lower half if it does not. Seven tries narrow it to within about 1%.
- If even 40% is too big, the width and height are reduced in proportion to the square root of target size ÷ current size, and the search runs again.
- The limit is counted as KB × 1000 bytes, so a 200 KB target gives at most 200,000 bytes, which is also under 200 KB if the portal counts 1 KB as 1024 bytes.
Worked example: a 3.2 MB phone photo for a UPSC form
A 4000 × 3000 px phone photo of 3.2 MB needs to be between 20 KB and 200 KB. At 92% quality it is still far too big, and the quality search alone cannot bring 12 million pixels under 200 KB without visible blocks. So the tool scales it down, for example to about 2100 × 1600 px, and finds a quality in the 40s to 80s that lands just under 200,000 bytes. If the form also has a pixel range, crop and resize first with the Image Resizer, then compress here.
| Exam | File | Size limit |
|---|---|---|
| UPSC | Photo (JPG) | 20 KB to 200 KB |
| UPSC | Signature (JPG, signed three times, 350 to 500 px) | 20 KB to 100 KB |
| SSC CGL 2026 | Signature (JPEG, about 6.0 × 2.0 cm) | 10 KB to 20 KB; photo is captured live in the form |
| Any other exam | Photo and signature | Check your notification |
- Mind the minimum. Many forms also reject files that are too small (for UPSC, under 20 KB). Do not set the target far below what you need.
- Don't compress twice. Each JPG save loses detail. Start from the original photo every time.
- Signatures: crop away empty white paper before compressing; a large blank area wastes pixels and makes the ink blur.
Frequently Asked Questions
How do I compress a photo to 50 KB, 100 KB or 200 KB?
Upload the photo, choose JPG, type the limit in Target size in KB and click Fit to size. The tool finds the highest quality that fits and, if needed, also reduces the pixel dimensions, then shows the final size before you download.
What size should my UPSC photo and signature be?
UPSC's current upload instructions ask for a JPG photo between 20 KB and 200 KB and a JPG signature file between 20 KB and 100 KB that is 350 to 500 pixels. Check the instructions on upsconline.nic.in for your exam before uploading, because they can change.
What is the SSC signature size?
The SSC CGL 2026 notice asks for a JPEG signature of 10 KB to 20 KB, about 6.0 cm by 2.0 cm, while the photo is captured live in the form. For other SSC exams, check your notification.
Why is my compressed file still too big?
A file stays big when the image has too many pixels. Phone photos are often 4000 pixels wide; reduce the width with the Image Resizer, or let Fit to size scale it down for you, and the KB size drops sharply.
Does compressing reduce photo quality?
JPG and WebP compression removes some detail, but at 70 to 85 percent quality most photos look the same as the original. PNG output is lossless, so it keeps every pixel but is usually much larger.
Are my photos uploaded anywhere?
No. Compression runs entirely in your browser using the HTML canvas, so your photos never leave your device.