Squoosh is a web-based image compression tool by Google Chrome Labs. Reduces image file sizes using best-in-class codecs right in the browser with zero server uploads. All processing happens client-side for maximum privacy. Supports multiple formats including WebP, AVIF, JPEG XL, and MozJPEG with real-time before/after comparisons and adjustable quality settings.
git clone https://github.com/GoogleChromeLabs/squoosh.git
# Use Squoosh CLI
npx @squoosh/cli --webp auto input.png
# Batch compress with quality
npx @squoosh/cli \
--mozjpeg '{"quality":75}' \
--resize '{"width":1200}' \
images/*.png
# Or visit squoosh.app in browser