Just Launched Free PDF tools are live: compress, merge, split and more. PDF Tools

Resize Image to 40KB

Compress a photo to under 40 KB, keeping it as sharp as possible.

Drop or Paste a Photo Here

Up to 50 MB · JPG/JPEG, PNG, WebP, HEIC, GIF, SVG, TIF/TIFF, AVIF, BMP, ICO, APNG

Animated WebP, GIF and APNG stay animated.

What Fits in 40 KB

ImageSharpReadable
Portrait photo (3:4)296 × 395 px453 × 604 px
Landscape photo (3:2)419 × 279 px640 × 427 px
Square (1:1)342 × 342 px523 × 523 px
Signature (3:1)1012 × 337 px1568 × 523 px

A rough guide for JPG/JPEG photos: busy photos need more room, plain backgrounds and signatures less. The tool keeps your dimensions where it can and lowers the quality first.

When 40 KB Is the Limit

Some application portals cap photos at 40 KB. The tool finds the highest quality that fits, so the photo is never compressed more than it needs to be.

If your form also gives pixel dimensions, use the Image Resizer to set them with the 40 KB limit. A smaller picture leaves more of the 40 KB for detail.

How It Works

  1. Choose or drop a photo.
  2. Pick a size such as 10 KB, 50 KB or 100 KB, or type your own limit.
  3. The tool finds the highest quality that fits. Download it.

Forms, authorities, platforms, marketplaces and others set their own rules, and they can change. Always check the current instructions before you upload or submit.

Frequently Asked Questions

My form says 20-40 KB. What do I do?

Under File Size, press Add a minimum and enter 20 and 40. The tool keeps the file inside that range.

Is 40 KB enough for a passport-size photo?

Yes. At 413 × 531 px (3.5 × 4.5 cm at 300 DPI) a photo usually fits in 40 KB at good quality.

How does the tool hit an exact KB limit?

It binary-searches the encoder’s quality setting: eight trial encodes between 2% and your chosen quality, keeping the highest quality that fits, with a 64-byte margin for header data. If even 2% is too big, it shrinks the dimensions by about the square root of target ÷ size and searches again. For a minimum size, it raises quality and finally pads the file with metadata bytes. 1 KB = 1,024 bytes.

Does it work on phones?

Yes. It works in the browser on any recent Android phone or iPhone, with nothing to install, and iPhone photos in HEIC format open directly.