Toolbasekit
About Image Compression

Compress JPG, PNG, or WebP images to a smaller file size — right in your browser, with no upload and no size cap. Drop in a photo up to 25 MB and the tool re-encodes it on your own device, giving you back a smaller version in seconds. Perfect for getting past an email attachment limit, slipping under a government portal's 100 KB cap, speeding up a slow website, or saving space before you back up your photo library.

Four compression modes handle the common cases. **Auto** picks a sensible quality based on how large the source is — the right choice for everyday photos where you just want a smaller file. **Aggressive** maximises savings for cases where loading speed matters more than finest detail (web content, email attachments). **Custom** gives you the quality slider directly if you want to fine-tune. **Target size** is the mode most people actually need: type a specific number like 100 KB or 500 KB, and the tool automatically binary-searches for a quality setting that fits under your limit — if quality alone can't do it, it progressively reduces the width until the file squeezes in.

Everything runs on your own device using the browser's built-in image encoder, so there's no queue to wait in, no account to create, no hidden file size cap, no "premium" to upgrade to, and no watermark on the output. The compression is lossy for JPG and WebP (that's what makes them small) and lossless for PNG.

Why this runs on your device

The honest reason to compress images locally instead of on a server comes down to what people actually use these tools for. Most of the time it's a vacation snapshot that nobody will scrutinise. But the single most common real-world use of a "compress image to 100 KB" search is uploading a scanned Aadhaar card, PAN card, passport, driver's license, academic transcript, or digital signature to a government or application portal — documents you absolutely should not be handing to a random web service in exchange for a smaller copy of them, no matter how clean the UI looks. Speed is the other factor. Uploading 20 MB to a server so it can hand you back 200 KB is the slowest possible way to perform an operation that your own laptop finishes in about one second. On a weak network — which is exactly the kind of connection you're usually on when a file is too big to send in the first place — the upload will time out or stall before anything happens. Compressing locally sidesteps all of that: the processing starts immediately, the output appears without ever leaving your device, and the only limit is your own hardware.

How to use Image Compression
  1. Drop a JPG, PNG, or WebP image onto the page, or click to pick one. The file size can be up to 25 MB.
  2. Choose a compression mode: Auto for general use, Aggressive for maximum shrinking, Custom to drive the quality slider yourself, or Target Size to hit a specific KB number.
  3. Optionally change the output format (keep original, JPG, WebP) and cap the maximum width — reducing the width is often the single biggest file-size win for web content.
  4. Preview the before/after side by side to check that quality is still acceptable, then download the compressed file. The result is yours, no watermark, no account required.
Limitations and trade-offs
  • The compression uses the browser's built-in encoder, which is a general-purpose tool rather than a specialist. A dedicated pipeline built on MozJPEG, oxipng, or guetzli will typically reach a slightly smaller file at the same visual quality. For production web assets where every kilobyte matters, use a build-time optimiser (ImageOptim, Squoosh CLI, imagemin) instead. For form uploads and attachments, this tool is more than enough.
  • PNG files barely benefit from compression here, and can occasionally come out slightly larger than the input. PNG is already a lossless format with no quality dial to turn, and the browser's canvas-based decode-re-encode cycle doesn't know anything about the original's palette, bit depth, or filter strategy — an indexed-palette PNG comes back as full 32-bit RGBA. To genuinely shrink a PNG, resize its dimensions or convert the output to WebP or JPG (lossy formats can be dramatically smaller for photographic content).
  • All compression modes strip the file's metadata as a side effect of re-encoding through a canvas: EXIF data, GPS coordinates, camera make and model, capture date, ICC colour profiles, and XMP are all discarded. This is usually a privacy win, but if you need to preserve capture metadata (for archival, legal evidence, or wide-gamut colour accuracy), compress with a desktop tool that supports metadata-preserving encoding instead.
  • The tool processes one image at a time — there's no batch mode or ZIP output here. The file size cap is 25 MB per image, which comfortably covers phone photos and most DSLR output but will reject medium-format RAW conversions. The browser's encoder runs on the UI thread, so a very large image will briefly freeze the page while it works.
Frequently asked questions