← All Tools

Image Compressor🔒 100% local

Compress PNG/JPEG/WebP images entirely in your browser with quality control, resize and format conversion. No uploads — privacy-first.

Compress an image

Runs 100% in your browser. Optional max-width resize, JPEG/WebP/PNG output.

Related Tools

Media CompressorFavicon ResizerColor Palette Extractor

Re-encodes the image you pick by drawing it onto a canvas at the size you ask for and reading the canvas back out in your chosen format, then reports the before and after byte counts. The file is read straight from disk into the page with URL.createObjectURL, so a photo carrying GPS in its EXIF data is not handed to anyone's server to have it stripped. JPEG output is painted onto a white background first, which is what removes transparency.

How to use it

  1. Choose a PNG, JPEG, WebP or GIF with the file input.
  2. Set the quality slider, type an optional maximum width (0 keeps the original size) and pick the output format.
  3. Press Compress, compare the reported sizes and dimensions, then use Download compressed image.

Worked example

A 3024 x 4032 photo, max width 1920, JPEG at 70%becomesCanvas resized to 1920 x 2560 px, encoded as image/jpeg at quality 0.7.

The pixel geometry is deterministic: scale = 1920 / 3024 = 0.63492, so height = round(4032 x 0.63492) = 2560. The compressed byte count is not predicted anywhere in the page - it depends on the browser's encoder and the picture, and the tool prints the real numbers after the encode.

When to use it

What it does not do