Compress an image to 40 KB
When an upload form says “maximum 50 KB”, aiming at exactly 50 is asking for trouble — a byte of difference in how size is measured and your upload bounces. 40 KB is the engineer’s answer: visibly identical to 50 KB for photos at form dimensions, with a 20% margin against any validator quirk.
Drop an image below and it’s compressed to 40 KB on your own device — nothing is sent anywhere.
Drop images here — or click to browse, or paste with Ctrl+V
JPG · PNG · WebP — processed on your device, never uploaded
How it works
- Open this page — the compressor is already set for “Compress image to 40 KB”.
- Drop your image into the box, click to browse, or paste it with Ctrl+V.
- The tool re-encodes the image on your own device until it fits the target — nothing is uploaded.
- Check the preview and file size on the result card, then download.
Quality at 40 KB
Face photos up to ~600 px: excellent. This is more budget than a 413 × 531 px passport-style photo actually needs, which is why the margin costs you nothing visually.
Wider shots up to ~800 px: good, with softening only in high-detail regions like foliage or crowds.
Getting the dimensions right
If your cap is 50 KB and your photo still looks rough at 40, the dimensions are too large for the budget — scale to ~600 px on the long side and the same 40 KB will look dramatically better.
Frequently asked questions
Why not just target 49.9 KB for a 50 KB cap?
Because “50 KB” isn’t always the same number: some validators use 50,000 bytes, others 51,200 bytes (50 × 1024), and metadata differences can add a stray kilobyte. A 40 KB target makes the question irrelevant.
What happens if my image is already under 40 KB?
The tool re-encodes at the highest quality that fits, so an already-small file stays essentially as it is (and incidentally loses its EXIF metadata, which is usually a bonus for photos of documents and faces).
Can I use this for PAN card photos?
Yes — PAN applications (NSDL/UTIITSL) require photos under 50 KB, so 40 KB is a safe target. Better: use the dedicated PAN preset, which also sets the expected dimensions.