Compress Image to 25KB

Compress an image to 25 KB as a JPG. In our test 20 phone photos came out about 465 px wide. Notes on Twitch's 25 KB badge limit and transparency.

How to use Compress Image to 25KB

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

Features

  • Automatically targets 25KB — 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 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.

PhotosUnder 25KBFile sizeWidthPixels keptJPG qualitySSIMTime
iPhone photos, 12–48 MP20 of 2024.9 KB465 px1%580.684 (lowest 0.446)2.3 s
Web-size photos, 768 × 51224 of 2424.8 KB514 px54%560.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.

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 MB299 × 39825 KB620.446
Bloki na ulicy Goszczynskiego Sosnowiec Środula 024032 × 3024, 9.7 MB451 × 33824.8 KB640.664
Boston Basilica interior 025425 × 4063, 4.0 MB444 × 33324.9 KB530.632
-i---i- (54245759081)3024 × 4032, 3.8 MB495 × 65924.9 KB590.931
Carinda Roman Catholic Church 09-08-20243530 × 2667, 1.5 MB521 × 39324.8 KB550.723
China Merchants Bank Building in Shanghai at night 023024 × 4032, 2.7 MB428 × 57124.7 KB510.862
8787 Georgia Avenue 095074 × 3781, 4.0 MB495 × 36924.9 KB570.685
-i---i- (51970200648)4032 × 3024, 5.6 MB581 × 43624.9 KB580.922
20230807 145136 August 2023 in Białystok3024 × 4032, 1.5 MB438 × 58424.9 KB580.780
'One Old Road' (1 Old Road) with windows and a high brick wall, viewed from Old Road in Chatham, Kent4588 × 3347, 13.6 MB462 × 33724.6 KB510.618
Moscow 2025-11-20 058064 × 6048, 26.0 MB489 × 36724.9 KB590.721
Parks Mall at Arlington Atrium (2024)5712 × 4284, 13.6 MB467 × 35024.9 KB520.683
BorNE.DOMB-LEPA.v-022268 × 4032, 4.8 MB267 × 47424.9 KB550.617
20230806 191612 August 2023 in Białystok4032 × 3024, 1.4 MB604 × 45324.9 KB570.856
Caltabellotta - Chiesa di San Pellegrino - 2025-08-29 ruins4032 × 3024, 4.4 MB500 × 37524.8 KB580.662
Operação Lais de Guia GLO 2023 (53316687826)4032 × 3024, 1.7 MB558 × 41924.9 KB510.836
Aulangon näkötorni heinäkuussa 20232268 × 4032, 2.8 MB307 × 54524.8 KB620.584
Buca metrosu temel atma töreni 024032 × 3024, 2.0 MB554 × 41524.9 KB520.846
39 Harleyford Road3024 × 4032, 4.7 MB308 × 41024.8 KB610.474
Atlas apartment high-rise (Vuotie 47 B, Vuosaari, Helsinki, Finland) Mar 28, 20263731 × 6636, 4.3 MB267 × 47624.9 KB670.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.

FormatUnder 25KBWidthPixels keptSSIMFile sizeEncode time
JPG6 of 6368 px2%0.69824.9 KB1.4 s
WebP6 of 6402 px2%0.73424.9 KB13.9 s
AVIF6 of 6405 px2%0.73124.6 KB59.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).

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.

Frequently asked questions

Is 25 KB visibly better than 20 KB?

Slightly. In our test the median width went from 406.5 px to 464.5 px and SSIM from 0.653 to 0.684. Side by side the 25 KB version is a little sharper; it is not a different class of image. If the form allows 25 KB, though, there is no reason to go lower.

Why did my portrait-orientation photo come out so narrow?

Width alone undersells a portrait photo: a tall 2268 × 4032 shot became 267 × 474 px at 25 KB, while a 4032 × 3024 landscape became 604 × 453. How many pixels survive also depends on how much fine detail the scene contains, which is why two photos of the same size can end up quite different.

Can I make a Twitch subscriber badge with this page?

You can reach the 25 KB limit, but the result is a JPG with transparent areas filled in white. Badges usually look better on a transparent background, so a PNG resized to Twitch's badge sizes is the safer choice. Use this page only if a solid background is fine.

What happens if my image is already under 25 KB?

It is not enlarged or padded to reach 25 KB. A JPG is not re-encoded either: the tool removes its metadata and returns the same pixels, so the file can only get smaller. A PNG, WebP or HEIC image is converted to JPG at the highest quality that fits.

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