← All tools

RanaFreeTools · Free online tool

Compress Image to 20KB

Shrink any photo to under 20KB in seconds — free, in your browser, with no sign-up and no upload.

Free · No signup · Instant

How to compress an image to 20KB

  1. Upload your photo — JPG, PNG or WebP, any size.
  2. The target size is already set to 20 KB for this page.
  3. Make sure JPG or WebP is selected as the format. PNG is lossless, so it cannot be squeezed to a target size — switch to JPG or WebP for this.
  4. Click “Compress to 20 KB”. The tool tries qualities from high to low and keeps the best one that fits under 20 KB.
  5. Check the output size shown under the preview, then download your image.

How it works

20 KB is a very small file, so the tool has two levers: dimensions and quality. A phone photo is usually 3000–4000 pixels wide and 2–4 MB. Shrinking it to 800 pixels wide already removes most of the data, and then lowering the JPG quality to around 60–70% brings it under 20 KB. The tool does the quality part automatically: it renders your image at qualities from 92% down to 8% and keeps the highest quality whose file stays under 20 KB.

Worked example: a 2.4 MB phone photo (4032 × 3024 px) resized to 800 × 600 px and compressed at 65% quality comes out at about 18 KB — small enough for the form, and still sharp at the small size it will be shown at. The same photo kept at full size would need quality below 10% to reach 20 KB, and would look badly damaged. That is why resizing the dimensions first matters more than the quality slider alone.

Common uses

A 20 KB limit is common on strict upload forms. Several government and university portals in Pakistan cap photo uploads at 20 KB, and some scholarship and job application forms do the same. Profile photos and avatars are another use: a WhatsApp display picture, a forum avatar or a student portal photo is shown at a tiny size, so a 20 KB file looks exactly the same as a 2 MB one on screen.

It is also the right size when you need to attach a photo to an email on a slow mobile connection, or send an ID photo over WhatsApp without waiting for a large upload. For anything that will be printed or shown large, use 100 KB or 200 KB instead — 20 KB is for small on-screen use only.

Tips

Start from a JPG, not a PNG: a PNG of a photo is already large, and converting it to JPG first is usually the single biggest saving. If your photo is very detailed — a crowd, trees, a busy street — 20 KB will look softer than a plain portrait, because detail costs data. In that case, crop the photo tighter first, so the file spends its 20 KB on the face or subject instead of the background.

Always check the output before you submit it: the tool shows the exact size under the preview. If the result is 21 or 22 KB, lower the dimensions a little (for example 700 px wide instead of 800) and try again — a small resize usually brings it under the limit without a visible change. And keep your original photo: once compressed, the lost detail cannot be recovered.

Frequently Asked Questions

Will my photo lose quality at 20KB?

Some, yes — 20 KB is very small. At the tiny size it will be shown (an avatar, a form thumbnail) the difference is hard to notice, because the screen only shows a few hundred pixels. For printing or viewing full-screen, use 100 KB or 200 KB instead.

Is 20KB enough for official forms?

For the forms that ask for it, yes — several government and university portals in Pakistan set a 20 KB cap on photo uploads, and this tool is built to fit exactly that limit. Always check the form's own requirement first: if it asks for 50 KB or 100 KB, use the matching page instead.

Do you upload my photo to a server?

No. The compression runs entirely in your browser with canvas — your photo is never uploaded, stored or seen by anyone. You can even use it offline once the page has loaded.

Why is my PNG still over 20KB?

PNG is a lossless format: it keeps every pixel exactly, so lowering the quality slider does nothing to a PNG. Switch the format to JPG or WebP before compressing — that is the only way to reach a small target size like 20 KB.

Can I compress to exactly 20KB?

The tool aims for under 20 KB, not exactly 20 KB: it picks the highest quality that fits, so the result is usually 15–20 KB. An exact 20.0 KB file is not possible in general, because quality changes in steps — and any file under the limit passes the form's check.

Looking for the full tool? Use the Image Resizer & Compressor — free, no sign-up, with more sizes and options.

Looking for something else? Browse all free tools.