Compress Image to 20KB

Compress an image to 20 KB as a JPG. Tested on 20 phone photos: all fit, at about 406 px wide. Fits 10–20 KB exam signature ranges however KB is counted.

How to use Compress Image to 20KB

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

Features

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

PhotosUnder 20KBFile sizeWidthPixels keptJPG qualitySSIMTime
iPhone photos, 12–48 MP20 of 2019.8 KB407 px1%570.653 (lowest 0.416)2.5 s
Web-size photos, 768 × 51224 of 2419.9 KB460 px43%540.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.

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 MB263 × 35119.8 KB620.416
Bloki na ulicy Goszczynskiego Sosnowiec Środula 024032 × 3024, 9.7 MB404 × 30219.8 KB640.638
Boston Basilica interior 025425 × 4063, 4.0 MB394 × 29519.9 KB520.589
-i---i- (54245759081)3024 × 4032, 3.8 MB430 × 57319.7 KB570.920
Carinda Roman Catholic Church 09-08-20243530 × 2667, 1.5 MB462 × 34919.9 KB550.689
China Merchants Bank Building in Shanghai at night 023024 × 4032, 2.7 MB375 × 50020 KB500.843
8787 Georgia Avenue 095074 × 3781, 4.0 MB435 × 32419.9 KB550.654
-i---i- (51970200648)4032 × 3024, 5.6 MB502 × 37719.7 KB570.902
20230807 145136 August 2023 in Białystok3024 × 4032, 1.5 MB390 × 52019.6 KB570.757
'One Old Road' (1 Old Road) with windows and a high brick wall, viewed from Old Road in Chatham, Kent4588 × 3347, 13.6 MB372 × 27119.7 KB680.553
Moscow 2025-11-20 058064 × 6048, 26.0 MB436 × 32619.7 KB570.696
Parks Mall at Arlington Atrium (2024)5712 × 4284, 13.6 MB409 × 30620 KB520.651
BorNE.DOMB-LEPA.v-022268 × 4032, 4.8 MB235 × 41920 KB550.579
20230806 191612 August 2023 in Białystok4032 × 3024, 1.4 MB531 × 39819.9 KB570.836
Caltabellotta - Chiesa di San Pellegrino - 2025-08-29 ruins4032 × 3024, 4.4 MB447 × 33520 KB590.634
Operação Lais de Guia GLO 2023 (53316687826)4032 × 3024, 1.7 MB491 × 36819.9 KB510.811
Aulangon näkötorni heinäkuussa 20232268 × 4032, 2.8 MB273 × 48619.9 KB620.556
Buca metrosu temel atma töreni 024032 × 3024, 2.0 MB489 × 36619.8 KB510.825
39 Harleyford Road3024 × 4032, 4.7 MB273 × 36519.7 KB600.444
Atlas apartment high-rise (Vuotie 47 B, Vuosaari, Helsinki, Finland) Mar 28, 20263731 × 6636, 4.3 MB234 × 41719.8 KB670.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.

FormatUnder 20KBWidthPixels keptSSIMFile sizeEncode time
JPG6 of 6324 px2%0.66819.8 KB1.2 s
WebP6 of 6353 px2%0.70619.9 KB12.2 s
AVIF6 of 6361 px2%0.70219.4 KB55.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.

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.

Frequently asked questions

Why is my 20 KB photo only about 400 pixels wide?

A full phone photo holds 12 million or more pixels, and no JPG quality setting packs that into 20,000 bytes. The tool therefore scales the picture down until it fits at a JPG quality in the 50s or 60s. In our test the median result was 406.5 px wide, with 1.2% of the original pixels kept.

My exam wants a signature between 10 KB and 20 KB. Is this the right page?

Yes. The result here is just under 20,000 bytes, which is inside a 10–20 KB range whether the site treats a KB as 1,000 or 1,024 bytes. It is the 10 KB page that could fall under the minimum. Crop and resize the signature first so it stays sharp.

Can I use this page for the IBPS or SBI photograph?

Those photos must be between 20 KB and 50 KB. A file from this page lands just below 20 KB and may be rejected as too small. Use the 30, 40 or 50 KB page instead; all of them stay under 50 KB under either way of counting.

Does compressing to 20 KB remove the photo's location data?

Yes. The output is a new JPG that carries none of the original's EXIF metadata, so the camera model, GPS position and capture date are gone. Orientation is applied to the pixels first, so a phone photo taken upright stays upright.

From the blog

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