JPG PNG WEBP

Image Compressor

Shrink JPG, PNG, or WebP file sizes right in your browser — nothing is uploaded. Mix formats in one batch; each file is re-encoded in its own format, not converted to a different one.

Drop JPG, PNG, or WebP files here, or click to browse
Your files are processed in your browser and are never uploaded to a server.

How it works

  1. Drop one or more JPG, PNG, or WebP files into the box above, or click to browse your device.
  2. Adjust the quality slider if your batch includes JPG or WebP files, then click "Compress".
  3. Check the before/after size shown next to each file, then download individually or as a ZIP.

About this tool — and an honest note on PNG

JPG and WebP are lossy formats — re-encoding them at a lower quality genuinely shrinks the file, and the quality slider controls that trade-off directly. Both keep the same format in and out: a JPG stays a JPG, a WebP stays a WebP.

PNG is different, and we won't pretend otherwise. PNG is a lossless format with no quality setting — there's no lever in the browser's built-in encoder to trade quality for size, the way JPG and WebP have. Re-encoding a PNG through this tool mostly just strips incidental metadata; it will not meaningfully shrink most PNGs, and occasionally the result can come out the same size or slightly larger. Real PNG size reduction needs a dedicated optimizer (palette reduction, smarter filtering) that isn't part of this browser-only build. If a PNG's file size genuinely matters and it doesn't need transparency, converting it to JPG or WebP with our PNG to JPG or PNG to WebP converter will get you a real size reduction — WebP if you still need transparency, JPG if you don't.

AVIF files aren't accepted here for the same reason they're not offered as a conversion target elsewhere on this site: no current browser can re-encode AVIF through the canvas API, only decode it.

Frequently asked questions

Why didn't my PNG get smaller?

PNG is lossless and the browser's built-in PNG encoder has no quality setting to trade away — re-encoding mostly just strips metadata, which often isn't much. See the note above for why, and consider converting to JPG or WebP if file size matters more than pixel-perfect lossless quality.

What quality setting should I use for JPG/WebP?

75% is a reasonable default for general use. Go higher (85-95%) for images you'll edit further, or lower (40-60%) for thumbnails and previews where file size matters more than fine detail.

Can I compress a mix of JPG, PNG, and WebP in one batch?

Yes. Each file is re-encoded in its own format — the quality slider only affects the JPG and WebP files in the batch, since PNG has no quality setting.

Is there a file size or file count limit?

Each file must be under 25MB, and you can process up to 40 files in one batch, since everything runs in your browser's memory rather than on a server.

Related tools