Image compressor

Compress an image in your browser

Choose a JPG, PNG or WebP file, set a size target or a quality level, and download a real, re-encoded image. Everything happens on this device.

Processed in this browser tab — nothing is uploaded, stored or logged.

Short answer: choose a photo, set a target size in KB (or a quality level) and compress. Everything runs inside this tab — the image is never uploaded — and the result panel shows the exact bytes and dimensions that were produced.

How compression works here

  1. Add one image. The tool checks the file signature, not just the extension.
  2. Optionally type a target in KB and pick a maximum dimension.
  3. Choose the output format. Keeping the input format usually gives the best result.
  4. Press Compress image. The browser re-encodes it and measures the real output size.
  5. Download the file. The reported size is the byte count of the file you receive.

What it can and cannot do

Questions

Does compressing an image here upload it anywhere?

No. The file is read with the browser File API, decoded to a canvas and re-encoded in the tab. There is no upload endpoint on this site; you can disconnect the network after the page loads and still compress.

Why does a PNG barely get smaller?

PNG is a lossless format, so the only ways to shrink it are fewer pixels or a palette/compression change. For photographic content, exporting as JPEG or WebP is what actually reduces size. The output format selector lets you switch.

Is my image uploaded to a server?

No. The image is decoded and re-encoded by your own browser. There is no upload endpoint and no file is stored. You can confirm this in the browser network panel.

Why can the target size sometimes not be reached?

Compression trades size against quality and resolution. The tool makes a bounded number of attempts and stops at a quality floor. When it cannot reach your target it says “Closest possible” and shows the real resulting size instead of claiming success.

Does compression remove EXIF data?

Yes. Re-encoding through a canvas drops EXIF metadata, including GPS location and camera details. The image is drawn with its orientation applied first, so it will not appear rotated.

What happens to transparent PNGs?

PNG and WebP keep transparency. If you choose JPEG output, transparency has to be flattened onto a background colour and the tool tells you before you convert.

How large can my image be?

Up to 25 MB per file and 40 megapixels after decoding. Those limits keep a mid-range phone responsive; larger files are rejected with a clear message rather than freezing the tab.

Related tools