Skip to content
cosmodev ~/tools/image-compressor

Сжатие изображений

Images & Media

Уменьшайте размер изображений полностью в вашем браузере — фиксированное качество или автоматическая подгонка под целевой размер, необязательное ограничение максимальной стороны, пакетная обработка. Ничего не загружается.

Выберите изображение, чтобы увидеть сжатый размер.

(Документация на английском)

Image Compressor

What it does

Re-encodes images locally to shrink their file size, two ways: a fixed quality slider, or a size budget — give it a KB target per image and it binary-searches the quality until the output fits. An optional max-dimension resize handles oversized photos in the same pass. JPEG and WebP sources keep their format; PNG sources re-encode as WebP (the lossy pipeline that makes compression possible). Batch supported, with a total-saved summary.

Your images never leave the page — that is the difference from online compressors, which upload every file you give them.

How to use

  1. Drop one or more images.
  2. Choose the mode: fixed quality, or a target size in KB.
  3. Optionally cap the longest dimension (0 keeps the original size).
  4. Press Compress, review the per-image savings, and save.

Examples

A 4.1 MB phone photo compressed at quality 75 typically lands near 600–900 KB (−80% or so); the summary line reports the exact total.

Target mode on the same photo with a 200 KB budget finds the highest quality that fits — usually around q55–q65 — and reports the quality it chose.

Good to know

  • Already-optimized files (small WebPs) may grow slightly; the delta turns red to tell you before you save.
  • PNG sources become WebP because PNG’s lossless pipeline cannot hit aggressive size targets.
  • The max-dimension resize is part of the same re-encode — no double compression pass.
Исходный код14 языков

100% на стороне клиента · ваши данные никогда не покидают ваш браузер. Нашли это полезным? Поделитесь с коллегой.