GoogleChromeLabs/squoosh — GitHub Repository Preview
Developer Tools ★ 24.9k TypeScript

GoogleChromeLabs/squoosh

by @GoogleChromeLabs ·

24.9k Stars
1.9k Forks
150 Issues
TypeScript Language

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.

GoogleChromeLabs
@GoogleChromeLabs Project maintainer on GitHub
View Profile
View on GitHub
git clone https://github.com/GoogleChromeLabs/squoosh.git

Quick Start Example

bash
# 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

Tags

#image-compression#webp#avif#browser#privacy#google

Related Projects