Image Compressor
Back to blog
TutorialNovember 2025 · 7 min read

How to Compress an Image to 20KB

The exact method for shrinking JPG, PNG, and WebP files to 20KB for favicons, thumbnails, WhatsApp DP, and government form uploads — using a free tool that runs right in your browser.

The short answer

Set target size → 20KB

Drag your image into a compressor that supports a target file size, type “20” in the target field, and download. Our free image compressor does this in seconds with no upload.

Why 20KB is a target worth mastering

20KB is one of the tightest file-size limits you will meet online, and it is everywhere. Government portals, exam registrations, visa applications, and WhatsApp display pictures all ask for images that fit under this threshold. Knowing how to compress an image to 20KB solves a surprisingly long list of real-world problems:

  • Government form uploads — passport, visa, exam, and tax portals frequently cap photos at exactly 20KB.
  • WhatsApp display picture — a clean 20KB DP loads instantly and still looks sharp in chat.
  • Favicons and app icons — tiny brand marks that must be lightweight, crisp, and instant.
  • Thumbnails — product grids and galleries stay fast when each tile is well under 20KB.
  • Forums and chat avatars — many older platforms enforce a 20KB avatar ceiling.

Whatever the reason, the goal is the same: get your image to 20KB or less while keeping it looking good. Let’s look at what that actually means.

What does 20KB actually look like?

File size is a product of two things: pixel dimensions and compression quality. At 20KB you cannot keep a large photo, but you have plenty of room for small, focused images. Here is roughly what fits comfortably inside 20KB:

  • A 200×230 passport photo in JPG — clean enough for government and exam portals.
  • A 150×150 WhatsApp DP — sharp at the size it is actually displayed.
  • A 64×64 or 128×128 favicon in PNG — with room to spare.
  • A small thumbnail for a product card or directory listing.
  • A logo or icon with a transparent background in PNG.

The key insight is that trying to keep a 3000×2000 photo at 20KB forces quality so low it looks blocky. Resize first to a sensible target, and 20KB suddenly looks great. The compressor handles this automatically when you set a target size.

Step-by-step: compress to 20KB

1

Open the compressor

Go to our free image compressor. No signup, no upload — everything runs locally in your browser.

2

Upload your image

Drag and drop a JPG, PNG, or WebP file onto the drop zone, or click to browse. You can add several images to compress them in a batch.

3

Set the target size to 20KB

Enter 20 in the target file size field. The compressor finds the best quality that fits within 20KB, resizing if needed.

4

Adjust quality if needed

If the automatic result is a little soft, nudge the quality slider up or the dimensions down. For most images the default is already optimal.

5

Download

Preview the original next to the compressed version. Happy with it? Click download — your image is now 20KB or less.

Best quality settings for 20KB

The format you choose makes a big difference at small file sizes. Pick the one that matches your content:

FormatBest forNotes at 20KB
JPGSmall photographs, passport photos, form uploadsBest for photos at small sizes. No transparency.
PNGFavicons, logos, icons with transparencySharp edges and transparency. Avoid for photos.
WebPEverything (best overall)Smallest files at a given quality. Supports transparency.

As a rule of thumb: use JPG for a 20KB photo or form upload, PNG for a 20KB favicon or icon, and WebP when you want the smallest possible file with the best quality. Our compressor lets you convert between formats during compression, so you can test all three and keep the winner.

Common use cases for 20KB images

Here are the most popular reasons people compress to 20KB, with the dimensions that work best:

Use caseRecommended dimensionsFormat
Government / exam form upload200×230JPG
WhatsApp display picture150×150 or 200×200JPG / WebP
Favicon / app icon64×64 or 128×128PNG
Forum or chat avatar128×128JPG / WebP
Small thumbnail200×150JPG / WebP
Logo / transparent icon200×60PNG

Why browser-based compression is best for small files

When you only need a 20KB favicon or form photo, sending your file to a remote server feels excessive. Browser-based compression keeps everything on your device, which matters for three reasons:

  • Privacy — your photos never leave your computer, so there is nothing to leak or store on a server. That matters a lot when the image is a passport or ID photo.
  • Speed — with no upload or download round-trip, a 20KB result is ready almost instantly.
  • No upload limits— you are not constrained by a server’s maximum file size or a slow connection.

Our compressor runs entirely client-side, so it works offline once loaded, keeps your files private, and handles as many images as your machine can manage. For a deeper look at shrinking files in general, see our guide on how to reduce image file size.

Frequently asked questions

Can I compress a JPG to exactly 20KB?

Yes. Use an image compressor with a target file size feature, set the target to 20KB, and the tool will automatically lower the JPEG quality and adjust dimensions until the output is 20KB or under. Our free image compressor does this entirely in your browser with no upload.

How do I compress an image to 20KB for a government form upload?

Most government portals, visa applications, and exam registrations cap uploads at 20KB. Open the image compressor, set the target size to 20KB, and the tool resizes and compresses your photo to fit. For passport-style photos, a 200x230 or 230x230 pixel JPG at 20KB passes nearly every portal's check.

What dimensions fit inside 20KB?

At 20KB you have room for a small, focused image: a 150x150 avatar, a 200x230 passport-style photo, or a 64x64 favicon. Large photos cannot stay under 20KB without heavy quality loss, so the compressor resizes them to web-friendly dimensions first.

Which format is best for a 20KB image?

WebP is the best overall format for 20KB images because it produces the smallest files at a given quality. JPG is ideal for small photographs and form uploads, and PNG is best for favicons, logos, and icons that need transparency. Avoid PNG for photos at 20KB.

Compress your image to 20KB right now

Free, instant, and private. No upload, no signup.

Compress Now — Free