Skip to content
cosmodev ~/tools/image-compressor

इमेज कंप्रेसर

Images & Media

इमेज फ़ाइलों का size पूरी तरह आपके browser में घटाएं — fixed quality या size budget के हिसाब से automatic fit, optional max-dimension resize और batch support। कुछ भी upload नहीं होता।

compressed साइज़ देखने के लिए एक image चुनें।

(Documentation in English)

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 languages

100% client-side · your data never leaves your browser. Found this useful? Share it with a teammate.