Compress Image to 400KB — Free, Fast & Private
Let us be straight about this number first. None of the exam, visa or passport specifications we track sets 400 KB as its limit. 400 KB is a general-purpose size: the cap a website, an email form, a club membership page or an internal HR system writes as “images under 400 KB”, and a sensible size for a full photograph you want to keep detailed while still sending it easily. If you came here with a government form, check its own figure — the section further down shows where 400 KB is too much and where it is fine.
What fits in 400 KB — measured on this page
We dropped five real files on the compressor above and kept what it handed back. 5 of 5 came out under 400 KB.
| File | Before | After, on this page | Under 400 KB? |
|---|---|---|---|
| 12 MP phone photo | 4032 × 3024 px · 3.73 MB | 4032 × 3024 px · 363.2 KB | Yes |
| Portrait / headshot | 3264 × 4653 px · 2.25 MB | 3264 × 4653 px · 299.3 KB | Yes |
| Scanned handwritten page | 3349 × 4281 px · 2.17 MB | 3349 × 4281 px · 299.7 KB | Yes |
| Scanned signature | 2041 × 617 px · 109.1 KB | 2041 × 617 px · 102.1 KB | Yes |
| Screenshot (PNG) | 1280 × 800 px · 88.1 KB | 1280 × 800 px · 108.8 KB — larger than the original (PNG made into JPG) | Yes |
Measured 2026-10-06 in Chromium 145.0.7632.6 with this page’s own settings. The photos are public-domain and CC0 files from Wikimedia Commons; the screenshot is our own. Sizes read as the tool shows them (1 KB = 1,024 bytes); the target itself is 400,000 bytes, which is under 400 KB on either reading.
What 400,000 bytes stretches across
A file-size target is really a budget per pixel. An uncompressed colour pixel takes 24 bits — one byte each for red, green and blue — so the useful question is how many bits each pixel gets once the whole picture has to fit in 400,000 bytes. The arithmetic for four common photo sizes:
| Photo | Pixels | 400,000 × 8 ÷ pixels |
|---|---|---|
| 12 MP, 4000 × 3000 | 12,000,000 | 0.27 bits per pixel |
| 8 MP, 3264 × 2448 | 7,990,272 | 0.40 bits per pixel |
| 2 MP (Full HD), 1920 × 1080 | 2,073,600 | 1.54 bits per pixel |
| 1.2 MP, 1280 × 960 | 1,228,800 | 2.60 bits per pixel |
Read the right-hand column against the 24 bits of a raw pixel. At 12 megapixels the budget is about 1/90 of the raw size; at Full HD it is about 1/16. The same 400 KB is therefore a hard squeeze for a photo straight off a modern phone and a comfortable allowance for one already sized for a screen. Every halving of width and height divides the pixel count by four and multiplies the per-pixel budget by four — which is why the pixel size you hand the compressor matters as much as the target. The measured table above shows how real photographs fared on this page.
How the compressor gets under 400KB
The tool tries the easy lever first. It keeps your photo at full pixel size and lowers JPEG quality, searching for the highest quality that fits under 400,000 bytes. Only when even its lowest quality still misses does it reduce the pixel dimensions, and when that happens it tells you and shows the new width and height. So it does not promise to keep full resolution — with a high-megapixel photo and this target, sometimes it cannot.
If you know where the picture is going, you can make that choice yourself. A photo for a web page or an email rarely needs more pixels than the screen it is viewed on; resize it to the width you need first, then compress here. With fewer pixels the per-pixel budget in the table rises, and the compressor can spend it on quality instead of having to throw pixels away.
Where 400KB is too much, and where it fits
Because 400 KB sits between two common form ceilings, it helps to know which side you are on. It is over UPSC’s band for the photograph and signature, 20–300 KB, so a 400 KB file is refused there — use the 300KB page or the UPSC tool instead. It is inside GATE’s photograph band, 5–600 KB, but GATE also caps the photo at 530 × 690 pixels, and at that size you would rarely need anything like 400 KB — the GATE photo tool checks both rules together.
For a form that genuinely says “maximum 400 KB”, read the rest of its instructions before you upload. A file-size line usually comes with a format line (JPEG only, for instance) and sometimes a pixel range, and the compressor cannot know either. It will tell you what your file measures; it cannot tell you a form will accept it.
Picking 400KB when nobody set a limit
Often there is no rule at all — you just want a photo small enough to email, attach to a chat or put on a page without making anyone wait. Then the target is yours to choose, and the arithmetic above is the honest guide. Decide the pixel size the picture will be seen at, divide 400,000 bytes by it, and you know the budget each pixel gets. If the answer is generous, 400 KB is a comfortable choice; if you are trying to hold a whole twelve-megapixel frame, a smaller pixel size or a larger target will serve the picture better than squeezing.
The neighbouring sizes are there for the same reason. The 500KB page gives a quarter more room for the same pixels; the 300KB page trades a quarter of the bytes for a smaller file. Neither is better in general — the right one is whichever matches the limit you have, or the screen the photo is going to.
Small things that trip a 400KB upload
The kilobyte question. This page counts 1 KB as 1,000 bytes, so it aims under 400,000 bytes. A system that counts 1,024 bytes to the kilobyte allows 409,600 bytes for the same number. Staying under 400,000 satisfies both, which is why the target is set where it is.
The file that looks bigger on your phone. Some file managers show sizes in binary units and some in decimal, and a few round to one decimal place. Trust the byte count the tool shows when it finishes, not a rounded figure in a gallery app.
Transparency. JPEG has no alpha channel, so a PNG logo or screenshot with a transparent background will come out with a solid one. If the transparency matters, this is the wrong format for it.
An iPhone photo that will not upload at all. HEIC is the default on iPhones, and many forms reject it outright whatever its size. This tool reads HEIC and writes a real JPEG, so the conversion happens on the way to 400 KB.
All of it runs in your browser. The photo is never uploaded to a server while it is being compressed.
