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.
| Photos | Under 400KB | File size | Width | Pixels kept | JPG quality | SSIM | Time |
|---|---|---|---|---|---|---|---|
| iPhone photos, 12–48 MP | 20 of 20 | 398.2 KB | 2103 px | 27% | 58 | 0.984 (lowest 0.927) | 2.8 s |
| Web-size photos, 768 × 512 | 24 of 24 | 155.9 KB | 768 px | 100% | 95 | 0.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.
| Photo | Original | Result | Size | Quality | SSIM |
|---|---|---|---|---|---|
| Barcelos, Vila Boa e Vila Frescainha (São Martinho e São Pedro) - Igreja de Nossa Senhora do Terço 01 | 3024 × 4032, 5.5 MB | 1230 × 1641 | 399.8 KB | 66 | 0.927 |
| Bloki na ulicy Goszczynskiego Sosnowiec Środula 02 | 4032 × 3024, 9.7 MB | 1805 × 1354 | 397.8 KB | 68 | 0.980 |
| Boston Basilica interior 02 | 5425 × 4063, 4.0 MB | 2135 × 1599 | 395.7 KB | 55 | 0.987 |
| -i---i- (54245759081) | 3024 × 4032, 3.8 MB | 3024 × 4032 | 394.2 KB | 54 | 0.988 |
| Carinda Roman Catholic Church 09-08-2024 | 3530 × 2667, 1.5 MB | 2465 × 1862 | 399.7 KB | 61 | 0.991 |
| China Merchants Bank Building in Shanghai at night 02 | 3024 × 4032, 2.7 MB | 2293 × 3057 | 398.4 KB | 51 | 0.979 |
| 8787 Georgia Avenue 09 | 5074 × 3781, 4.0 MB | 2151 × 1603 | 398.7 KB | 63 | 0.983 |
| -i---i- (51970200648) | 4032 × 3024, 5.6 MB | 3571 × 2678 | 390.9 KB | 57 | 0.992 |
| 20230807 145136 August 2023 in Białystok | 3024 × 4032, 1.5 MB | 2071 × 2761 | 398.2 KB | 51 | 0.985 |
| 'One Old Road' (1 Old Road) with windows and a high brick wall, viewed from Old Road in Chatham, Kent | 4588 × 3347, 13.6 MB | 1847 × 1348 | 399 KB | 61 | 0.963 |
| Moscow 2025-11-20 05 | 8064 × 6048, 26.0 MB | 2046 × 1534 | 394.9 KB | 61 | 0.981 |
| Parks Mall at Arlington Atrium (2024) | 5712 × 4284, 13.6 MB | 2178 × 1634 | 399.6 KB | 59 | 0.986 |
| BorNE.DOMB-LEPA.v-02 | 2268 × 4032, 4.8 MB | 1229 × 2186 | 393.4 KB | 64 | 0.955 |
| 20230806 191612 August 2023 in Białystok | 4032 × 3024, 1.4 MB | 2881 × 2161 | 396.4 KB | 52 | 0.991 |
| Caltabellotta - Chiesa di San Pellegrino - 2025-08-29 ruins | 4032 × 3024, 4.4 MB | 1999 × 1500 | 399.1 KB | 54 | 0.987 |
| Operação Lais de Guia GLO 2023 (53316687826) | 4032 × 3024, 1.7 MB | 2922 × 2192 | 396.9 KB | 62 | 0.993 |
| Aulangon näkötorni heinäkuussa 2023 | 2268 × 4032, 2.8 MB | 1363 × 2422 | 399.5 KB | 51 | 0.966 |
| Buca metrosu temel atma töreni 02 | 4032 × 3024, 2.0 MB | 2995 × 2246 | 399 KB | 50 | 0.992 |
| 39 Harleyford Road | 3024 × 4032, 4.7 MB | 1298 × 1731 | 394.2 KB | 66 | 0.932 |
| Atlas apartment high-rise (Vuotie 47 B, Vuosaari, Helsinki, Finland) Mar 28, 2026 | 3731 × 6636, 4.3 MB | 1518 × 2700 | 398.2 KB | 56 | 0.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.
| Format | Under 400KB | Width | Pixels kept | SSIM | File size | Encode time |
|---|---|---|---|---|---|---|
| JPG | 6 of 6 | 1717 px | 42% | 0.972 | 398.3 KB | 1.3 s |
| WebP | 6 of 6 | 1976 px | 55% | 0.971 | 396.8 KB | 15.1 s |
| AVIF | 6 of 6 | 1883 px | 52% | 0.976 | 385.6 KB | 53.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.