← Blog · July 18, 2026 · 7 min read
Image Optimization for Faster Websites: A Practical Guide
Images are almost always the heaviest thing on a web page — and the number one reason pages load slowly. Google measures that slowness directly through Core Web Vitals and factors it into rankings, so image optimization isn't just about speed; it's about whether your pages get found at all. The good news: a handful of simple rules routinely cut image weight by 80% with no visible loss.
Rule 1: Pick the right format
For photographs on the web, use WebP — it's 25–35% smaller than JPG at the same quality and supported by every modern browser. For maximum savings, AVIF goes further still (often half the size of JPG). Keep PNG only for graphics that need transparency or pixel-exact edges. The one place plain JPG still wins is compatibility with old software and upload forms — not your own website. Convert with JPG to WebP or PNG to WebP (see our full format comparison).
Rule 2: Stop serving pixels nobody sees
This is the single biggest mistake: uploading a 4000-pixel-wide phone photo into a slot that displays at 800 pixels. The browser downloads all four thousand and throws three-quarters away. Resize images to roughly the size they'll actually display — 1600px wide is plenty for a full-width hero, 800px for a content image, 400px for a thumbnail. This alone often cuts file size by 75% before you compress a single byte.
Rule 3: Compress to a sensible target
After format and dimensions, compression is the finishing step. The image compressor lets you set a target file size and finds the best quality that fits. Sensible targets: under 200 KB for large hero images, under 100 KB for content images, under 50 KB for thumbnails. At 80–85% quality the difference from the original is invisible to the eye but dramatic on the scale.
The compounding effect
These rules multiply. A 6 MB phone photo → resized to display width (down to ~1.5 MB) → converted to WebP (~1 MB) → compressed to target (~150 KB). That's a 40× reduction on one image; across a page with a dozen images it's the difference between a page that loads in half a second and one that makes visitors leave. Every tool mentioned here runs free in your browser, so you can optimize a whole gallery without uploading anything or paying for a plugin.
Two extras that help
Add loading="lazy" to images below the fold so the browser only fetches them as the visitor scrolls, and always set explicit width and height attributes so the layout doesn't jump as images arrive (that jump is the "CLS" part of Core Web Vitals). Format, size and compression do the heavy lifting; these two make sure the browser uses your optimized images well.