~/tools/image-compress

Image Compressor

Smart batch compression for multiple images with automatically best quality. Files never leave your device.

-q:v 3

$Drag images here (multiple allowed)

JPG / PNG / WebP — smart batch compression

Files never leave your device
JPGPNGWebP
01Drop your images

Images are read into browser memory — nothing is uploaded

02Adjust settings

Quality, scale, format or target size

03Download locally

Compressed and exported locally, with batch download

//Related Image ToolsAll tools

Compress Images Online

Local · No uploads

Batch-compress images in your browser. PNG files are reduced with color quantization for visually lossless results (comparable to TinyPNG), while JPG and WebP use quality adjustment — original dimensions, format, and EXIF orientation are preserved automatically. Compare before and after with a drag slider and scroll-to-zoom. Everything is processed locally; nothing is uploaded.

How to Compress an Image

  1. 1

    Drag in one or more images — batch upload supported

  2. 2

    Compress with one click: PNG quantization, JPG/WebP quality adjustment — dimensions and format preserved automatically

  3. 3

    Review each file's size change; click preview for a drag-to-compare slider with scroll zoom

  4. 4

    Download individually or grab everything as a zip

Common Uses

  • Optimize images for faster web page loading
  • Meet size limits on platforms and upload forms
  • Save storage space and bandwidth

Things to Keep in Mind

  • PNG quantization is visually lossless, but images with rich gradients may show slight banding
  • Over-compressed JPG shows visible artifacts
  • Batch processing large images uses browser memory

How to Choose an Image Compressor

  • vs. TinyPNG and other online tools: nothing is uploaded — private and secure — with the same PNG quantization, plus before/after comparison
  • vs. desktop image tools: nothing to install
  • Smart one-click compression by default; quality, scaling, and format controls in advanced settings

How Image Compression Works

  • PNG color quantization: the image's colors are reduced to 256 or fewer (median-cut algorithm) and stored as palette indexes. For UI screenshots and illustrations the result is visually identical at 50–80% smaller — the same core idea TinyPNG uses.
  • JPG takes another route: DCT transform plus quantization, discarding high-frequency detail the eye is least sensitive to. Lower quality settings discard more; photographic content is usually indistinguishable between quality 60 and 80.
  • WebP is the modern option: 25–35% smaller than JPG at the same quality, with PNG-style transparency support. It's the first choice when you need the smallest possible files.

Image Compression FAQ

Does compression change my image dimensions?

No. Original dimensions and format are preserved: PNG uses quantization (visually lossless) and JPG/WebP uses quality adjustment. To resize, use the scale option in advanced settings.

Can you compress PNG files?

Yes. PNG compression uses color quantization — visually near-lossless, typically 50–80% smaller, comparable to TinyPNG. For even smaller files, convert to WebP in advanced settings.

Can I compress multiple images at once?

Yes. Drag in as many images as you like, compress them in one click, and download individually or as a zip.

Will the image orientation change?

No. EXIF orientation is preserved, so photos taken in portrait mode stay portrait after compression.

Can I compare before and after?

Yes. Click preview to open a drag-to-compare view with scroll zoom and pan, so you can check the fine details for quality loss.

My image file is too big — how do I make it smaller?

One-click smart compression shrinks it substantially. To reduce pixel dimensions too, adjust the scale in advanced settings.