Skip to content

Compress Image

Shrink JPG, PNG, WebP, and AVIF files in your browser.

How it works

  1. 1Drop one or more images into the workspace.
  2. 2Choose Light, Balanced, or Extreme and an output format.
  3. 3Compare the before/after preview and file size.
  4. 4Download the compressed file or a ZIP of the batch.

About

Compress images online without uploading them. StackImage re-encodes photos on your device so you can email, post, or archive smaller files without sending originals to a server.

Pick Light, Balanced, or Extreme, compare before and after, and download one file or a ZIP of a batch. Encoding uses MozJPEG, libwebp, libavif, and oxipng in WebAssembly — the same family of codecs as Squoosh. If the encode would be larger than the upload, we keep the original.

PNG stays lossless (oxipng). JPEG, WebP, and AVIF use quality levels (about 90 / 75 / 55). Images above 32 megapixels or 50 MB are rejected so the tab stays stable.

Common use cases

  • Shrink photos for email attachments
  • Prepare WebP or AVIF assets for a site
  • Batch-compress a folder of screenshots
  • Reduce camera originals before a chat upload

Why compress in the browser

Most “free compress image” sites upload the file, run a server encoder, and hand you a download. That is simple, and it means a copy of the photo sits on someone else’s disk — even briefly.

StackImage reads the file in your tab, re-encodes it there, and never opens an upload API. After the page loads, a flaky network does not stop the compress itself.

Quality levels and formats

Light keeps more detail. Balanced is the default for web and email. Extreme targets the smallest size and will show more artifacts on faces and text.

Stay on JPEG for photos you must hand to a system that rejects WebP. Prefer WebP or AVIF when the destination supports them — they usually beat JPEG at the same visual quality.

When not to use this tool

Do not use it as a print RIP or a RAW developer. It will not beat TinyPNG or a desktop encoder on every file, and it will refuse huge images so memory stays bounded.

Keep the original if you still need EXIF, or run Strip EXIF first. If the result is still too large for email, downscale with Resize Image, then compress again.

FAQ

Need a PDF?

Turn these photos into a private multi-page PDF in StackPDF — same no-upload model, in your browser.

Open StackPDF

Related tools