Unoptimised images are the #1 cause of slow websites. A single 4 MB hero photo can add 8 seconds to your page load on mobile. Google penalises slow pages in search rankings. Here is how to compress every image on your site to under 100 KB — free, in your browser, with no quality loss visible to human eyes.
| Image Type | Target Size | How to Achieve |
|---|---|---|
| Hero / Banner image | Under 200 KB | 1920×1080 px JPEG at 75–80% quality usually hits 150–200 KB |
| Product photo | Under 100 KB | 800×800 px JPEG at 80% quality for e-commerce listings |
| Blog post image | Under 80 KB | 1200×630 px JPEG at 75% quality — ideal for featured images |
| Thumbnail / card | Under 30 KB | 400×300 px JPEG at 70% quality — used in grids and listings |
| Logo / icon (PNG) | Under 20 KB | Use PNG for transparency. Resize to exactly the display size needed. |
| Background texture | Under 50 KB | JPEG at 60% quality — barely visible compression, huge size saving |
✓ Resize before compressing
Never upload a 4000 px photo that displays at 800 px. Resize to 2× the display width first (for Retina), then compress.
✓ Use JPEG for photos, PNG for transparency
JPEG is 5–10× smaller for photos. PNG only for logos, UI screenshots, and images with transparency.
✓ Target under 100 KB per image
On a typical product page with 5 images, that is 500 KB total — well within the 1.5 MB page weight target.
✓ Use lazy loading
Add loading="lazy" to all images below the fold. The browser won't download them until the user scrolls down — cutting initial page load dramatically.
✓ Set explicit width and height
Always set width and height attributes on img tags. This prevents Cumulative Layout Shift (CLS) — a Core Web Vitals penalty.
For web performance, target under 100 KB per image. Hero images can be up to 200 KB. Product images: 50–100 KB. Blog thumbnails: 20–50 KB. In terms of dimensions, never upload larger than 2x the display size (for Retina screens). A 400 px wide thumbnail needs a maximum 800×600 px source image.
Yes, significantly. Google's Core Web Vitals include Largest Contentful Paint (LCP) and Cumulative Layout Shift (CLS), both affected by image weight. Pages with optimised images under 100 KB load faster, score higher in PageSpeed Insights, and rank better. Google explicitly recommends compressing images as one of the top site speed improvements.
Use JPEG for photos and complex images (natural scenes, people, products). JPEG achieves 5–10× smaller files than PNG for photos with minimal visible quality loss at 80% quality. Use PNG only for images with transparency, logos with flat colours, or screenshots with text — where PNG's lossless compression preserves sharpness.
WebP is Google's image format that is 25–35% smaller than JPEG at equivalent quality. All modern browsers support it. If your CMS or static site generator supports WebP output, use it. For manual compression, JPEG at 75–80% quality is a reliable choice that works everywhere.
A single unoptimised image can add 3–5 MB to a page load. Most web performance audits recommend keeping total page weight under 1.5 MB. If your page has 10 product images at 500 KB each, that is 5 MB — which causes a 5–15 second load time on a typical mobile connection.