Image Compressor

Shrink a JPEG, PNG or WebP in the browser.

About Image Compressor

An image compressor that shrinks a JPEG, PNG or WebP in your browser. Pick the output format, quality and maximum size, compare file sizes and download.

How to use

  1. Choose an image or drop it on the page, up to 10 MB.
  2. Pick the output format (it defaults to the input's), move the quality slider and set the longest side. The image is recompressed as you change them, and the Original, Compressed and Saved figures update.
  3. Compare the two previews and click Download. The file is saved as <name>-compressed.jpg, .png or .webp.

Options

  • Quality: 10% to 100% in 5% steps, default 80%. Lower is smaller; around 70 to 85% is usually hard to tell from the original.
  • Longest side: default 1920 px, from 16 to 8192. Images larger than this are scaled down proportionally; smaller images are never enlarged.
  • Output format: JPEG, PNG or WebP. JPEG has no transparency, so transparent areas become white; PNG is lossless and ignores the quality setting. If the result is larger than the original, the page says so.
  • Metadata such as EXIF orientation, location and camera details is not copied to the output.

The tool does not batch-process folders or crop.

Example

photo.png · 4032×3024 · 8.4 MB
quality 80% · longest side 1920
→ photo-compressed.jpg · 1920×1440 · about 350 KB · saved 96%

The exact size depends on the picture's detail; smooth images compress further than noisy ones.

Privacy

Compression uses a canvas in the browser. The image is never uploaded, no request is made, and nothing is stored.

Frequently asked questions

What JPEG quality should I use for the web?
Between 70% and 85% is the usual range. Below 70% blocking and ringing artefacts become visible around edges, while above 85% the file grows quickly for little visible gain.
Does compressing an image reduce its quality?
JPEG is lossy, so some detail is discarded every time an image is encoded, and re-saving a JPEG repeatedly compounds the loss. Compress once from the best source you have, and keep the original.
Why is a PNG so much larger than a JPEG of the same photo?
PNG is lossless and stores every pixel exactly, which suits flat graphics and screenshots but not photographs full of fine gradation. JPEG discards detail the eye barely notices, so a photo is typically 5 to 10 times smaller as a JPEG.
Is it safe to compress private photos online?
Only with a tool that works locally. This one reads the file in your browser and never sends it to a server, and it also drops the EXIF metadata that can contain the location where a photo was taken.