Image Compression Estimator
Estimate how much file size you'll save by converting images to WebP or AVIF. Enter your current image details to get projected savings, bandwidth reduction, and LCP improvement estimates based on real-world compression ratios.
✓ JPEG → WebP / AVIF estimates ✓ PNG → WebP / AVIF estimates ✓ Monthly bandwidth savings
Image Details
Estimated Savings by Format
🟢 WebP (lossy) Recommended
–
from — KB → — KB
~30% smaller than JPEG on average. Supported by all modern browsers.
🔵 AVIF (lossy) Best compression
–
from — KB → — KB
~50% smaller than JPEG. Chrome 85+, Firefox 93+, Safari 16+.
Monthly Bandwidth Savings
–
WebP saves / month
–
AVIF saves / month
HTML Implementation
<picture>
<source srcset="image.avif" type="image/avif">
<source srcset="image.webp" type="image/webp">
<img src="image.jpg" alt="..." width="..." height="..." loading="lazy">
</picture> The browser picks the first supported format. Always include the original as fallback.
Conversion Tools
- CLI:
cwebp -q 80 input.jpg -o output.webp·avifenc input.jpg output.avif - Node.js: sharp (npm) — converts and resizes on-the-fly
- CDN: Cloudflare Images, Cloudinary, Imgix — auto-convert via URL
- Next.js: next/image — automatic WebP/AVIF with lazy loading
- Astro: astro:assets Image component — automatic format optimization