Image Compressor

Every byte accounted for.

Processed entirely in your browser — nothing is uploaded
Drop images here, or browse your files JPEG, PNG, WebP, GIF, AVIF — batch as many as you like

About the Image Compressor

This tool shrinks the file size of JPEG, PNG, WebP, GIF and AVIF images by re-encoding them at a chosen quality level, optionally scaling down their dimensions or targeting an exact file size in kilobytes. It's built for anyone who needs smaller images fast — cutting a photo down for a web page, hitting an email attachment limit, prepping social media uploads, or trimming a folder of product photos before they go into a CMS.

To use it: drop one or more images onto the page (or click "Add images"), then pick a preset like Web — Balanced or Email — under 500KB, or dial in your own settings — output format, quality percentage, a max width/height, or a target file size. The compare slider lets you drag between the original and compressed version to check for visible quality loss before downloading. Use "Apply to all" to push the current settings across every image in the batch, then download one at a time or grab everything as a single ZIP.

Everything runs locally in your browser using the HTML canvas API — files are read, resized and re-encoded on your device and never uploaded anywhere, which is also why there's no server-side file size limit (only your browser's own memory).

Tips: WebP or AVIF usually gets a smaller file than JPEG at the same visual quality, but check the preview if you need older-browser compatibility. If you need a precise size (say, exactly under 2MB for an upload form), tick "Hit a target file size" instead of guessing a quality percentage.

Frequently asked questions

Does compression happen on my device, or are images uploaded to a server?

Everything happens locally in your browser. Images are decoded, resized and re-encoded on the canvas API right on your device — no file is ever sent over the network, so this works even on a spotty connection and nothing about your photos leaves your machine.

Is there a maximum image size or a limit on how many I can compress at once?

There's no hard cap on the number of images — add as many as you like and they queue up in the batch list. Each individual image is capped at roughly 40 megapixels (about 6,500 × 6,500 px) as a safeguard against freezing the tab; anything larger is skipped and flagged in the batch list rather than crashing the page.

What's the difference between JPEG, PNG, WebP and AVIF here?

JPEG suits ordinary photos and compresses well at mid-to-high quality. PNG is lossless and keeps transparency and sharp edges (screenshots, logos, icons) crisp, but doesn't shrink as much. WebP typically beats both at an equivalent visual quality, and AVIF compresses the hardest of all but isn't decodable in every browser or app yet — check your target platform before relying on it.

Can I undo compression and get back the original quality?

No — compressing to JPEG, WebP or AVIF is lossy, so detail lost during re-encoding can't be recovered from the compressed file. The tool never touches your original file on disk, though, so keep that original around if you might need a higher-quality version later.

How accurate is "Hit a target file size"?

It searches for a quality setting that lands at or under your target KB using a handful of trial encodes, so the result is usually very close to your target but not exact to the byte — very detailed images may land slightly under the target if quality can't be pushed low enough within a few tries.

Does compressing strip my photo's metadata, like camera info or GPS location?

Yes. The image is redrawn onto a fresh canvas and re-exported, which carries over the pixels but drops EXIF metadata such as camera model, capture date and GPS coordinates — except orientation, which is read once up front and baked into the output so photos don't come out sideways.