Compressing an image to 30KB: what to expect
30 KB gives a phone photo about 510 pixels of width in our test, close to double the 10 KB result and enough for a face to look clean on an application form. The median photo still keeps under 2% of its original pixels, so treat the result as a thumbnail of the original, not a copy of it.
The size shows up as a photo cap on public service commission forms, such as Kerala PSC and Pakistan's FPSC. The target dimensions are the decision that matters: Kerala PSC asks for 150 × 200 pixels, and a photo that small will likely fit under 30 KB with little compression, so resize first and let this page check the bytes.
Our test: 44 real photos compressed to 30KB
All 20 phone photos came out between 29.4 and 30.0 KB, with a median width of 511 px and 1.76% of pixels kept. The median SSIM was 0.71, from 0.472 for the Barcelos church to 0.938 for the best photo, and the Chatham shot of a high brick wall sat low at 0.644.
This is the first size where some of the 768 × 512 web photos fit with nothing scaled away: the best kept 100% of its pixels and the median 70%, at SSIM 0.883. A photo already resized for the web is in a very different position from a phone original at this size.
Method: each photo went through this page in Chromium on an Apple M2 Mac. 30KB means 30,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 30KB | File size | Width | Pixels kept | JPG quality | SSIM | Time |
|---|---|---|---|---|---|---|---|
| iPhone photos, 12–48 MP | 20 of 20 | 29.7 KB | 511 px | 2% | 58 | 0.710 (lowest 0.472) | 2.3 s |
| Web-size photos, 768 × 512 | 24 of 24 | 29.8 KB | 563 px | 70% | 57 | 0.883 (lowest 0.702) | 0.9 s |
Last updated
Every phone photo at 30KB
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 | 329 × 438 | 29.7 KB | 62 | 0.472 |
| Bloki na ulicy Goszczynskiego Sosnowiec Środula 02 | 4032 × 3024, 9.7 MB | 494 × 371 | 29.9 KB | 65 | 0.686 |
| Boston Basilica interior 02 | 5425 × 4063, 4.0 MB | 493 × 369 | 29.7 KB | 52 | 0.664 |
| -i---i- (54245759081) | 3024 × 4032, 3.8 MB | 554 × 739 | 29.9 KB | 60 | 0.938 |
| Carinda Roman Catholic Church 09-08-2024 | 3530 × 2667, 1.5 MB | 579 × 437 | 30 KB | 55 | 0.753 |
| China Merchants Bank Building in Shanghai at night 02 | 3024 × 4032, 2.7 MB | 478 × 637 | 29.7 KB | 52 | 0.877 |
| 8787 Georgia Avenue 09 | 5074 × 3781, 4.0 MB | 548 × 408 | 29.8 KB | 57 | 0.709 |
| -i---i- (51970200648) | 4032 × 3024, 5.6 MB | 653 × 490 | 29.7 KB | 59 | 0.934 |
| 20230807 145136 August 2023 in Białystok | 3024 × 4032, 1.5 MB | 485 × 646 | 29.8 KB | 58 | 0.797 |
| '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 | 506 × 369 | 29.7 KB | 53 | 0.644 |
| Moscow 2025-11-20 05 | 8064 × 6048, 26.0 MB | 537 × 402 | 29.8 KB | 58 | 0.740 |
| Parks Mall at Arlington Atrium (2024) | 5712 × 4284, 13.6 MB | 516 × 387 | 29.9 KB | 53 | 0.711 |
| BorNE.DOMB-LEPA.v-02 | 2268 × 4032, 4.8 MB | 294 × 522 | 29.6 KB | 55 | 0.646 |
| 20230806 191612 August 2023 in Białystok | 4032 × 3024, 1.4 MB | 671 × 503 | 29.9 KB | 58 | 0.871 |
| Caltabellotta - Chiesa di San Pellegrino - 2025-08-29 ruins | 4032 × 3024, 4.4 MB | 548 × 411 | 29.5 KB | 57 | 0.686 |
| Operação Lais de Guia GLO 2023 (53316687826) | 4032 × 3024, 1.7 MB | 621 × 466 | 29.6 KB | 51 | 0.857 |
| Aulangon näkötorni heinäkuussa 2023 | 2268 × 4032, 2.8 MB | 336 × 597 | 29.9 KB | 63 | 0.608 |
| Buca metrosu temel atma töreni 02 | 4032 × 3024, 2.0 MB | 620 × 465 | 29.4 KB | 51 | 0.861 |
| 39 Harleyford Road | 3024 × 4032, 4.7 MB | 341 × 455 | 29.7 KB | 61 | 0.501 |
| Atlas apartment high-rise (Vuotie 47 B, Vuosaari, Helsinki, Finland) Mar 28, 2026 | 3731 × 6636, 4.3 MB | 296 × 527 | 29.6 KB | 67 | 0.672 |
Last updated
JPG vs WebP vs AVIF at 30KB
At 30 KB AVIF and WebP were close, with SSIM of 0.757 and 0.754 on six phone photos against 0.721 for JPG, and widths of 442, 447 and 407 px. Encoding took about 49.5 s for AVIF, 11.9 s for WebP and 1.1 s for JPG. Both commission forms with a 30 KB rule specify JPG, so the modest gain from the newer formats doesn't apply where this size is needed.
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 30KB | Width | Pixels kept | SSIM | File size | Encode time |
|---|---|---|---|---|---|---|
| JPG | 6 of 6 | 407 px | 2% | 0.721 | 29.8 KB | 1.1 s |
| WebP | 6 of 6 | 447 px | 3% | 0.754 | 29.9 KB | 11.9 s |
| AVIF | 6 of 6 | 442 px | 3% | 0.757 | 29.4 KB | 49.5 s |
Last updated
Where you'll meet a 30KB limit
Both verified limits at exactly 30 KB are government recruitment portals: a passport-size photo for Pakistan's Federal Public Service Commission and the profile photo on Kerala PSC's One Time Registration. Both ask for JPG and set 30 KB as a maximum, which this page's output, under 30,000 bytes, meets under either way of counting a KB.
- Kerala Public Service Commission (India): Photograph uploaded to the Kerala PSC One Time Registration profile (maximum). “Uploading photograph should be 200 pixels height, 150 pixels width, not exceeding a file size of 30 kb, in jpg format.” Kerala PSC notification No. DE 3-1/1/2025-KPSC dated 25/04/2025 (keralapsc.gov.in)
- Federal Public Service Commission (Pakistan): Passport-size picture for an FPSC online application (General Recruitment) (maximum). “Upload softcopy of your passport size picture using ‘Choose File’ button. The picture size must be less than 30 KB and in “jpeg” format only.” FPSC Guidelines for Online Application Submission (updated 09-09-2025) (fpsc.gov.pk)
Tips for getting a good image at 30KB
- For Kerala PSC, resize to 150 px wide by 200 px high with Resize image first, then compress. The dimensions are part of the rule, and this page won't set them for you.
- Crop to passport-style framing before resizing, with the head and top of the shoulders centred, using Crop image.
- If the background is busy, retake the photo against a plain wall; in our test the most detailed scenes lost the most quality at this size.
- When the form allows more than 30 KB, the 40 KB page gives a median width of 594 px.