Compress Image to 40KB

Fit a photo, square profile picture or card-sized scan under 40 KB with detail to spare. The 40 KB target is preset, and your image is compressed on your own device.

  • Nothing uploadedFiles never leave your device
  • InstantInstant, no upload wait
  • FreeFree, no sign-up, no watermark

Target size is set to 40 KB. You can change it after adding images.

Drop images to compress

JPG, PNG, WebP, HEIC, GIF or BMP, as many as you like.

Or drag and drop, or paste with Ctrl + V. Files stay on your device.

How to use the Compress Image to 40KB tool

  1. Add images

    Choose JPG, PNG, WebP or HEIC images: a single photo, or many at once.

  2. 40 KB is already entered

    Target size mode opens with 40 KB as the maximum. Choose JPG under Output format if the site asks for JPEG.

  3. Check and download

    Compare the new size, pixel dimensions and quality with what the site requires, then download one file or a ZIP.

Why use KBSnap’s Compress Image?

Preset to 40 KB
The target is in place when the page loads, so there's nothing to set up for a 40 KB limit.
Room for larger photos
At 40 KB, a 480 × 640 px portrait keeps around 75–90% quality, more detail than a 20 or 30 KB limit allows.
Four output choices
Keep the original format, or choose JPG, WebP or PNG. Transparent areas turn white when saved as JPG.
Your own width limit
Cap the width at the size you need, and the compressor spends the 40 KB on quality instead of extra pixels.
No uploads, no account
Images are processed in your browser and never sent to a server, with nothing to sign up for.

What the extra 10 KB buys over 30 KB

40 KB is a third more room than 30 KB. You can spend it on higher quality at the same pixel size, or on more pixels at about the same quality. Here's the difference for a JPG photo at common sizes, from a busier picture (the lower figure) to a plain-background one (the higher figure), based on our own test encodes:

Pixel sizeQuality at 30 KBQuality at 40 KB
413 × 531 pxAbout 75–90%About 85–92%
480 × 640 pxAbout 60–85%About 75–90%
600 × 600 pxAbout 45–80%About 65–87%
800 × 600 pxAbout 35–70%About 50–80%
600 × 800 pxAbout 35–75%About 55–85%

At around 75% and above, a photo looks like the original at normal viewing size; below about 50%, smudged textures and faint halos around edges start to appear. That makes 40 KB the point where a 480 × 640 px portrait or a 600 × 600 px square becomes comfortable, while 600 × 800 px is still a compromise.

Good uses for a 40 KB image

40 KB is less common on forms than 20, 30 or 50 KB, but it does turn up, and it's a sensible target for your own uploads too:

  • Application photos on portals that allow a larger image than the usual 20–30 KB, sometimes as a range with a minimum.
  • Square profile pictures for staff directories, alumni sites and learning platforms, where 600 × 600 px is plenty.
  • Card-sized scans such as the front of an ID card, a fee receipt or an admit card, when only a small file is allowed.
  • Listing and email images, such as a landscape product or property photo that should load quickly.

Where a form sets the rule, read its instructions for pixel dimensions, file type and any minimum as well as the 40 KB maximum.

Card-sized scans and documents at 40 KB

Text behaves differently from faces. Crisp black-on-white edges are expensive for JPG, so a document needs more data per pixel than a photo to stay readable.

  • A card-sized scan (an ID card, a receipt slip, an admit card) usually stays readable at 40 KB at about 600–800 px wide. Crop away the table or scanner lid around it first, because every pixel of background costs data.
  • Part of a page, such as a single paragraph or a stamp and signature block, fits easily once it's cropped.
  • A full A4 page of printed text is a poor fit. To reach 40 KB it has to shrink to roughly 500 px wide, where small print gets hard to read. Compress image to 100KB or Compress PDF are better choices if the site allows them.

Whatever you upload, open the result and zoom in on the smallest text. ID numbers, dates and names are what the person checking your application needs to read.

Choosing the output format

The Output format setting matters more at small sizes than most people expect. Here's what each choice does:

  • Same keeps JPG as JPG, PNG as PNG and WebP as WebP. iPhone HEIC photos become JPG, and GIF or BMP files become PNG.
  • JPG is right for photos and for almost every form, since it's the most widely accepted format. Transparent areas are filled with white.
  • PNG suits logos, screenshots and simple graphics. To shrink it, the tool reduces the number of colours, down to as few as 16, before it touches the dimensions, and transparency is kept. A photo saved as PNG looks far worse at 40 KB than the same photo as JPG.
  • WebP gets a little more quality out of each KB for websites, but many upload portals don't accept it. Some browsers, including Safari, can't create WebP files; the tool then uses JPG and tells you so.

If a portal asks for JPEG and you have a PNG or a screenshot, choosing JPG here converts and compresses in one step. The PNG to JPG converter does the conversion alone.

Worked example: a 600 × 600 px profile photo

Say a staff portal wants a square profile photo of 600 × 600 px, no larger than 40 KB, and your photo is a 4 MB portrait from your phone.

  1. In the Image Resizer, enter 600 × 600 px and choose Crop to fill exact size. The crop is taken from the centre, trimming the top and bottom of the portrait, so keep your face near the middle of the frame.
  2. Add the square photo here. The 40 KB target is already set.
  3. The result line should keep 600 × 600 px and show a quality somewhere around 65–87%, depending on how busy the background is.
  4. If it says the dimensions were reduced instead, the photo didn't fit even at 35% quality. Low-light grain or a cluttered background is the usual cause: retake it against a plain wall in daylight rather than giving up the 600 px the portal asked for.

Prefer one step? The Image Resizer's own Limit file size option keeps exactly 600 × 600 px and lowers the quality as far as it needs to, so the dimensions can never change.

40 KB, or 30 KB or 50 KB?

  • 30 KB is enough for a passport-size photo up to 413 × 531 px. If the form caps you at 30, don't fight it with a big image: use compress image to 30KB.
  • 40 KB suits 480 × 640 px portraits, 600 × 600 px squares and cropped card scans.
  • 50 KB adds another quarter, which helps 600 × 800 px photos and busier pictures look natural. See compress image to 50KB.

If the form sets a minimum as well as the 40 KB maximum, check the result against both numbers. This tool makes files smaller but never larger, while the Image Resizer can pad a file up to a minimum without changing the picture.

Frequently asked questions

How do I compress an image to 40 KB?

Add it on this page. The 40 KB target is preset, so the tool picks the highest quality that fits, reduces the pixel size only if it needs to, and shows the result before you download.

What is the best pixel size for a 40 KB photo?

For a portrait, up to about 480 × 640 px; for a square photo, up to 600 × 600 px. Both keep good quality at 40 KB. If the form gives dimensions, use those.

Can I compress a scanned ID card to 40 KB?

Usually, if you crop it to the card and keep it around 600–800 px wide. Zoom in on the result to make sure the numbers and dates are still readable.

Can I compress a PNG or a screenshot to 40 KB?

Yes. Keep PNG for graphics with flat colours, and the tool reduces the colour count to fit. For photos or busy screenshots, choose JPG output, which reaches 40 KB with far better quality.

Why did the tool reduce my photo's dimensions?

Because even at 35% quality the photo was still over 40 KB at its original size. Shrinking the pixels avoids the heavy blockiness that very low quality causes. Use Limit width to choose the final width yourself.

Can I compress a batch of photos to 40 KB?

Yes. Each image is compressed to 40 KB on its own, and you can save them individually or in a single ZIP.

Are my images uploaded?

No. Compression runs entirely in your browser, so your photos and scans stay on your device.

More free tools

View all tools

Change image dimensions in pixels, percent, cm, mm or inches, with DPI control.

Convert HEIC, WebP, PNG and JPG images to JPG, PNG or WebP in one click.

Shrink PDF file size for email and upload portals while keeping it readable.