Compress Image to 40KB

Bring a photo down to 40 KB or less without guessing at settings. The tool tries them for you, on your own device, and keeps the best-looking version that fits.

Your files never leave your device. How privacy works

How to reduce an image to 40 KB

  1. Choose the picture, or drag it onto the box above. The target is already 40 KB.
  2. It is saved at different sizes and quality levels on your device, and the best result at 40 KB or under is kept.
  3. Check the final size, width and height shown next to the file, then download it.

A 40 KB photo in numbers

At 40 KB our five test photos kept between 730 and 1,092 pixels on their longer side. The 12-megapixel iPhone photo came out at 933 × 700, less than a quarter of its original width, at quality 79 out of 100.

What each test picture came out as on this page, measured in November 2026. Quality is out of 100.
PictureOriginalAt 40 KBQualityFile size
iPhone 13 Pro photo 4,032 × 3,024933 × 7007937.5 KB
iPhone 8 Plus photo of a pen drawing on paper 3,024 × 4,032700 × 9338237.2 KB
Xiaomi phone photo 2,592 × 1,944730 × 5488639.7 KB
Sony camera photo 4,240 × 2,832774 × 5178339.7 KB
Sony camera photo, 33 megapixels 4,672 × 7,008728 × 1,0927839.0 KB
Screenshot of text 1,600 × 900843 × 4747539.1 KB

When the form gives the size in centimetres

Forms sometimes describe a photo the way a print is described, for example 3.5 × 4.5 cm. A file has pixels, not centimetres, so if the form also gives a dpi (dots per inch) figure, turn the size into pixels: divide the centimetres by 2.54, then multiply by the dpi.

For example, 3.5 × 4.5 cm at 300 dpi is 413 × 531 pixels. Crop your photo to roughly that shape, set the exact pixels in the Image Resizer with Keep proportions unticked, then bring the result here. That is about half as many pixels as any result in the table above, so it usually fits in 40 KB without being made any smaller.

Quality or pixels: what gets reduced

There are two ways to make a photo file smaller: lower the JPG quality, or keep fewer pixels. Lowering the quality alone would get a 12-megapixel photo to 40 KB only as a mess of blocky squares.

So the tool reduces both, in the balance that looks best, and aims to keep the quality between about 70 and 85. The final width and height are shown next to the file, so you can see what you are getting.

Compress to another size

Questions and answers

My form wants exact pixels, and the result came out smaller. What now?
The tool only reduces the pixels when the picture cannot fit at a clean quality, and the result says when it has. If your form insists on its pixel size, use the Image Compressor instead: it keeps the width and height and lets you lower the quality yourself until the file is small enough.
Is my original photo changed?
No. The 40 KB version is a new file that you download. The photo on your phone or computer stays exactly as it was.
Can I pick a slightly different size on this page?
Yes. Type any size into the Target size box, such as 45 KB, and the photos are done again to the new limit.
Can I make several photos 40 KB at once?
Yes. Choose as many as you like, and each one is fitted under 40 KB on its own. Download them one at a time or together as a ZIP file.
Are my photos uploaded?
No. The work is done by your own browser, on your own device. You can check: compress one photo, switch off your internet connection, then compress another. It still works, because nothing is being sent anywhere.
Is it free?
Yes. There is no sign-up, no watermark and no limit on how many photos you use it for.

Related tools

Compress Image to KB

Type a size limit and get the best quality that fits under it.

Compress to 50 KB

Fit a photo under 50 KB.

Compress to 30 KB

Fit a photo under 30 KB.

Image Resizer

Set the exact width and height of a picture.