Compressing an image to 20KB: what to expect
A 12 MP phone photo compressed to 20 KB comes out about 410 pixels wide, enough for a passport-style head shot on a form but not for anything shown large. The median photo in our test kept 1.2% of its original pixels; everything else is scaled away so the JPG can stay at a reasonable quality.
This size is common on Indian recruitment and tax forms: bank and SSC exam signatures are asked for at 10–20 KB, and the PAN photograph at a maximum of 20 KB. Whether you set the form's own pixel dimensions first decides the result, because a photo already resized to the requested size needs far less squeezing.
Our test: 44 real photos compressed to 20KB
Every phone photo fitted, at 19.6 to 20.0 KB, with a median width of 406.5 px. That is about 50% wider than at 10 KB, and the median SSIM rose from 0.572 to 0.653.
The weakest results were again the Barcelos church photo at 0.416 and 39 Harleyford Road at 0.444; the best scored 0.920. Web-size 768 × 512 photos kept 42.7% of their pixels and scored 0.841, so a photo that is already small survives 20 KB much better than a phone original.
Method: each photo went through this page in Chromium on an Apple M2 Mac. 20KB means 20,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 20KB | File size | Width | Pixels kept | JPG quality | SSIM | Time |
|---|---|---|---|---|---|---|---|
| iPhone photos, 12–48 MP | 20 of 20 | 19.8 KB | 407 px | 1% | 57 | 0.653 (lowest 0.416) | 2.5 s |
| Web-size photos, 768 × 512 | 24 of 24 | 19.9 KB | 460 px | 43% | 54 | 0.841 (lowest 0.610) | 1.0 s |
Last updated
Every phone photo at 20KB
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 | 263 × 351 | 19.8 KB | 62 | 0.416 |
| Bloki na ulicy Goszczynskiego Sosnowiec Środula 02 | 4032 × 3024, 9.7 MB | 404 × 302 | 19.8 KB | 64 | 0.638 |
| Boston Basilica interior 02 | 5425 × 4063, 4.0 MB | 394 × 295 | 19.9 KB | 52 | 0.589 |
| -i---i- (54245759081) | 3024 × 4032, 3.8 MB | 430 × 573 | 19.7 KB | 57 | 0.920 |
| Carinda Roman Catholic Church 09-08-2024 | 3530 × 2667, 1.5 MB | 462 × 349 | 19.9 KB | 55 | 0.689 |
| China Merchants Bank Building in Shanghai at night 02 | 3024 × 4032, 2.7 MB | 375 × 500 | 20 KB | 50 | 0.843 |
| 8787 Georgia Avenue 09 | 5074 × 3781, 4.0 MB | 435 × 324 | 19.9 KB | 55 | 0.654 |
| -i---i- (51970200648) | 4032 × 3024, 5.6 MB | 502 × 377 | 19.7 KB | 57 | 0.902 |
| 20230807 145136 August 2023 in Białystok | 3024 × 4032, 1.5 MB | 390 × 520 | 19.6 KB | 57 | 0.757 |
| '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 | 372 × 271 | 19.7 KB | 68 | 0.553 |
| Moscow 2025-11-20 05 | 8064 × 6048, 26.0 MB | 436 × 326 | 19.7 KB | 57 | 0.696 |
| Parks Mall at Arlington Atrium (2024) | 5712 × 4284, 13.6 MB | 409 × 306 | 20 KB | 52 | 0.651 |
| BorNE.DOMB-LEPA.v-02 | 2268 × 4032, 4.8 MB | 235 × 419 | 20 KB | 55 | 0.579 |
| 20230806 191612 August 2023 in Białystok | 4032 × 3024, 1.4 MB | 531 × 398 | 19.9 KB | 57 | 0.836 |
| Caltabellotta - Chiesa di San Pellegrino - 2025-08-29 ruins | 4032 × 3024, 4.4 MB | 447 × 335 | 20 KB | 59 | 0.634 |
| Operação Lais de Guia GLO 2023 (53316687826) | 4032 × 3024, 1.7 MB | 491 × 368 | 19.9 KB | 51 | 0.811 |
| Aulangon näkötorni heinäkuussa 2023 | 2268 × 4032, 2.8 MB | 273 × 486 | 19.9 KB | 62 | 0.556 |
| Buca metrosu temel atma töreni 02 | 4032 × 3024, 2.0 MB | 489 × 366 | 19.8 KB | 51 | 0.825 |
| 39 Harleyford Road | 3024 × 4032, 4.7 MB | 273 × 365 | 19.7 KB | 60 | 0.444 |
| Atlas apartment high-rise (Vuotie 47 B, Vuosaari, Helsinki, Finland) Mar 28, 2026 | 3731 × 6636, 4.3 MB | 234 × 417 | 19.8 KB | 67 | 0.631 |
Last updated
JPG vs WebP vs AVIF at 20KB
At 20 KB AVIF lost its edge: on six phone photos it scored an SSIM of 0.702 against 0.706 for WebP and 0.668 for JPG, while taking 55.2 s per image against 12.2 s for WebP and 1.2 s for JPG. WebP gave about 9% more width (352.5 px vs 324 px for JPG). The SSC and PAN rules at this size ask for JPEG, so the gain is mostly academic.
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 20KB | Width | Pixels kept | SSIM | File size | Encode time |
|---|---|---|---|---|---|---|
| JPG | 6 of 6 | 324 px | 2% | 0.668 | 19.8 KB | 1.2 s |
| WebP | 6 of 6 | 353 px | 2% | 0.706 | 19.9 KB | 12.2 s |
| AVIF | 6 of 6 | 361 px | 2% | 0.702 | 19.4 KB | 55.2 s |
Last updated
Where you'll meet a 20KB limit
The verified limits at exactly 20 KB are all Indian forms: exam and bank-recruitment signatures with a 10–20 KB range, the PAN application photo with a 20 KB maximum, and bank-exam photos and thumb impressions where 20 KB is the lower bound.
This page's output, at most 20,000 bytes, fits a 20 KB maximum under either way of counting. It does not meet a 20 KB minimum, so for a 20–50 KB photo slot pick the 40 KB or 50 KB page instead.
- Institute of Banking Personnel Selection (IBPS, India): Photograph for IBPS CRP PO/MT-XVI online application (minimum; this page's result lands just under it, so choose a larger target and stay within their maximum). “Dimensions 200 x 230 pixels (preferred). Size of file should be between 20kb–50 kb.” IBPS CRP PO/MT-XVI detailed notification (30.06.2026)
- Institute of Banking Personnel Selection (IBPS, India): Signature for IBPS CRP PO/MT-XVI online application (maximum). “Dimensions 140 x 60 pixels (preferred). Size of file should be between 10kb – 20kb.” IBPS CRP PO/MT-XVI detailed notification (30.06.2026)
- Institute of Banking Personnel Selection (IBPS, India): Left thumb impression for IBPS CRP PO/MT-XVI online application (minimum; this page's result lands just under it, so choose a larger target and stay within their maximum). “File Size: 20 KB – 50 KB.” IBPS CRP PO/MT-XVI detailed notification (30.06.2026)
- Staff Selection Commission (India): Scanned signature for SSC CGL 2026 online application (maximum). “Candidates are required to upload the scanned signature in JPEG/JPG format (10 to 20 KB). Image dimension of the signature should be about 6.0 cm (width) x 2.0 cm (height).” SSC Combined Graduate Level Examination 2026 notice (ssc.gov.in, 21-05-2026)
- State Bank of India: Photograph for SBI Junior Associates (Customer Support & Sales) 2026 online application (minimum; this page's result lands just under it, so choose a larger target and stay within their maximum). “Dimensions 200 x 230 pixels (preferred) • Size of file should be between 20 kb–50 kb” SBI Junior Associates 2026 detailed advertisement CRPD/CR/2026-27/17 (sbi.bank.in)
- State Bank of India: Signature for SBI Junior Associates 2026 online application (maximum). “Dimensions 140 x 60 pixels (preferred) • Size of file should be between 10 kb – 20 kb” SBI Junior Associates 2026 detailed advertisement CRPD/CR/2026-27/17 (sbi.bank.in)
- Protean eGov Technologies (PAN, for Income Tax Department of India): Scanned photograph for online PAN application (Form 49A) submitted via e-Sign/DSC (maximum). “Resolution (in DPI) 200 DPI ... File type JPEG ... Size Max. 20 KB ... Dimension 3.5X2.5 cms.” Protean: Guidelines for filling PAN New Application (tin.tin.proteantech.in)
Tips for getting a good image at 20KB
- For an IBPS or SBI signature, resize to their preferred 140 × 60 px before compressing; at that size a 20 KB budget is generous.
- For the PAN photo, 3.5 × 2.5 cm at 200 DPI works out to about 276 × 197 px. Set that in Resize image first so the tool doesn't have to pick the dimensions for you.
- Crop to face and shoulders with Crop image. At around 400 px wide, a wide or full-length shot leaves the face very small.
- If the result looks soft and the form allows a little more, use a larger page: median width is 464.5 px at 25 KB and 511 px at 30 KB.