Compressing an image to 25KB: what to expect
At 25 KB a phone photo comes out about 465 pixels wide (the median of our 20 test photos), which keeps a head-and-shoulders portrait clear in a form preview but leaves little room for background detail. Moving from 20 KB to 25 KB buys about 14% more width, not a different kind of picture.
25 KB is the cap on Twitch subscriber badges, and a sensible target when a form caps photos at 30 KB and you want some margin. Whether your image is a photo or a graphic is the decision that matters: this page always makes a JPG with a white background, which suits photos and signatures but not a badge that needs transparency.
Our test: 44 real photos compressed to 25KB
All 20 phone photos fitted between 24.6 and 25.0 KB. The median kept 1.46% of the original pixels at a JPG quality around 57.5, and the median SSIM was 0.684. The spread is wide: the Barcelos church photo scored 0.446 while the best scored 0.931, so how much detail a scene holds matters more than the extra 5 KB.
Shape matters too. The two 2268 × 4032 portrait photos came out only 267 and 307 px wide, against 604 px for one 4032 × 3024 landscape, because the tall side takes up the budget. The 768 × 512 web photos kept 54% of their pixels.
Method: each photo went through this page in Chromium on an Apple M2 Mac. 25KB means 25,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 25KB | File size | Width | Pixels kept | JPG quality | SSIM | Time |
|---|---|---|---|---|---|---|---|
| iPhone photos, 12–48 MP | 20 of 20 | 24.9 KB | 465 px | 1% | 58 | 0.684 (lowest 0.446) | 2.3 s |
| Web-size photos, 768 × 512 | 24 of 24 | 24.8 KB | 514 px | 54% | 56 | 0.865 (lowest 0.661) | 1.0 s |
Last updated
Every phone photo at 25KB
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 | 299 × 398 | 25 KB | 62 | 0.446 |
| Bloki na ulicy Goszczynskiego Sosnowiec Środula 02 | 4032 × 3024, 9.7 MB | 451 × 338 | 24.8 KB | 64 | 0.664 |
| Boston Basilica interior 02 | 5425 × 4063, 4.0 MB | 444 × 333 | 24.9 KB | 53 | 0.632 |
| -i---i- (54245759081) | 3024 × 4032, 3.8 MB | 495 × 659 | 24.9 KB | 59 | 0.931 |
| Carinda Roman Catholic Church 09-08-2024 | 3530 × 2667, 1.5 MB | 521 × 393 | 24.8 KB | 55 | 0.723 |
| China Merchants Bank Building in Shanghai at night 02 | 3024 × 4032, 2.7 MB | 428 × 571 | 24.7 KB | 51 | 0.862 |
| 8787 Georgia Avenue 09 | 5074 × 3781, 4.0 MB | 495 × 369 | 24.9 KB | 57 | 0.685 |
| -i---i- (51970200648) | 4032 × 3024, 5.6 MB | 581 × 436 | 24.9 KB | 58 | 0.922 |
| 20230807 145136 August 2023 in Białystok | 3024 × 4032, 1.5 MB | 438 × 584 | 24.9 KB | 58 | 0.780 |
| '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 | 462 × 337 | 24.6 KB | 51 | 0.618 |
| Moscow 2025-11-20 05 | 8064 × 6048, 26.0 MB | 489 × 367 | 24.9 KB | 59 | 0.721 |
| Parks Mall at Arlington Atrium (2024) | 5712 × 4284, 13.6 MB | 467 × 350 | 24.9 KB | 52 | 0.683 |
| BorNE.DOMB-LEPA.v-02 | 2268 × 4032, 4.8 MB | 267 × 474 | 24.9 KB | 55 | 0.617 |
| 20230806 191612 August 2023 in Białystok | 4032 × 3024, 1.4 MB | 604 × 453 | 24.9 KB | 57 | 0.856 |
| Caltabellotta - Chiesa di San Pellegrino - 2025-08-29 ruins | 4032 × 3024, 4.4 MB | 500 × 375 | 24.8 KB | 58 | 0.662 |
| Operação Lais de Guia GLO 2023 (53316687826) | 4032 × 3024, 1.7 MB | 558 × 419 | 24.9 KB | 51 | 0.836 |
| Aulangon näkötorni heinäkuussa 2023 | 2268 × 4032, 2.8 MB | 307 × 545 | 24.8 KB | 62 | 0.584 |
| Buca metrosu temel atma töreni 02 | 4032 × 3024, 2.0 MB | 554 × 415 | 24.9 KB | 52 | 0.846 |
| 39 Harleyford Road | 3024 × 4032, 4.7 MB | 308 × 410 | 24.8 KB | 61 | 0.474 |
| Atlas apartment high-rise (Vuotie 47 B, Vuosaari, Helsinki, Finland) Mar 28, 2026 | 3731 × 6636, 4.3 MB | 267 × 476 | 24.9 KB | 67 | 0.654 |
Last updated
JPG vs WebP vs AVIF at 25KB
WebP and AVIF were nearly tied at 25 KB in our six-photo run: 401.5 px wide at an SSIM of 0.734 for WebP, 404.5 px and 0.731 for AVIF, against 367.5 px and 0.698 for JPG. AVIF needed about 59.5 s per photo and WebP 13.9 s; JPG took 1.4 s. For images on your own pages WebP is worth a try, but check what the destination accepts first.
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 25KB | Width | Pixels kept | SSIM | File size | Encode time |
|---|---|---|---|---|---|---|
| JPG | 6 of 6 | 368 px | 2% | 0.698 | 24.9 KB | 1.4 s |
| WebP | 6 of 6 | 402 px | 2% | 0.734 | 24.9 KB | 13.9 s |
| AVIF | 6 of 6 | 405 px | 2% | 0.731 | 24.6 KB | 59.5 s |
Last updated
Where you'll meet a 25KB limit
The one verified limit at exactly 25 KB is Twitch's cap on subscriber badge images. Badges are small graphics, often with a transparent background, and this page fills transparency with white and outputs JPG, so make sure a JPG badge is what you want before using it.
For photos on forms, the nearest verified limits are 20 KB (the PAN photograph and exam signatures) and 30 KB (Kerala PSC and Pakistan's FPSC photos).
- Twitch: Subscriber badge images (and tier flair) (maximum). “The file size cannot exceed 25kb.” Twitch Help: Subscriber Badge Guide
Tips for getting a good image at 25KB
- Graphics with flat colour and transparency, such as badges and logos, are better kept as PNG and resized to the required pixel size; this page is built for photos.
- Portrait photos lose more width than landscape ones at the same size. If the form displays the photo in a box, crop to that box's shape with Crop image before compressing.
- Choosing between 20 and 25 KB? If the form's maximum is 25 KB or more, use 25: the median SSIM goes from 0.653 to 0.684.
- If the form allows 30 KB, use the 30 KB page instead; it keeps a median width of 511 px.