Image Compressor

Upload an image and recompress it as JPEG or WebP with an adjustable 0-100 quality slider. See the before and after file sizes side by side, along with the compression percentage, and optionally cap the maximum width or height before recompressing to shrink it even further.

PrivateFreeWorks offline

Reviewed by Vincenzo Manto, Founder & Lead Developer · Last updated September 27, 2026

How it works

  1. 1

    Upload the image you want to shrink.

  2. 2

    Choose JPEG or WebP output and drag the quality slider.

  3. 3

    Optionally enable resizing and set a max width/height to shrink it further.

  4. 4

    Compare the before/after file sizes and download the compressed result.

See the trade-off instead of guessing

Most compression happens blind: you export at some quality percentage and hope for the best. This tool computes the compressed file in the background as you move the slider, so the before/after sizes and the compression percentage update immediately, letting you dial in exactly the balance of size and quality you need.

Two levers: quality and dimensions

For images destined for the web, resizing to a sane maximum dimension often saves far more than tweaking quality alone. This tool lets you combine both, shrinking the pixel dimensions and then applying lossy compression on top, so a 4000px camera photo can become a compact web-ready asset in one pass.

Frequently asked questions

How much can I shrink an image without visible quality loss?

It depends on the image, but JPEG and WebP at 70-85% quality typically cut file size by 50-80% with minimal visible difference for photographs. Watch the live before/after comparison to find the sweet spot for your specific image.

What's the difference between compressing to JPEG vs WebP?

WebP generally achieves smaller file sizes than JPEG at the same visual quality, and supports both lossy and lossless modes, but JPEG has broader compatibility with older software. Try both and compare the resulting sizes directly.

Does resizing happen before or after compression?

Before. If you enable the resize option, the image is first scaled down (preserving its aspect ratio) to fit your max width/height, and only then re-encoded at your chosen quality. That compounds the size savings from both steps.

Is my image uploaded to a compression server?

No. Both the optional resize and the quality-based recompression run through the Canvas API in your browser, so nothing is uploaded anywhere.

Why would the compressed file be larger than the original?

If the original was already a highly optimized JPEG/WebP and you pick a high quality setting, or the original was PNG and had few colors, the recompressed version can occasionally come out slightly larger. The live comparison shows this so you can adjust the quality slider down.

Related tools