Compress image to 400 KB
Land on 400 KB, not “somewhere under it”. Nothing is uploaded.
- No upload
- Exact target size
- Batch ready
Drag images here, or click to choose
JPG / PNG / WebP / HEIC · up to 25MB each · batch supported
Files never leave your device — everything runs in your browser.
Progress
That file could not be processed
Why 400 KB is a hard gate, not a suggestion
A form that says “maximum 400 KB” rejects a 401 KB file. Most compressors only promise “compressed”, so people submit, get rejected, lower the quality slider, and try again. This tool searches for the best quality whose encoded byte count is still ≤ 400 KB, then reports the exact number it produced.
Why 400 KB specifically
Four hundred kilobytes appears mostly in CMS and blog upload limits, where the constraint is storage rather than display quality. Compression is nearly free of visible cost at this level; what actually matters is stripping metadata from phone photos before they go public.
Where a 400 KB cap actually comes from
- Marketplace and CMS uploads capped at 500 KB
- WhatsApp and Telegram document sharing, where 500 KB stays readable on a phone
- School, HR and insurance systems that specify “under 500 KB”
- Photobook and print kiosks that accept 1 MB per page
If your form states a pixel size as well (for example 600×600 px), set the target size first and check the output dimensions — the two limits sometimes conflict.
What resolution survives at 400 KB
At a typical JPEG quality of 70–80%, a byte budget converts to a pixel budget. These are the dimensions that stay clean:
| Aspect | Dimensions | Typical use |
|---|---|---|
| 1:1 | 1100×1100 | profile, 2×2 in photo |
| 3:2 | 1340×900 | camera default, prints |
| 16:9 | 1460×820 | screens, slides |
These are computed, not copied: bytes ÷ 0.34 ≈ usable pixels. Going wider than this at 400 KB starts to show blocking on skin and text.
Why one pass usually misses the target
JPEG size is not linear in quality: dropping from 90% to 80% can halve the file, then 80% to 70% only saves 15%. A single guess either overshoots the limit or wastes 40 KB of headroom. This tool encodes, measures, and narrows the range until the output sits within about 2% of the limit — and if even the lowest quality cannot reach the target, it reduces dimensions instead of shipping a broken image.
JPG, WebP or PNG at 400 KB?
At the same 400 KB, WebP keeps roughly 8–12% more quality than JPG and preserves transparency — but a handful of legacy government portals still reject .webp, so check the form’s accepted types first. JPG is the safest default for photographs: every portal accepts it, and the cost is that transparency is flattened onto white (or the background colour you pick) and thin text edges soften. PNG is lossless, so “400 KB” cannot be reached by lowering quality at all — the tool reduces pixel dimensions instead, which is the right trade for screenshots, logos and line art and usually the wrong one for photos.
Privacy: the file never leaves the tab
No upload request is made. The browser decodes the image, re-encodes it on a worker thread, and hands you a download blob. You can open DevTools → Network, drop a file, and confirm there is no request carrying it. You can also switch off your network and it still works.