Skip to content

Compress Image to 20 KB

Fit an image into a 20 KB limit. The tool lowers quality first, then resizes if it has to, and says so honestly if even a tiny copy still overshoots 20 KB. Nothing is uploaded.

KB

The result will be at or under this size when the tool can manage it. 1 KB is 1,000 bytes and 1 MB is 1,000,000 bytes, so a file that meets the target also passes forms that count a kilobyte as 1,024 bytes.

Original

No image

Compressed

No image

A 20 KB cap, without a guesswork slider

20 KB is a tight budget: it shows up on some older forms, tiny avatar fields and places that still think in terms of dial-up-era attachments. This page is only about file size: it does not try to match official photo rules for passports, visas or identity documents, which also specify dimensions, background and pose. Check those on the form you are using.

The target is 20 KB (20,000 bytes). A file at or under that size passes forms that count a kilobyte as either 1,000 or 1,024 bytes.

How to compress an image to 20 KB

  1. Select an image. Choose a JPG, PNG, WebP, GIF or BMP file (or an AVIF your browser can display). Nothing is uploaded.
  2. Confirm the target and format. This page is set to 20 KB. You can still pick JPG, WebP or PNG. JPG is the usual choice for photographs.
  3. Compress. Click Compress to size. The tool searches quality, then dimensions if needed, and shows the final size, dimensions and a short explanation.
  4. Download if it looks right. Check the preview. If the target was missed, the message under the sizes explains why; the download is the smallest file that is not larger than the original.

How to get a good result at 20 KB

Expect most photographs to be resized, not just re-saved. A 12-megapixel phone photo cannot stay sharp at 20 KB. Check whether the form also wants a specific width or height — this tool only targets file size, so you may want to crop first.

Other targets: 50 KB, 100 KB, 200 KB, 500 KB, 1 MB. Or pick any size on the compress to target size page.

Related tools and guides

20 KB FAQ

Are my images uploaded?

No. The image is decoded, compressed and, if needed, resized entirely in your browser.

How do you count KB and MB?

1 KB is 1,000 bytes and 1 MB is 1,000,000 bytes. A result at or under that figure also fits forms that use the 1,024-byte (KiB) definition, because 50,000 bytes is less than 50 × 1,024 and 1,000,000 bytes is less than 1,048,576.

How does it decide quality versus size?

It first binary-searches the quality setting at the original dimensions. If even the lowest quality is still too big, it then searches a smaller size, and finally searches quality again at that size so the picture stays as sharp as the budget allows.

What if my file is already under the target?

The download is the original file, unchanged: same bytes, name and type. The tool will not re-encode it, because re-encoding a small JPEG can make it larger.

What if it can't hit the target?

If a smaller encoding exists, you get that file and a clear message that the target was missed. That can happen with a tiny budget and a complex image, or with PNG, which can only shrink by resizing. If every attempt would be larger than the original, you get the original file back. The tool never returns a file bigger than the one you chose.

Which format should I pick?

JPG is the most compatible. WebP is usually smaller at the same quality and is fine if the destination accepts it. PNG is lossless, so the only way to cut its size is to use fewer pixels — it is a poor choice for squeezing a photograph into a small cap.

Will a 20 KB photo still look acceptable?

For a small on-screen thumbnail, often yes. For a print or a full-width photo, no: 20 KB is too small to hold much detail. Always look at the preview at the size you will actually use it.

My image still won't go under 20 KB. Why?

A very simple or already-tiny graphic can still have a minimum size set by the format's header and the smallest canvas this browser will encode. The tool returns that smallest file and tells you it missed the target.