← Back to Blog · 20 November 2026 · By Rana Zamin, Digital Marketer, Multan

How to Compress an Image to 20KB

Shrink a photo to under 20KB for a form or profile picture: resize first, then compress — with a worked example and the mistakes to avoid.

How to Compress an Image to 20KB

Why does anyone need a 20KB photo?

Twenty kilobytes is a very small file, and nobody chooses it for fun. It is chosen for them — by a form. Several government and university portals in Pakistan cap photo uploads at 20 KB, and scholarship and job application forms do the same. The form will not accept a 2 MB phone photo, and it will not explain why; it just refuses the upload. A 20 KB file is also the right size for a profile photo or an avatar: a WhatsApp display picture, a forum avatar or a student portal photo is shown at a tiny size on screen, so a 20 KB file looks exactly the same as a 2 MB one there — and it uploads in a second even on a slow mobile connection.

The trick is knowing what 20 KB can and cannot do. It is a size for small on-screen use: a form thumbnail, an avatar, a photo that will be seen at a few hundred pixels wide. It is not a size for printing, and not a size for a photo people will look at full-screen. Once you accept that, compressing to 20 KB stops being a fight with the form and becomes a two-minute job — resize first, then compress, and check the result at the size it will actually be shown.

Two levers shrink a photo — dimensions and quality

A photo has two things you can change, and they are not the same job. Resizing changes the dimensions: the width and height in pixels. A phone photo is usually 3,000 to 4,000 pixels wide and 2 to 4 MB. Compression changes the file size: the kilobytes, by removing detail your eye barely notices at small sizes. Most people only touch the quality slider, and then wonder why the photo still will not fit — because a 4,000-pixel-wide photo carries so much data that even low quality stays heavy.

The order matters: resize first, then compress. Shrinking a photo to 800 pixels wide already removes most of the data, and then lowering the JPG quality to around 60 to 70% brings it under 20 KB. Our free compress image to 20KB tool does the quality part for you: it tries qualities from 92% down to 8% and keeps the highest quality whose file stays under 20 KB, so you get the best version that still fits. It works on JPG and WebP. PNG is different — it is lossless, it keeps every pixel exactly, so lowering the quality slider does nothing to a PNG. Convert a PNG to JPG or WebP first, or the file will never reach 20 KB.

How to compress an image to 20KB, step by step

Step 1: upload your photo on the compress image to 20KB page. The target size is already set to 20 KB for this page — you do not need to type it. Step 2: resize the photo to about 800 pixels wide, keeping the aspect ratio ticked so the height follows automatically and the picture does not stretch. Step 3: click Compress to 20 KB. The tool renders your image at qualities from high to low and keeps the best one that fits under 20 KB. Step 4: download the result and look at it at the size it will be shown — as a thumbnail, not zoomed in full-screen. If faces are recognisable and the background is clean, it is done.

Everything happens in your browser, so your photo is never uploaded to a server — which matters when the photo is your own ID picture. There is no sign-up and no watermark. The tool works on one image at a time, so if you have three photos for three forms, do them one by one. If the result comes out under 20 KB but looks soft, do not raise the quality back up and hope — crop the photo tighter first, so the file spends its 20 KB on the face or subject instead of the background. A busy background costs data; a plain one is almost free.

Worked example — a 2.4 MB phone photo becomes 18 KB

Take a real phone photo: 2.4 MB, 4,032 by 3,024 pixels. Resize it to 800 by 600 pixels and compress it at 65% quality, and it comes out at about 18 KB — small enough for the form, and still sharp at the small size it will be shown at. That is the whole method in one line: smaller dimensions first, then just enough compression to fit.

Now try the same photo without resizing. Kept at full size, it would need quality below 10% to reach 20 KB, and it would look badly damaged — blocky, smeared, unusable. The dimensions did the heavy work, not the quality slider. The same rule works the other way too: if your form allows 50 KB or 100 KB instead, use the matching page — compress image to 50KB or compress image to 100KB. A bigger allowance means a bigger, sharper photo, and there is no reason to squeeze a photo to 20 KB when the form would accept 100 KB.

When 20KB is the wrong size — and what to use instead

At 20 KB a photo is about 800 pixels wide at roughly 60 to 70% quality. That is enough for a form thumbnail or an avatar, where the screen shows only a few hundred pixels. What it cannot do is detail. A group photo, a busy street scene, or a document full of small text all turn soft at 20 KB, because fine lines cost data. Anything that will be printed, or shown larger than a thumbnail, needs a bigger file — step up to 50 KB when the form allows it, or 100 KB for a photo people will actually look at.

The other common mistake is starting from the wrong format. A PNG photo is already large, and converting it to JPG first is usually the single biggest saving you can make — bigger than any quality setting. And remember the result is under 20 KB, not exactly 20.0 KB: the tool picks the highest quality that fits, so the file is usually 15 to 20 KB, and any file under the limit passes the form's check. If you also need to change the shape of the photo — a square avatar, a passport size — use our free image resizer first, or the passport size photo maker for ID photos, then compress the result to 20 KB.

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.

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.

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

Upload the photo on the compress image to 20KB page, resize it to about 800 pixels wide, and click Compress to 20 KB. The tool tries qualities from 92% down to 8% and keeps the best one under 20 KB. Download it and check it at thumbnail size before uploading it to the form.

Try the Compress Image to 20KB →

More guides:

All tools: All Tools