Compress Image to Under 20KB

Meet the tightest upload caps without installing anything

Drop images to compress

or browse files · paste from clipboard

JPEG · PNG · WebP · AVIF · GIF

Image processing settings
Output:

Target: ≤ 20 KB · quality first, then dimensions if needed

What a 20KB limit is usually for

  • Government and exam application portals that cap photo uploads at 20KB
  • Forum avatars and older profile systems with hard byte limits
  • Email signature images that must load instantly on slow connections
  • Embedded device screens and kiosk interfaces with very little storage
  • Job portals that reject anything above a fixed size without explanation

How XImage reaches 20KB

Upload the photo and keep Output on Auto. XImage searches for the highest quality that fits 20KB, then reduces dimensions gradually only when quality alone cannot get there. Auto avoids JPEG for images that may contain transparency, and the tool never hands back a file above the target — if 20KB is impossible for the source, you get a clear error instead of an oversized download.

Step by step

  • Drop a JPEG, PNG, WebP, AVIF, or GIF (first frame) into the tool
  • Leave Output on Auto for the smallest result, or choose JPEG when the portal only accepts JPG
  • Keep the 20KB target unless your portal states a different cap
  • Wait for the "Target met" badge, then download the result
  • If the portal still rejects the file, check its pixel dimensions as well as the byte size

Typical dimensions for a 20KB photo

200 × 200

6–12 KB · avatars

300 × 300

12–20 KB · profile photos

400 × 400

18–28 KB · ID-style photos

600 × 600

25–45 KB · detailed portraits

Why a 20KB target sometimes fails

  • Highly detailed photos (foliage, crowds, fabric) need more bytes for the same dimensions
  • PNG screenshots with sharp text compress poorly as PNG — use Auto or JPEG instead
  • Transparent PNGs converted to JPEG lose transparency, so pick Auto/WebP when the portal allows it
  • Upscaled or already-compressed sources carry artifacts that are expensive to encode
  • Portals that require exact pixels and a byte cap may need a crop before compression

Frequently asked questions

Can I keep a transparent background under 20KB?

WebP can keep transparency at 20KB for simple logos. JPEG cannot store transparency, so a transparent PNG converted to JPEG gets a white background. Choose Auto if the portal accepts WebP; otherwise flatten the image on the background colour you want.

Is 20KB enough for a profile photo?

Yes for avatars and exam photos at roughly 200–400 pixels. At 600 pixels or more, a detailed portrait will look soft once it fits 20KB because the tool has to lower quality or reduce dimensions.

Why does the result look blurry?

The tool lowers quality first and shrinks dimensions only when necessary. If it had to shrink a lot, the photo will look softer. Cropping closer to the subject usually gives a sharper result at the same byte size.

Does XImage upload my photo?

No. The file is decoded and encoded inside your browser using Web Workers and OffscreenCanvas. Nothing is sent to a server, and the result is created on your device.

Which output format should I choose?

Auto for the smallest result, JPEG when the portal only accepts JPG, and PNG only when transparency or lossless text is required. PNG rarely fits 20KB for photos.