Image Compressor – Compress to 20KB, 50KB, 100KB or 200KB

Compress an image online to a target file size such as 20KB, 50KB, 100KB, 200KB or 2MB, or pick a quality level and watch the size change live. Free, and your files never leave your browser.

100% client-sideYour files stay in your browser.

How to use Image Compressor

  1. Drop an image onto the tool, or choose one from your device.
  2. Choose Target size and tap 20 KB, 30 KB, 50 KB, 100 KB, 150 KB, 200 KB or 2 MB, or type your own number. Or stay on Quality and drag the slider.
  3. Pick JPG or WebP as the output format.
  4. Check the before and after preview and the new file size, then download the compressed image.

Features

  • Target size mode: compress an image to under 20 KB, 30 KB, 50 KB, 100 KB, 150 KB, 200 KB, 2 MB or any size you type
  • Quality mode with a live file size, so you see the result as you move the slider
  • Side-by-side before and after preview
  • JPG or WebP output (WebP where your browser supports it)
  • Shows original size, compressed size and the percentage saved
  • Processed locally with HTML5 Canvas — nothing is uploaded

What can you use the image compressor for?

Large photos slow down websites, fill up storage and get rejected by upload forms. This image compressor re-encodes a picture so the file is smaller while it still looks sharp at normal viewing size. It runs on your browser's built-in Canvas, so nothing is uploaded and it is safe to use with ID photos, scans and other private images.

  • Getting a photo or signature under the size limit of an application, exam or government form.
  • Shrinking product photos before uploading them to an online store or marketplace.
  • Getting a blog or portfolio image under a host's upload limit.
  • Fitting photos into an email that has a strict attachment cap.
  • Reducing page weight to improve load speed and Core Web Vitals.

Image compressor to 20KB, 30KB, 50KB, 100KB, 150KB, 200KB or 2MB

Switch to Target size and choose how small the file must be. The tool tries quality levels until it finds the highest quality that still fits under your target, so the result is usually close to the number you asked for rather than far below it.

  • Image compressor to 20KB or 30KB: suits small photos, signatures and thumbnails. A large phone photo cannot reach this size by quality alone, so the tool also reduces its pixel size and tells you the new dimensions.
  • Image compress to 50KB: a common limit for profile pictures and ID-style photos. A small photo, a few hundred pixels across, often fits with little visible change.
  • Image compressor to 100KB, 150KB or 200KB: comfortable for most form uploads and web images. Many photos get there by lowering the quality alone; a very large photo may also be reduced in pixel size.
  • Image compressor to 2MB: useful when a portal rejects a full-size phone photo. Most photos only need a gentle quality reduction to get under 2 MB.

Tips for better results

  • Start around 70–80% quality in Quality mode — most photos show no visible difference until you drop below that.
  • For a very small target such as 20 KB, resize the image first with the Image Resizer. A smaller picture compresses to a smaller file with less visible damage than a big one squeezed hard.
  • Choose WebP when the site accepts it — at the same quality it is usually smaller than JPG.
  • Compress a copy, not your only copy of the original.
  • Photos with lots of fine detail (foliage, fabric, noise) compress less cleanly than flat, simple images.

Frequently asked questions

Is the image compressor free to use?

Yes, compressing images is completely free with no signup required.

How do I use the image compressor to get an image to 20KB, 30KB or 50KB?

Open the tool, add your image, switch to Target size and tap 20 KB, 30 KB or 50 KB. The tool finds the highest quality that fits under that size. If the quality alone cannot get a large photo that small, it also reduces the pixel size and shows you the new dimensions.

How do I use the image compressor to 100KB, 150KB or 200KB?

Choose Target size and tap 100 KB, 150 KB or 200 KB, or type your own number. Many photos reach these sizes by lowering the quality alone. A very large photo may also be reduced in pixel size, and the tool shows the new dimensions.

Can I use an image compressor to 2MB?

Yes. Tap 2 MB in Target size mode, or type 2 and choose MB. If your image is already under 2 MB, the tool says so and leaves it unchanged.

Will the file be exactly the size I choose?

It will be under the size you choose, not exactly equal to it. The tool uses the highest quality that fits, so the result normally lands close to the target, but the exact number depends on the picture.

Why did my image get smaller in pixels too?

Very small targets, such as 20 KB for a large photo, cannot be reached by lowering quality alone without making the picture look badly damaged. In that case the tool reduces the width and height as well and shows the new size. Use a larger target if you want to keep the original dimensions.

Does this tool upload my images to a server?

No. Images are compressed locally in your browser using HTML5 Canvas — nothing is uploaded.

Which image formats are supported?

You can open most common image formats, such as JPG, PNG and WebP, and download the result as a JPG or WebP. An animated GIF is saved as a single still image.

Why is my compressed file bigger than the original?

Images that are already heavily optimized, and PNG screenshots with flat colors, can grow when re-encoded as JPG. If the tool shows a larger result, keep the original or try a lower quality or a target size.

Does compressing remove photo metadata?

Yes. Re-encoding through a canvas does not keep EXIF data such as camera model or GPS location, so the compressed copy is also safer to share. The image still displays in the correct orientation.

Learn more