Skip to main content
Preparing workspace

Image Compressor

Compress JPG, PNG and WebP images in your browser. Set a target size in KB, compare results, resume batches and download ready files as a ZIP.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

Image Compressor

Compress images instantly and reduce file size efficiently.

To compress an image, drop in JPG, PNG or WebP files and choose a quality level or target size in KB. Resize if needed, then compare the original and compressed images. Download completed files individually or together as a ZIP, even when a batch is still in progress. Compression runs on your device. Its sample photos load from images.unsplash.com; your own images stay in your browser.

How to use Image Compressor

  1. Add one or more images by uploading or dragging them in.

  2. Adjust the quality slider, or switch to Target size (KB) and enter a maximum size (and resize, if needed), then compare the before/after preview.

  3. Download the compressed image, or download the ready results together as a ZIP with a JSON report listing dimensions, exact bytes and target status.

Why use Image Compressor

  • Adjustable quality

    Adjust the quality slider, then compress again to see how the file size and preview change.

  • Compress to a target size

    Switch to Target size (KB), enter a limit such as 50 or 20 KB, and it tries up to eight JPEG or WebP quality levels and keeps the best one at or under your limit. If the limit cannot be met at that resolution, you can allow up to three smaller dimensions or keep the smallest file found at the current size.

  • Before/after comparison

    A slider overlay lets you compare the original and compressed image directly before downloading.

  • Batch processing

    Check output dimensions and actual bytes for every completed image. Retry only failed and above-target images, or download a ZIP with a per-file compliance report.

  • Runs in your browser

    Images are compressed on your device — nothing is uploaded to a server.

Pick the right format first

Changing format often saves more than lowering quality. These pages show by how much, measured on a sample photo and graphic.

Common use cases

  • Shrinking photos before uploading them to a website, form, or email attachment with a size limit
  • Batch-compressing a folder of product or blog images before publishing
  • Comparing quality settings side by side before committing to a file size

Frequently asked questions

How do I compress a photo to 50 KB or 20 KB for a form?

Choose JPEG or WebP, switch Compress by to Target size (KB), and enter the limit or pick 20, 50, 100, 200 or 500 KB. The result shows the size it reached and the quality used. If the photo cannot get under the limit at its current dimensions, it tells you the smallest size it managed — enable Reduce dimensions if needed and compress again. PNG cannot be targeted, because PNG is lossless and quality does not change its size. Sizes in this mode use 1 KB = 1,000 bytes, as upload forms count them, so a 50 KB target means at most 50,000 bytes.

Link to answer
Can the Image Compressor resize a photo to meet a file size limit?

Yes. Choose JPEG or WebP in Target size mode, then enable Reduce dimensions if needed. The compressor tries quality changes at the current dimensions first. If they do not fit, it tries up to three smaller sizes with the same proportions. The result shows its dimensions and actual file size, and tells you if it is still over the limit.

Link to answer
What are the default settings, and does the page load anything from other sites?

By default it saves WebP at quality 75 and keeps the original dimensions; resizing to fit within 1920 × 1080 stays off until you turn it on, and PNG output is lossless, so the quality setting does not apply to it. Your images are compressed on your device and never uploaded; only the sample thumbnails in the empty drop zone load from images.unsplash.com when the page opens.

Link to answer
Does compressing an image upload it to a server?

No — compression runs entirely in your browser using the Canvas API. Your images never leave your device.

Link to answer
Can I compress multiple images at once?

Yes. Add several images and select Compress all. The batch queue shows each result and any errors. You can download ready files as a ZIP at any time and use Compress remaining for pending or failed files.

Link to answer
Will compressing reduce image quality?

Some quality loss is expected with JPEG-style compression, but the adjustable quality slider and before/after comparison let you find the smallest file size that still looks right for your use case.

Link to answer
Is the Image Compressor free?

Yes, completely free with no signup and no limit on how many images you compress.

Link to answer
Can I resize an image while compressing it?

Yes — turn on the resize option to shrink the image's dimensions at the same time as compressing it.

Link to answer