Add to Chrome

Compress an image to 40 KB

Updated 2026-12-06

Choose a photo below and Docmend makes it 40 KB or smaller. It lowers the JPG quality first and only makes the picture smaller in pixels if it still doesn’t fit. In our test, a 16-megapixel camera photo (4.94 MB) came out at 39,816 bytes and 1216 × 912 px.

Free, no limits, no watermark. Your photos never leave your device.
Loading the tools…

Compress an image to another size

How to compress an image to 40 KB

  1. Choose the photo: JPG, PNG, WebP, GIF or an iPhone HEIC photo. You can pick several at once.
  2. “Other…” is already picked with 40 filled in as the size in KB. Change it if your form asks for another size.
  3. Leave “Save as” on JPG: it is the format that gets photos smallest.
  4. Click Resize. The new file downloads, and the result line shows its size and pixel size.

What 40 KB gets you: our test

Test pictureOriginalResultPixelsJPG quality
a 16-megapixel public-domain camera photo (4608 × 3456 px, 4.94 MB)4.94 MB39,816 bytes1216 × 91232%
a 1920 × 1080 PNG screenshot (714 KB)714 KB40,716 bytes778 × 43746%

To fit, the photo was made smaller in pixels; at 35 KB the same photo was 1122 × 841 px and at 45 KB it was 1294 × 970 px. If your form shows the photo small (most do), the difference is hard to see.

Our own test in Chrome on 2026-12-06 with the same code this page runs. Results depend on the picture: busy, detailed photos need more bytes than plain ones.

When a form asks for 40 KB

At 40 KB you can usually keep a passport-size photo at near-full quality. Our 350 × 450 px crop came out at 38 KB at the highest quality Docmend uses.

Is it 40 KB or 40,000 bytes?

Docmend counts 1 KB as 1,024 bytes here, the way Windows, macOS Finder in “KB” and most phones show sizes. So “40 KB” means up to 40,960 bytes. Our photo came out at 39,816 bytes, under 40,000 bytes as well.

If your form counts 1 KB as 1,000 bytes and rejects the file, pick “Other…” and type 39. The result is then always under 40,000 bytes, so it passes either way.

If the picture looks too soft

Common questions

How does Docmend get a photo under 40 KB?

It tries JPG quality levels from high to low and keeps the best one under 40 KB. Only if the lowest quality is still too big does it make the picture smaller in pixels, step by step. In our test the result was 1216 × 912 px at 32% quality.

Is 40 KB the same as 40,000 bytes?

Not always. Docmend counts 1 KB as 1,024 bytes, so 40 KB means up to 40,960 bytes. If your form counts 1 KB as 1,000 bytes, choose “Other…” and type 39 to stay under 40,000 bytes.

Will a passport-size photo fit in 40 KB?

In our test a 350 × 450 px passport-style crop was 38,253 bytes at 92% quality and 23,202 bytes at 80%. So it fits under 40 KB at full quality.

Are my photos uploaded?

No. Docmend works on the picture inside your browser, so it never leaves your phone or computer. Nothing is stored after you close the tab.