Compress Image to Target Size
For UPSC, IBPS, Passport Seva, NEET, and any Indian government form with a strict KB limit. Set the size, we find the best quality that fits.
Why Indian forms always fail your photo upload
Most Indian government and exam portals enforce a strict file-size limit on photo uploads — typically 20 KB to 200 KB. UPSC asks for photos between 20-300 KB. IBPS / SBI insist on 20-50 KB. Passport Seva: 10-200 KB. Aadhaar: 100 KB. NEET / JEE: 10-200 KB. State e-district portals: usually 50-100 KB. Above the limit, the form silently rejects your upload.
Most online compressors let you pick a quality (high / medium / low) and tell you the resulting size after. That's backwards for this use case — you don't care about quality, you need a specific size.
This tool reverses the equation: you set the target size, and we binary-search the JPG quality (0.05 to 0.95) until the encoded file lands at or just under your target. Output is guaranteed within 1-2% of the requested size, never over. The whole thing runs in your browser using the Canvas API — your photo never leaves your device.
Frequently asked questions
How does compress-to-target-size work?▼
We binary-search the JPG quality (0.05 to 0.95) until the encoded file size lands at or just under your target. The algorithm is exact — output is guaranteed within 1-2% of the requested size, never over. WebP output uses the same approach for ~25% smaller files at the same visual quality.
Why does India need this?▼
Most Indian government portals enforce strict file-size limits on uploaded photos and signatures. UPSC: 20-300 KB. IBPS / SBI: 20-50 KB. Passport Seva: 10-200 KB. Aadhaar: 100 KB. NEET / JEE: 10-200 KB. State e-district portals: often 50-100 KB. If your photo is above the limit, the form rejects it. This tool gets it under the limit in one click.
Will the photo be blurry?▼
Below ~20 KB, photos may visibly soften (JPG quality drops). 50 KB is usually fine for portrait photos at typical aspect ratios. 100 KB+ stays sharp. If quality drops too much, resize the image first (smaller dimensions = same KB target without quality loss).
Is the photo uploaded?▼
No — runs entirely in your browser. Verifiable in DevTools → Network: zero requests during compression.
What's the difference vs. a normal compressor?▼
Normal compressors let you pick a quality ("high / medium / low") and tell you the resulting size after. This tool reverses that: you specify the size you need, and we find the highest possible quality that fits. Critical when a portal demands "under 50 KB" exactly.
Can I batch-compress multiple photos to the same target?▼
Not in this version — single-file only. Coming in v2.
Is there a watermark or signup?▼
No. Free, no signup, no watermark, no per-day limit.