Compress Image to 400KB

Compress an image to under 400 KB. Our test: 12 MP phone photos kept about 2,100 px of width with SSIM 0.984; one photo kept every pixel.

How to use Compress Image to 400KB

  1. 1Upload a JPG, PNG, or WebP image.
  2. 2Pixohub automatically searches for the highest quality that fits under 400KB.
  3. 3Check the resulting file size shown on the page.
  4. 4Download your image, now 400KB or smaller.

Features

  • Automatically targets 400KB — no manual guessing
  • Keeps quality as high as the size budget allows
  • Runs entirely in your browser; nothing is uploaded
  • Free, unlimited, no signup or watermark

Compressing an image to 400KB: what to expect

At 400 KB a 12 MP phone photo keeps about 2,100 pixels of width: the median result in our test was 2103 px, with just over a quarter of the original pixels. That is roughly the width of a laptop screen, and most viewers cannot tell it apart from the original at normal size.

We found no official upload limit of exactly 400 KB, so this is a size you choose rather than one a form imposes: for a set of photos in one email, a page on your own site, or headroom under a 500 KB cap. The decision here is how much margin you want. Going from 300 to 400 KB raised the median SSIM from 0.975 to 0.984; going on to 500 KB adds only a little more.

Our test: 44 real photos compressed to 400KB

All 20 photos fit, at a median of 398.2 KB. This is the first size where a phone photo kept every pixel: the iced coffee on a café table stayed at 3024 × 4032 at JPG quality 54. At the other end, the gilded Barcelos church interior kept 1230 × 1641 and SSIM 0.927, still the weakest result.

Median JPG quality hardly moves between 200 and 400 KB (58 at both). The extra bytes go into keeping pixels, not into a higher quality setting, because the tool first finds the highest quality that fits and scales the photo down only when even quality 50 would be too big.

Method: each photo went through this page in Chromium on an Apple M2 Mac. 400KB means 400,000 bytes, so the result passes whether a site counts a KB as 1,000 or 1,024 bytes. Figures are medians. SSIM compares the result with the original at 1080 px wide, about what a phone screen shows (1.000 = identical). How we test.

PhotosUnder 400KBFile sizeWidthPixels keptJPG qualitySSIMTime
iPhone photos, 12–48 MP20 of 20398.2 KB2103 px27%580.984 (lowest 0.927)2.8 s
Web-size photos, 768 × 51224 of 24155.9 KB768 px100%950.987 (lowest 0.979)1.0 s

Last updated

Every phone photo at 400KB

All 20 photos from our test set, so you can find one like yours. Quality is the JPG quality the tool settled on; when it would have dropped below 50, the photo was scaled down instead.

PhotoOriginalResultSizeQualitySSIM
Barcelos, Vila Boa e Vila Frescainha (São Martinho e São Pedro) - Igreja de Nossa Senhora do Terço 013024 × 4032, 5.5 MB1230 × 1641399.8 KB660.927
Bloki na ulicy Goszczynskiego Sosnowiec Środula 024032 × 3024, 9.7 MB1805 × 1354397.8 KB680.980
Boston Basilica interior 025425 × 4063, 4.0 MB2135 × 1599395.7 KB550.987
-i---i- (54245759081)3024 × 4032, 3.8 MB3024 × 4032394.2 KB540.988
Carinda Roman Catholic Church 09-08-20243530 × 2667, 1.5 MB2465 × 1862399.7 KB610.991
China Merchants Bank Building in Shanghai at night 023024 × 4032, 2.7 MB2293 × 3057398.4 KB510.979
8787 Georgia Avenue 095074 × 3781, 4.0 MB2151 × 1603398.7 KB630.983
-i---i- (51970200648)4032 × 3024, 5.6 MB3571 × 2678390.9 KB570.992
20230807 145136 August 2023 in Białystok3024 × 4032, 1.5 MB2071 × 2761398.2 KB510.985
'One Old Road' (1 Old Road) with windows and a high brick wall, viewed from Old Road in Chatham, Kent4588 × 3347, 13.6 MB1847 × 1348399 KB610.963
Moscow 2025-11-20 058064 × 6048, 26.0 MB2046 × 1534394.9 KB610.981
Parks Mall at Arlington Atrium (2024)5712 × 4284, 13.6 MB2178 × 1634399.6 KB590.986
BorNE.DOMB-LEPA.v-022268 × 4032, 4.8 MB1229 × 2186393.4 KB640.955
20230806 191612 August 2023 in Białystok4032 × 3024, 1.4 MB2881 × 2161396.4 KB520.991
Caltabellotta - Chiesa di San Pellegrino - 2025-08-29 ruins4032 × 3024, 4.4 MB1999 × 1500399.1 KB540.987
Operação Lais de Guia GLO 2023 (53316687826)4032 × 3024, 1.7 MB2922 × 2192396.9 KB620.993
Aulangon näkötorni heinäkuussa 20232268 × 4032, 2.8 MB1363 × 2422399.5 KB510.966
Buca metrosu temel atma töreni 024032 × 3024, 2.0 MB2995 × 2246399 KB500.992
39 Harleyford Road3024 × 4032, 4.7 MB1298 × 1731394.2 KB660.932
Atlas apartment high-rise (Vuotie 47 B, Vuosaari, Helsinki, Finland) Mar 28, 20263731 × 6636, 4.3 MB1518 × 2700398.2 KB560.967

Last updated

JPG vs WebP vs AVIF at 400KB

At 400 KB WebP stops gaining on JPG. On six phone photos WebP kept more width (1976 px against 1717 px) but scored SSIM 0.971, just below JPG's 0.972. AVIF reached 0.976. JPG took a median 1.3 s, WebP 15.1 s and AVIF almost 54 s. Since you pick this size for your own use, either is fine, but the difference is too small to justify the wait.

Same method, on 6 of the phone photos: the highest quality that fits, scaling down only when quality would drop below 50. WebP and AVIF were encoded with libwebp and libavif in the browser.

FormatUnder 400KBWidthPixels keptSSIMFile sizeEncode time
JPG6 of 61717 px42%0.972398.3 KB1.3 s
WebP6 of 61976 px55%0.971396.8 KB15.1 s
AVIF6 of 61883 px52%0.976385.6 KB53.7 s

Last updated

Where you'll meet a 400KB limit

We found no official limit at exactly 400 KB. The nearest verified ones are 300 KB (Indian document uploads such as PAN proofs and the GATE signature) and 500 KB (IBPS certificate scans, the Australian ImmiCard facial image and Australian citizenship documents).

Choose 400 KB when a site says 500 KB but you would rather not sit right at the edge, or when you set the budget yourself and want a photo that still looks full-size on a laptop.

Tips for getting a good image at 400KB

  • For a batch of photos in one email, multiply: ten photos at 400 KB is about 4 MB, well within the 25 MB Gmail and Outlook.com allow per message.
  • If you only need a phone-screen view, the 300 KB page gives about 1,800 px of width for a quarter less data.
  • For pictures on your own website, try Image to WebP as well; browsers display it and it kept more pixels in our test.
  • Rotate the photo the right way up before uploading with Rotate image; the tool applies the camera's orientation, but some scans come in sideways.

Frequently asked questions

If no site requires 400 KB, why use it?

Because the step from 300 to 400 KB is still visible on detailed photos, while from 400 to 500 KB it mostly isn't. The worst photo in our test went from SSIM 0.891 at 300 KB to 0.927 here. It is a reasonable default when you want small files that still look complete on a laptop screen.

Why did my photo keep all its pixels when others were scaled?

Some photos simply contain less detail. In our test the iced-coffee photo fit into 400 KB at full 3024 × 4032 resolution and quality 54, while busier scenes had to be scaled down. The tool only scales when quality 50 would still be too large.

How long does compressing to 400 KB take?

The median phone photo took 2.8 s in our test and the slowest 7.7 s, on an Apple M2 Mac in Chromium. Most of that time is decoding the large original, so the target size makes little difference; a slower phone will take longer.

Will a 400 KB file pass a 500 KB limit?

Yes, with about 100,000 bytes to spare, whether the site counts a KB as 1,000 or 1,024 bytes. If a site rejects it, the reason is something else, most often the file type or the pixel dimensions.

More ways to compress

Batch: compress many images at once

Same processing as above, run across a set of files. Pro returns the whole batch as one ZIP. Still entirely in your browser.

Free · up to 20

PRONeed more than 20 at a time?

Pro runs up to 150 images per batch as one ZIP, keeps your brand mark on every export, and lifts the file ceiling to 200 MB.

Unlock with Pro