Image Compressor — Compress JPEG, PNG & WebP

Shrink photos and graphics by 50–90% without visible quality loss. Batch-compress, convert to WebP or AVIF, resize and download everything as a ZIP — your images never leave your device.

Runs in your browser

Choose images or drag & drop them here

JPEG, PNG, WebP, GIF, AVIF · select many at once · or paste with Ctrl+V

WebP is usually the smallest format every modern browser can display.
For JPEG, WebP and AVIF. 70–85 is the sweet spot for photos.
Fewer colours = smaller PNG.
Your compressed images, savings and a before/after comparison will appear here.

Your data never leaves your computer. All processing happens 100% locally in your browser.

How to use the Image Compressor

  1. Drop one or more images onto the box (or click to choose, or paste a screenshot). Nothing is uploaded — compression runs in your browser.
  2. Pick an output format: keep the original, or convert to WebP for the best size-to-quality ratio.
  3. Adjust quality (around 75–80 works for most photos) and optionally set a max width — e.g. 1920 px for full-width hero images.
  4. Check the savings per file and drag the before/after divider to confirm there is no visible loss.
  5. Download files one by one or click Download all (ZIP).

What is an image compressor?

An image compressor re-encodes a picture so the file takes fewer bytes while looking (almost) the same. Images are typically the heaviest part of a web page, so compressing them is one of the quickest ways to improve load time and Core Web Vitals such as Largest Contentful Paint (LCP). This tool decodes each image, optionally scales it down, and re-encodes it with your chosen format and quality — entirely in your browser using the Canvas API, so private photos never touch a server.

How the compression works

  • JPEG, WebP and AVIF are lossy: the quality slider controls how much fine detail the encoder throws away. Dropping from 100 to about 80 usually removes a large share of the bytes with no difference visible at normal viewing size.
  • PNG is lossless, so a quality setting does nothing. Instead, the tool reduces the image to a palette of at most 256 colours (8-bit PNG) using median-cut quantisation with optional Floyd–Steinberg dithering — the same idea behind tools like pngquant and TinyPNG. Screenshots, logos and illustrations often shrink by 60–80% this way while keeping transparency.
  • Resizing is often the biggest win: a 4000 px phone photo displayed in an 800 px column wastes most of its pixels. Set a max width/height and the image is downscaled with high-quality resampling.
  • Metadata is removed. Re-encoding drops EXIF data such as camera model and GPS location — good for privacy and a few extra kilobytes. Orientation is applied first, so portrait photos stay upright.

Which format should I choose?

FormatBest forTransparencyNotes
WebPPhotos and graphics on the webYesSupported by all current browsers; Google reports lossy WebP files are 25–34% smaller than comparable JPEGs.
AVIFPhotos where every KB countsYesOften smaller than WebP, slower to encode. Shown only if your browser can encode it.
JPEGPhotos, email, maximum compatibilityNoTransparent areas are filled with the colour you pick.
PNGLogos, UI screenshots, sharp textYesUse the colour reduction for big savings; avoid PNG for photos.

Tips for web images

Export hero images at no more than about 2× their displayed width (for example 1600–2400 px for a full-width banner), use WebP with quality 75–82, and always set width and height attributes in your HTML to avoid layout shift. Need exact dimensions or a social-media crop? Use the Image Resizer. For tiny icons, inlining with the Image to Base64 converter can save a request. If you build in Webflow, note that it can generate responsive variants and WebP for you, but a well-compressed source still uploads and processes faster.

Tools that pair well with the Image Compressor

  • OG Image Generator — Create a polished link-preview image for Facebook, LinkedIn, X, Slack and WhatsApp in seconds — pick a template, type your title, add a logo, then download the PNG and matching meta tags.
  • Image Alt Checker — Audit every image on a page in one table: alt text status, file size, width/height attributes, format and lazy loading — with filters and CSV export.
  • Favicon Generator — Make a complete favicon package from a logo, a letter or an emoji: a multi-size favicon.ico, Apple touch icon, Android/PWA icons, a Webflow webclip, the web manifest and the HTML tags to paste.
  • QR Code Generator — Generate a QR code for a link, Wi-Fi login, contact card, email, phone number or SMS.

Frequently asked questions

Are my images uploaded to a server?
No. Decoding, resizing and encoding all happen locally in your browser with the Canvas API. You can even disconnect from the internet after the page loads and the compressor keeps working.
What quality setting should I use?
For photos, 75–85 is a good balance for JPEG and WebP; go down to around 60 for thumbnails. Use the before/after view at 100% zoom to check — if you can’t see a difference, try a lower value.
Why did my PNG get bigger or barely change?
In lossless mode PNG cannot discard detail, and a browser’s PNG encoder may be less optimised than the tool that made your file. Choose 256 colours (or fewer) for real savings, or convert photos to WebP or JPEG. With “keep the original” enabled you never get a larger file in the same format.
Does compressing remove EXIF and GPS data?
Yes. The re-encoded file contains only pixel data, so camera details and GPS coordinates are stripped. The EXIF orientation is applied to the pixels first, so the photo still displays the right way up.
How many images can I compress at once?
There is no fixed limit — files are processed one after another. Very large batches of high-resolution photos are limited only by your device’s memory.
Is WebP better than JPEG?
For the web, usually yes: at similar visual quality WebP files are noticeably smaller and support transparency. Keep JPEG when a file must open in older software or be attached to email.

Related tools