Skip to content

Resize Image to 40KB — Free Online Compressor

Compress any image to 40 KB or less. Works with JPG, PNG, WebP and HEIC — roomy enough that a passport-style photo still looks clean.

Resize to 40KB Now →

Opens the resizer with a 40 KB target already set

How to Resize an Image to 40KB

1

Upload your image

Drop it in or select it. A phone photo runs about 75× larger than 40 KB, so set the dimensions you need at the same time.

2

Tick "Compress to target file size"

The 40 KB target is already filled in when you arrive from this page, so there is nothing to type. The tool then works upward to the best quality that still fits inside 40 KB.

3

Download your 40 KB image

Click Resize and save the file. It will be at or below 40 KB, and you will get a warning instead of an oversized file if the target is out of reach.

Features

Targets 40 KB precisely, and tells you if it cannot get there
Keeps the highest quality that still fits 40 KB
100% private — nothing is uploaded to any server
Reads JPG, PNG, WebP, HEIC and more
Resize the dimensions and hit the KB target in one step
Free and unlimited — no sign-up, no watermarks

Where Do You Need a 40KB Image?

40 KB is generous enough for a genuinely good-looking passport photo while still counting as a small file. It appears on identity and licensing forms more than on exam portals:

  • Driving License Applications — Transport and motor vehicle authorities — state, provincial or national depending on the country — commonly cap photo and signature uploads in the 30–50 KB band on their online forms. Check whether yours is one: many first-time applications and renewals are done at a counter, where the photo is taken on the spot and there is no file to upload or size.
  • Identity Document Updates — Forms for correcting or updating an existing identity record often set a slightly higher limit than the original application did, because the system storing them was built later.
  • Professional Registration Bodies — Councils and licensing boards for regulated professions — medical, legal, engineering, accounting — typically allow around 40 KB for the member photograph on the register.
  • Bank KYC and Account Opening — Know-your-customer flows accept small photographs worldwide, since the image supports a verification step rather than being the record itself. 40 KB is comfortably inside what most allow.
  • Insurance and Pension Portals — Policy and pension self-service systems set modest photo limits so their document stores stay manageable across millions of policyholders.

Portals revise their limits without notice, so confirm the 40 KB figure on the official page for your own form before you submit.

Tips for the Best Quality at 40KB

  • Use JPEG unless the form explicitly asks for something else.
  • At 40 KB you can afford around 300×400px and still look sharp.
  • Compress once, not twice. Re-compressing an already-compressed file costs quality for no size gain.
  • Good even lighting on the original does more for the result than any compression setting.
  • A good starting point for this size is around 300×400px.

Frequently Asked Questions

Will a 40KB photo look noticeably worse than the original?

At passport dimensions, not really. 40 KB is comfortable for an image a few hundred pixels on a side, and the tool searches for the highest quality that fits rather than dropping straight to a low setting. Compression becomes visible when you ask for a large image at a small size, not at these dimensions.

Should I resize the dimensions or just compress?

Both, in that order, and the tool does them in one pass. Set the pixel dimensions the form asks for and enable the KB target together. Compressing a 4000×3000px original down to 40 KB without resizing wastes the whole budget on pixels nobody will see.

The portal wants 40KB but my file is already 35KB. Should I compress anyway?

No. You are already inside the limit, and re-compressing would only throw away quality for nothing. The limit is a ceiling, not a target to hit exactly.

Can I use this for a photo that will also be printed?

Be careful. 40 KB is sized for screen verification, and a heavily compressed file prints worse than it displays. Keep your original for printing and use the compressed copy only for the upload.

Which format gives the smallest file at 40 KB?

JPEG, which is also what most portals specifying 40 KB require by name. PNG cannot be compressed to a target at all, so a PNG saved from a photo will overshoot 40 KB badly — keep it for flat-color graphics and transparency. WebP reaches the same quality at roughly 29 KB if your destination takes it.

Will the image still look acceptable at 40 KB?

For the dimensions portals asking for 40 KB have in mind, yes — that budget covers about 470×470 pixels at good quality, which is ample for a head-and-shoulders photo. A 3 MB phone photo has to shrink roughly 75× to get there, so resize the dimensions as well rather than leaning on quality alone to absorb all of it.

Can I upload a HEIC photo from my iPhone and get 40 KB out?

Yes — HEIC, JPG, PNG, WebP, BMP, TIFF, GIF, AVIF and SVG all work as inputs, so an iPhone photo goes straight to a 40 KB JPEG with no separate conversion step. That matters here because an untouched HEIC is usually a few megabytes, roughly 75× over 40 KB. Save as JPEG for the 40 KB target; PDF, PNG, WebP, BMP and TIFF are available too, but PNG cannot be compressed to a size.

Are my images uploaded anywhere?

No. The compression to 40 KB happens in your browser through the Canvas API, so the photo never leaves your device — nothing is sent to a server and nothing is stored. Open your network tab while the 40 KB target is applied and you will see no upload request at all. Working locally is what lets the tool try several quality settings to land on 40 KB, since each attempt is instant with no round trip to a server. It also means the tool works offline, and that a photo of an identity document stays on your machine.

More Tools

Last updated: