How to Compress Images for Websites Without Losing Quality
Complete guide to image compression for web. Reduce image file size by 60-80% while keeping images sharp and professional.
Why Image Optimisation Is Critical for Your Website
Images account for 50–75% of total web page weight on average. Google's Core Web Vitals — particularly Largest Contentful Paint (LCP) — are heavily influenced by image load times. A poorly optimised hero image can single-handedly drop your page from a "good" to "needs improvement" LCP score.
Real impact: Moving a 2.5MB hero image to 180KB improved LCP from 4.2 seconds to 1.1 seconds on a real e-commerce test — a change that directly affects Google rankings.
Choosing the Right Image Format
| Format | Best Use Case | Typical File Size vs PNG |
|---|---|---|
| JPEG | Photographs, complex gradients | 60–80% smaller |
| WebP | All web images (modern browsers) | 25–35% smaller than JPEG |
| PNG | Logos, screenshots, transparency needed | Baseline (lossless) |
| AVIF | Next-gen format, best compression | 40–50% smaller than WebP |
| SVG | Icons, simple graphics, logos | Vector — infinitely scalable |
| GIF | Simple animations (prefer WebP/video) | Large, avoid for new projects |
Recommendation for India traffic: Many users are on 3G and budget Android phones. Compressing to WebP at quality 75 and using lazy loading can cut page load time in half for these users.
Quality Settings: Finding the Sweet Spot
JPEG and WebP both use quality parameters from 1–100. Here's what each level actually means:
- Quality 90–100: Nearly indistinguishable from original. Typically 2–4× larger than quality 80. Use only for archival.
- Quality 80–85: Professional standard. Default for most use cases. Minimal visible difference.
- Quality 70–75: Excellent compression. Slightly noticeable only in flat-colour areas when zoomed in. Best for general web use.
- Quality 60–65: Visible compression in some images, especially smooth gradients. Use for thumbnails and secondary images.
- Quality below 50: Noticeable blocking artefacts. Only for tiny thumbnails.
Step-by-Step: Compress Images with Lazyblink
Correct Image Dimensions for Common Platforms
| Platform / Use | Recommended Size | Ideal Format |
|---|---|---|
| Website hero image | 1920×1080 px | WebP, quality 75 |
| Blog post featured image | 1200×630 px | WebP or JPEG, quality 80 |
| Product thumbnail | 400×400 px | WebP, quality 80 |
| WhatsApp DP | 500×500 px | JPEG, quality 85 |
| Instagram square | 1080×1080 px | JPEG, quality 90 |
| Instagram story/reel | 1080×1920 px | JPEG, quality 90 |
| LinkedIn profile | 400×400 px | JPEG, quality 90 |
| OG/social share image | 1200×630 px | JPEG, quality 85 |
Lazy Loading: Compress and Load Smarter
Image compression alone isn't enough. Combine it with:
``html

`
The loading="lazy"` attribute defers images below the fold until the user scrolls near them — reducing initial page load data by 30–60% on content-heavy pages.
Bulk Compression for E-commerce Sites
If you have hundreds of product images, Lazyblink Pro's batch mode processes up to 50 images simultaneously. For very large catalogues, consider:
- Squoosh CLI: Google's open-source command-line tool for bulk compression
- Sharp (Node.js): Programmatic image processing for server-side resizing
- Cloudinary: CDN that automatically serves optimal format and quality per device
Before Publishing: Image Optimisation Checklist
- [ ] File size under 200KB for hero images, under 50KB for thumbnails
- [ ] Correct dimensions — don't serve a 3000×2000px image in a 400×300px container
- [ ] Alt text added for accessibility and SEO
- [ ] WebP with JPEG fallback for broad browser support
- [ ] Lazy loading on all below-fold images
Frequently asked questions
JPEG vs WebP — which is better?
WebP is 25-35% smaller than JPEG at equal quality and is supported by all modern browsers.
Should I compress all images?
Yes, especially hero images, blog thumbnails, and product images. Icons and logos are usually already small.
Put this guide into practice with our free online tool — no signup required.
Open tool