Compress an image to 20 KB

Reduce an image to under 20 KB for avatars, signatures and tiny photos, keeping the best quality that fits.

loading Compress an image to 20 KB
About this tool

What this page does

This page opens the picture compressor with the target already set to 20 KB (20,480 bytes). Drop a JPG, PNG, WebP, HEIC or other picture and the tool searches for the best quality that makes the file fit, entirely in your browser: the picture is not uploaded anywhere.

Twenty kilobytes is a very tight budget: the weight of a small avatar, a scanned signature or a list thumbnail, not of a photograph at full size. When a form asks for a file this small it usually wants a small picture, so the tool will bring the dimensions down as well as the quality.

What 20 KB really allows

A file size is a budget of bits shared by all the pixels. A photograph at medium quality usually needs about 1.5 bits per pixel, so a picture with more pixels than the budget can pay for has to be shrunk. The table shows what 20 KB allows for common starting points and, assuming that rate, the size the picture would have after the fit (a rule of thumb: flat graphics need far less, noisy photographs more).

Starting picturePixelsBits per pixel allowedSize at 1.5 bit/pixel
Phone photo, 12 MP4000 × 30000.01382 × 286
Photo of 8 MP3264 × 24480.02382 × 286
Full HD screenshot1920 × 10800.08441 × 248
HD image1280 × 7200.18441 × 248
Portrait for a form600 × 8000.34286 × 382
Webcam, VGA640 × 4800.53382 × 286

How the tool gets there

First it tries the original size at the highest quality. If that is too big, it searches the quality between 100 and 40 by halving the range until it finds the highest that fits. If even 40 is too big, or the format is PNG (which has no quality), it shrinks the dimensions instead, never below 10% of the original side. When nothing fits, you get the smallest result it could make, with a warning.

In this tool 1 KB is 1,024 bytes, as most operating systems show it, so 20 KB is 20,480 bytes. Some forms count 1 KB as 1,000 bytes: for a limit of 20 KB written that way the largest safe target is 19 KB, and the table below puts the three numbers side by side.

How it is countedBytes
20 KB in this tool (1 KB = 1,024 bytes)20,480
The same number counted with 1 KB = 1,000 bytes20,000
Safe target: 19 KB19,456

A worked example

With 20,480 bytes there are 163,840 bits to spend. At 1.5 bits per pixel that pays for about 109,227 pixels, which is a 4:3 picture of 382 × 286. A 4,000 × 3,000 phone photo would have to lose 99% of its pixels (90% on each side) to be paid for at that rate; a picture that is already smaller than 382 × 286 needs no resizing at all, only the quality search.

Step by step

  1. Drop the picture on the area above, or press the button to choose it (several files work too).
  2. Check that the target says 20 KB and choose the format: JPG for photographs, WebP for smaller files, PNG for graphics.
  3. Press the compress button and wait a few seconds: the tool shows the size it reached, the quality used and whether the dimensions had to shrink.
  4. Look at the result next to the original, and download it. The name keeps the original with a suffix, so nothing is overwritten.

A tip for this size

Crop first. A signature on a full A4 scan spends most of its 20 KB on white paper; cropped to the ink, the same budget buys a sharp line. Use the crop tool, then come back here.

Common mistakes

  • Compressing a picture that was already compressed several times: each pass of a lossy format adds damage. Start from the original whenever you have it, and use 20 KB only for the final copy.
  • Renaming a PNG to .jpg to get under 20 KB: the form reads the content, not the name, and the weight does not change. Convert with the tool and pick JPG as the format.
  • Sending the result without looking at it: at a hard limit like 20 KB the tool may have lowered the quality to 40 or shrunk the picture, and what you need (a face, a stamp, a number) must still be readable.

Frequently asked questions

Can a signature really fit in 20 KB?

Yes, if it is cropped and kept black on white. A line drawing has few colours and compresses far better than a photograph; a 300 × 100 px signature is only 30,000 pixels, well inside the budget.

Is my picture uploaded?

No. The compression to 20 KB runs in your browser, with your own computer or phone, so the picture never leaves your device and the page also works offline once loaded.

What if the result is still bigger than 20 KB?

The tool shows the smallest file it could make and says it did not reach 20 KB. The way out is a smaller picture to start from: crop away what the form does not need, or resize it, and compress again.

Does the form decide the exact limit?

Yes. This page only prepares the file; the exact limit, the accepted formats and how it counts a kilobyte are set by the site you upload to. Read its help text and leave a small margin: 19 KB is the safe target for 20 KB counted in thousands.

Report a problem