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.
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 in | What 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 page | about 680 x 900, legible but rough |
At this size a photo is small and soft, fine as a thumbnail or a form photo.
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.
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.
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.
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.
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