Compress Image to 20KB

Compress an image to 20KB or less online: drop in a photo and get back a JPG that fits a form or an upload limit. JPG, JPEG, PNG, WebP, AVIF and iPhone HEIC files all go in as they are. The page shows the final size in KB and the final width and height, so you know what you are uploading.

Target size 20 KB or less

How to compress an image to 20KB

  1. Drop your photo on the box above, or tap it to pick one from your phone.
  2. Wait a few seconds. The picture is compressed, and scaled down if that is what it takes, until it is 20KB or less.
  3. Check the size and the dimensions shown with the result, then download the JPG.

20KB photo size: what the picture looks like

These are our own results from this page's engine. Yours will differ a little: a detailed picture comes out smaller than a plain one.

What went inWhat came back at 20KB
A 12 megapixel iPhone photo (4032 x 3024)about 626 x 470
A 24 megapixel iPhone photo (5712 x 4284)about 655 x 490
A phone photo of a printed pageabout 680 x 900, legible but rough

At this size a photo is small and soft, fine as a thumbnail or a form photo.

Resizing an image to 20KB: will the width and height change?

Usually, yes. The quality is lowered first, and if the file is still over 20KB the picture is scaled down, keeping its shape. In our tests a phone photo ended up at 12 to 16% of its original width and height at this size. The page shows the final dimensions before you download, so if your form also asks for an exact pixel size you can check it there.

If the form wants a range, such as 10KB to 20KB

The result lands just under the upper limit: between 18 and 19KB in our tests. A picture that is already smaller than the lower limit cannot be made larger here.

Why a 20KB file can still be rejected

There are three common reasons. The form counts kilobytes differently: this page treats 20KB as 20,000 bytes, the stricter of the two ways of counting, so the file passes either way. The form wants a different format: the download here is always a JPG. Or the form also checks the pixel size or the shape of the picture, which is a separate rule from file size.

From an iPhone, a screenshot or a WebP

HEIC photos from an iPhone, PNG screenshots, WebP and AVIF images go in without converting them first. What comes back is a JPG, the format most upload forms ask for. Hidden camera data, including location, is removed; our guide to removing metadata from a photo explains what that covers. Starting from an iPhone? See how to reduce photo file size on iPhone.

Other sizes

Limits and automation

Free: 3 images a month with no signup, or 25 a month with a free account, at up to 20MB per file. A $2.99 Day Pass covers 100 images in 24 hours, 25 at a time, with no signup, and Seller, Pro and Growth plans take 25 per batch at up to 75MB each. For a whole folder, the API takes the same target:

curl -X POST "https://api.mochify.app/v1/squish?type=jpg&targetBytes=20000" \
  -H "Authorization: Bearer $MOCHIFY_KEY" \
  --data-binary @photo.heic \
  -o photo-20kb.jpg

Frequently asked questions

How do I compress or resize an image to 20KB?

Drop it on the box at the top of this page. It comes back as a JPG of 20KB or less, with the final size and dimensions shown.

Will compressing to 20KB change the width and height?

Usually. The quality is lowered first and the picture is scaled down only if it still does not fit. A phone photo came back at 12 to 16% of its width and height in our tests, and the page shows the final dimensions.

What if my image cannot reach 20KB?

The page tells you. Quality is never taken below a fixed floor and a picture is never scaled below a tenth of its width and height. If 20KB is still out of reach, you get the smallest version possible and a message saying the limit was not met. Every photo and document we tested at this size fitted.

How do I get a photo between 10KB and 20KB?

Use this page. The result lands just under 20KB, between 18 and 19KB in our tests. A picture that is already under 10KB cannot be made larger here.

Will text stay readable at 20KB?

In our test a phone photo of a printed page came back at about 680 x 900. The text could be read but was rough. Crop the photo to the part of the page you need before you compress it, or use a larger limit if the form allows one.

Can I compress a JPEG, PNG or iPhone photo to 20KB?

Yes. JPG, JPEG, PNG, WebP, AVIF and iPhone HEIC files go in as they are and a JPG comes out.

Is 20KB the same as 0.02MB?

Yes. This page counts 1,000 bytes to the KB, so 20KB means 20,000 bytes or less. A form that counts 1,024 bytes to the KB will accept it too.

Is the 20KB image compressor free?

Yes, for 3 images a month with no signup, or 25 a month with a free account. A $2.99 Day Pass covers 100 images in 24 hours with no signup.

What happens to my photo?

It travels over HTTPS to api.mochify.app, is compressed in memory and is discarded once your download is ready. Nothing is written to disk, no logs contain your file, and it is never used to train AI.