Image Optimization Savings Calculator
See how many bytes you save per page and per month by compressing or converting images to a modern format like WebP or AVIF, plus the bandwidth cut.
How it works
Saved/page KB = image KB × reduction% · Saved GB = saved KB × views ÷ 1024² · Cost saved = GB × $/GB
Images are usually the heaviest part of a page, so compressing them or switching to a modern format is the biggest single win for both speed and bandwidth cost. Multiply the image bytes on a typical page by the percentage you expect to shave, then scale by monthly views to get the total data saved. Modern formats help a lot: WebP typically trims 25–35% off a JPEG at equal quality, and AVIF often halves it, on top of any gains from resizing images to the dimensions they actually display at.
Worked example
A page carrying 1,500 KB of images compressed 60% saves 900 KB each, leaving 600 KB. Over 200,000 monthly views that is 900 × 200,000 ÷ 1,048,576 ≈ 172 GB saved; at $0.08/GB that is about $14 a month, plus faster loads for every visitor.
Frequently asked questions
WebP or AVIF?
AVIF usually compresses smaller than WebP at the same quality and supports HDR, but encodes slower and has slightly less universal support. A common approach is to serve AVIF with a WebP fallback and a JPEG/PNG fallback, letting the browser pick the smallest format it understands.
Does resizing matter as much as format?
Often more. Serving a 3000-pixel photo into a 600-pixel slot wastes most of the bytes regardless of format. Resize to the displayed dimensions (times the device pixel ratio) first, then compress or convert — the two savings multiply.
Will compression hurt quality?
At sensible quality settings the difference is invisible to visitors while the byte savings are large. Lossy formats at quality ~75–80, or AVIF/WebP near-lossless, typically look identical on screen; always spot-check a few real images rather than trusting the number blindly.
Related calculators
This calculator is for educational purposes. Double-check important results before acting on them.