Skip to content

Free Online Image Compressor

Reduce image file sizes directly in your browser while keeping control over image quality.

Runs entirely in your browser. Nothing is uploaded.

Drop an image to compress

JPG, PNG or WebP · up to 40 MB · stays on this device

Step by step

How to use the Image Compressor

  1. 1

    Drop a JPG, PNG or WebP image onto the upload area, or click to choose a file.

  2. 2

    Pick an output format. JPEG and WebP support a quality setting; PNG is re-encoded losslessly.

  3. 3

    Move the quality slider and watch the new size and percentage change update.

  4. 4

    Compare the original and compressed previews side by side.

  5. 5

    Download the result, or reset to start with another image.

What it does well

Honest size reporting

You see the exact byte size before and after, and a warning if the new file is larger than the original.

Adjustable quality

A 1 to 100 quality control for JPEG and WebP lets you trade detail for size in small steps.

Visible output format

The real MIME type of the exported file is shown, not just a filename extension.

Transparency awareness

When a PNG or WebP with transparency is exported to JPEG, transparent areas are filled with a color you choose.

Local processing

Encoding uses the canvas engine in your browser. The image is never uploaded.

Who uses it

Bloggers and site owners
Bring hero images under a size budget so pages load faster on mobile connections.
Job and visa applicants
Meet upload limits such as 200 KB or 1 MB on government and recruitment portals.
Online sellers
Lighten product photos before listing them on marketplaces with strict per-file limits.
Email senders
Shrink screenshots and phone photos so attachments are not rejected by mail servers.

How browser-based image compression works

When you add an image, your browser decodes it into raw pixels and draws them onto an off-screen canvas. The canvas is then re-encoded to the format you pick. JPEG and WebP are lossy formats: the quality value tells the encoder how aggressively it may discard fine detail the eye is unlikely to notice. Around 70 to 85 is a sensible range for photographs, and values below 50 usually introduce visible blocking or smearing.

PNG is lossless, so the browser has no quality dial for it. Re-encoding a PNG may produce a smaller or a larger file depending on how the original was saved. If you need a much smaller file from a PNG photo, exporting to WebP or JPEG is usually far more effective.

Limitations worth knowing

Compression is not guaranteed to make every file smaller. An image that was already optimized by a camera or another tool can grow when re-encoded, and this tool tells you when that happens instead of hiding it. Re-encoding also removes most metadata such as EXIF camera details and GPS location, which is often a privacy benefit. Animated GIF or WebP files are flattened to their first frame. Very large images, roughly above 40 megapixels, may exceed the canvas limits of some mobile browsers.

Frequently asked questions

Are my images uploaded anywhere?

No. Decoding, compression and download all happen in your browser tab. You can disconnect from the internet after the page loads and the compressor still works.

Why is my compressed file larger than the original?

The source was probably already well optimized, or you exported a lossy photo to lossless PNG. Try a lower quality value or the WebP format.

Does compression keep transparency?

PNG and WebP output keep transparency. JPEG does not support it, so transparent pixels are filled with the background color you choose.

Which quality setting should I use?

For photos, 75 to 85 is usually indistinguishable from the original at normal viewing size. Use lower values only when you must hit a strict size limit.

Related tools