Convert Images
Image Converters 9
PDF to Other 5
Convert to PDF 6
Video & Audio 3
Organize 6
Optimize & Repair 4
Edit & Sign 4
Security & Smart 5
Image compressor

Compress image to a size
Pick the KB, get the file.

Set a target like 20 KB, 50 KB or 200 KB and the tool finds the best quality that fits. Works with JPG, PNG, WEBP and iPhone HEIC photos.

IMG_2041.pngPNGIMG_2041.jpgJPG3.4 MB100 KB
Target size
Save as

Drop images here

JPG, PNG, WEBP, HEIC, GIF or BMP — add as many as you like

Nothing is uploaded · Free · No signup
Quality is lowered first; the image is only resized if quality alone can't reach the target.
Where size limits come up

Common reasons to compress an image

Online forms

Application, exam and government portals often cap photo and signature uploads at a fixed size such as 20 KB, 50 KB or 100 KB.

Email & chat

Smaller images send faster and stay under attachment limits.

Websites

Lighter images make pages load faster, which helps both visitors and search rankings.

Quick answer Updated November 2026

How do I compress an image to a specific size in KB?

Open FZ-Tools Compress Image, set the target size (for example 20 KB, 50 KB or 100 KB), add your JPG, PNG, WEBP or HEIC images and download JPGs that fit; it lowers quality first and only shrinks the dimensions if it has to.

  1. 01Set the target size and choose JPG or WEBP.
  2. 02Add your images (JPG, PNG, WEBP, GIF, BMP or HEIC).
  3. 03Download each compressed image or use Download all.
About this tool

How the image compressor reaches an exact size

JPG and WEBP sizes depend on the encoding quality and on the number of pixels. The tool encodes your image repeatedly and uses a binary search to find the highest quality that stays under your target. Only when the quality would fall low enough to look blocky does it scale the image down, then it searches again at the new size. That way you always get the sharpest result the limit allows.

iPhone HEIC photos are converted and compressed in one step, and transparent PNG areas are filled with white when saving as JPG. If you need a different format without a size limit, use the Image Converter; to cut out a background first, try Remove Background.

FAQ

Compress image to a size — FAQ

Common questions about this tool.

How do I compress an image to a specific size in KB? +
Choose the target size (for example 50 KB), add your image and click Compress. The tool searches for the highest quality that stays under the target and only reduces the dimensions if quality alone is not enough.
Which formats can I compress? +
You can add JPG, PNG, WEBP, GIF, BMP and HEIC images. The result is saved as JPG (best for photos) or WEBP.
Are my images uploaded to a server? +
No. Images are compressed inside your browser, so they never leave your device.
How does the tool hit an exact size? +
It encodes the image repeatedly, searching for the highest quality that stays under your target. If even a low quality is too big, it reduces the width and height step by step and searches again.
What if the target is too small? +
You get the smallest file the tool could make, clearly marked as over the target, so you can try a slightly larger limit.