Toolsite

Image Compressor – Shrink JPG & PNG in Your Browser

Shrink JPG, PNG and WebP images to a target file size without leaving your browser — nothing is uploaded, and results are ready in seconds.

Free plan: up to 5 files per batch · quality capped at 80% · watermark: none · sign-in for higher limits is coming soon

Drop files here

or click to browse · up to 12 MB per file

Files are processed entirely in your browser and are never uploaded to a server.

How the image compressor works

You pick a target size (for example 200 KB) and optionally a maximum dimension. The compressor re-encodes each image in your browser, lowering quality just enough to land under your target — the same trade-off every “export for web” dialog makes, except here it is automatic.

What happens to each image

  1. The image is decoded into memory (never uploaded).
  2. It is re-encoded with progressively lower quality until the result fits your target size.
  3. If you set a maximum width or height, oversized images are first scaled down proportionally — the single most effective way to cut file size.
  4. You download the result; the original stays untouched.

Choosing a target size

  • Email attachments — 200–500 KB per photo keeps a multi-image mail under the 25 MB limit.
  • Website images — 100–300 KB loads fast enough to satisfy Core Web Vitals on 4G.
  • Upload forms — many portals cap files at 1–2 MB, so compress to just under the limit.

Screenshots and graphics with flat colours compress better as PNG at reduced dimensions; photos compress best as JPG. The tool keeps each image’s original format so you always know what you get.

Typical results

  • iPhone photo 3.2 MB → 420 KB at a 500 KB target with no visible difference.
  • 4000×3000 photo → capped at 1920 px on the long edge, 3.2 MB → 280 KB — ideal for a blog post.
  • 8 MB scan → 1.9 MB at a 2 MB target for a portal that rejects anything larger.

Frequently asked questions

How does the image compressor work?

It re-encodes your image inside your browser using the canvas API. You set a target size in megabytes and the compressor searches for the best quality level that stays under it. Nothing is uploaded to any server.

Will compression reduce image quality?

Some. Compression trades a small amount of quality for a much smaller file, but for photos the difference is usually invisible at 200–500 KB targets. You can check the size saving shown in the result and adjust the target until it looks right.

Is my photo uploaded to a server?

No. The entire compression runs locally in your browser's memory. You can even disconnect from the internet after the page loads and it will still work.

What is the maximum file size?

Each image can be up to 12 MB, which covers photos from phones and most DSLR JPEGs. Compress in batches if you have larger files.

Which formats are supported?

JPG, PNG and WebP input and output. For photos, JPG usually gives the smallest file; PNG is best for screenshots and graphics with sharp edges.