Image Compressor

Compress and resize JPEG, PNG, and WebP images — entirely in your browser

Drag & drop an image, or click to upload

JPEG, PNG, or WebP

About this tool

The Image Compressor shrinks JPEG, PNG, and WebP images directly in your browser using the Canvas API — no upload, no server round-trip, no waiting on a queue. Drop in an image, pick an output format and quality level, and optionally cap the maximum width or height, and you get a compressed file with a live before/after size comparison. This is the same core operation tools like TinyPNG or Squoosh perform, but entirely client-side: the image is decoded into a canvas, re-encoded at your chosen quality, and never transmitted anywhere. That matters for screenshots containing sensitive data, unreleased product images, or any asset you'd rather not hand to a third-party server. Converting between formats is also supported — compress a PNG down to WebP for smaller file size, or force JPEG output when you need broad compatibility and don't need transparency.

When to use it

  • Shrinking screenshots and product images before adding them to a blog post or PR description
  • Converting PNG screenshots to WebP for smaller page weight without a build step
  • Resizing oversized camera photos down to a sane max width before uploading
  • Compressing images for email attachments that have strict size limits

Tips

  • WebP typically gives the smallest file size at equivalent visual quality — use it unless you specifically need JPEG or PNG compatibility.
  • PNG output ignores the quality slider since PNG compression is lossless; use JPEG or WebP if you need to trade quality for size.
  • Setting a max width/height resizes proportionally — you don't need to know the exact target dimensions, just the upper bound.

Frequently asked questions

Does compressing an image reduce its dimensions?

Not unless you set a max width or height. By default, compression only reduces file size by re-encoding at a lower quality — the pixel dimensions stay the same. Use the max width/height option if you also want to downscale.

Why is my PNG still large after compression?

PNG is a lossless format, so the quality slider has no effect on it. If you need a smaller file, convert to WebP or JPEG — both support lossy compression and will typically produce a much smaller file for photographic content.

Is my image uploaded anywhere?

No. The entire compression process happens in your browser using the HTML Canvas API. Your image file never leaves your device or gets sent to any server.

Related tools

🥷 ToolNinja