Image Compressor

Shrink JPG, PNG and WebP images in your browser: adjustable quality, resize, WebP conversion, PNG color reduction, batch .zip, with a before/after slider.

About this tool

Photos from a phone or a screenshot can be several megabytes, which is too heavy for email, a web page, or an upload form with a size limit. This tool shrinks JPG, PNG and WebP images entirely in your browser: lower the quality, cap the pixel dimensions, switch to the smaller WebP format, or cut a PNG down to a limited color palette. A before/after slider shows exactly what each setting costs you, and you only download a file if it actually came out smaller.

How to use it

  1. Drop in one image or many (JPG, PNG or WebP). Each one appears in the list with its dimensions and size.
  2. Choose the output format. WebP is usually the smallest; keep the original format if the file must stay a JPG or PNG.
  3. Set the JPG/WebP quality, and optionally cap the largest side (for example 1600 px for a web page). For PNGs, reduce the number of colors for a real size drop.
  4. Click Compress and compare the sizes. Select any row to see the before/after slider, then download one file or all of them as a .zip.

FAQ

Are my images uploaded anywhere?

No. Each image is decoded, resized and re-encoded by your own browser using the canvas, and the result is built in memory on your device. Nothing is sent to a server, so private photos and screenshots never leave the tab.

What is the difference between lossy and lossless compression?

JPG and WebP at less than 100% quality are lossy: the encoder throws away detail the eye is least likely to notice, which is why they shrink so much. PNG is lossless, so every pixel is kept exactly and the file stays much larger. The quality slider only affects JPG and WebP output; PNG shrinks through color reduction instead.

Why does my PNG barely get smaller?

A browser can only re-save a PNG with every color intact, and that is already close to the smallest lossless form, so re-saving rarely helps. The real savings come from either converting the PNG to WebP (lossy or near-lossless, often much smaller) or reducing it to a palette of 256 or fewer colors, which is what this tool does with its PNG colors setting. Palette reduction works well for logos, screenshots and flat graphics, and can show banding on photographs.

Will compression remove EXIF data like location and camera info?

Yes. The image is redrawn from its pixels, so metadata such as GPS location, camera model and timestamps is not carried over. Any rotation stored in the EXIF orientation tag is applied to the pixels first, so the picture still looks the right way up. If you need to keep the metadata, keep the original file.

What happens if the compressed file is bigger than the original?

The tool shows the change and does not offer a download for that file, so you keep your original. This can happen with images that are already heavily compressed, tiny images, or when you convert a small JPG to PNG. Try a lower quality, a smaller largest side, or WebP output.

What happens to transparency?

PNG and WebP output keep transparent areas. JPG has no transparency, so when you choose JPG output the transparent areas are filled with white. If you need transparency, pick PNG or WebP.

Can I compress many images at once?

Yes. Add as many images as your browser memory allows and they are processed one after another with the same settings. Files that came out smaller can be downloaded individually or together as a single .zip.

Which browsers support WebP output?

Current versions of Chrome, Edge and Firefox can save WebP from the canvas. If your browser cannot, the tool says so and you can choose JPG or PNG instead. WebP images can be opened in all current browsers, but some older apps and email clients still do not display them.

Related tools

Guides & comparisons

← All tools · Blog · Cheat sheets · FAQ