Looking to resize a JPEG, PNG, or WebP image online to improve your website’s performance? Images are usually the heaviest resource on a web page: according to HTTP Archive, the median page loads about 1 MB of images, roughly a third of its total weight. Smart optimization can drastically reduce loading times, improve user experience, and boost your SEO.
Google penalizes slow sites in its rankings, and unoptimized images are often the main culprit. Whether you need to compress and resize an image for a blog, e-commerce store, or portfolio, every kilobyte counts for your Core Web Vitals.
Our image resizer allows you to change image dimensions for the web directly in your browser, without sending your files to a server. Discover in this guide how to optimize your visuals effectively.
Why Optimize Your Images?
Performance Impact
| Loading Time | Bounce Rate |
|---|---|
| 1-3 seconds | +32% |
| 1-5 seconds | +90% |
| 1-6 seconds | +106% |
| 1-10 seconds | +123% |
Source: Google/SOASTA (2017, mobile sites)
SEO Impact
Google uses Core Web Vitals for ranking. Unoptimized images directly affect:
- LCP (Largest Contentful Paint): The largest visible image
- CLS (Cumulative Layout Shift): Images without defined dimensions
The third metric, INP (Interaction to Next Paint), which replaced FID in March 2024, measures responsiveness to interactions: it depends mostly on JavaScript, much less on images.
Conversion Impact
According to Greg Linden, a former Amazon engineer (2006 presentation), internal A/B tests showed that every 100 ms of added latency cost 1% of sales. Every KB counts.
Choosing the Right Image Format
Reference Table
| Format | Use Case | Transparency | Animation | Compression |
|---|---|---|---|---|
| JPEG | Photos | No | No | Lossy |
| PNG | Logos, icons, text | Yes | Yes (APNG) | Lossless |
| WebP | Everything (modern) | Yes | Yes | Both |
| AVIF | Everything (very modern) | Yes | Yes | Both |
| SVG | Logos, icons, illustrations | Yes | Yes | Vector |
| GIF | Simple animations | Yes | Yes | Lossless |
WebP: The Versatile Format
WebP files are 25-34% smaller than JPEG at equivalent quality (according to Google), while supporting transparency.
<picture>
<source srcset="image.webp" type="image/webp">
<source srcset="image.jpg" type="image/jpeg">
<img src="image.jpg" alt="Description">
</picture>
Browser support: ~97% (all modern browsers)
AVIF: The Future of Compression
AVIF goes even further: often 50% smaller than JPEG for similar quality (the exact gain depends on the image and the settings).
<picture>
<source srcset="image.avif" type="image/avif">
<source srcset="image.webp" type="image/webp">
<img src="image.jpg" alt="Description">
</picture>
Browser support: ~95% (now all modern browsers)
When to Use Each Format
JPEG (or WebP/AVIF):
- Photos and complex images
- Banners with gradients
- Backgrounds
PNG:
- Logos with transparency
- Screenshots with text
- Images requiring perfect quality
SVG:
- Logos and icons
- Illustrations
- Anything that needs to be scalable
GIF (or animated WebP):
- Short animations
- Video previews
Optimization Techniques
1. Resizing
Golden rule: Never serve an image larger than its display size.
A 4000x3000 pixel image displayed at 800x600 contains 25 times more pixels than needed: 96% of them are downloaded for nothing!
Use our image resizer to:
- Resize to exact dimensions
- Preserve proportions
- Export to JPEG, PNG or WebP
2. Responsive Images
Serve different sizes according to screen:
<img
srcset="small.jpg 400w,
medium.jpg 800w,
large.jpg 1200w"
sizes="(max-width: 600px) 400px,
(max-width: 900px) 800px,
1200px"
src="large.jpg"
alt="Description"
>
3. Smart Compression
Compression depends on content:
| Image Type | Recommended JPEG Quality |
|---|---|
| Hero photos | 80-85% |
| Thumbnails | 70-75% |
| Backgrounds | 60-70% |
| Previews | 50-60% |
4. Lazy Loading
Load images only when they’re visible:
<img src="image.jpg" loading="lazy" alt="Description">
Native browser support: 95%+
5. Explicit Dimensions
Avoid CLS by always specifying width and height:
<img
src="image.jpg"
width="800"
height="600"
alt="Description"
>
Or with CSS aspect-ratio:
img {
aspect-ratio: 4/3;
width: 100%;
height: auto;
}
Recommended Optimization Workflow
Step 1: Analyze
Use Lighthouse or PageSpeed Insights to identify oversized or poorly sized images on your pages.
Step 2: Resize
With our image resizer:
- Select your image (JPEG, PNG or WebP)
- Choose target dimensions
- Select output format (JPEG, PNG or WebP)
- Adjust quality (for JPEG)
- Download the optimized image
Step 3: Implement
<!-- Optimal responsive image -->
<picture>
<source
srcset="hero-400.avif 400w, hero-800.avif 800w, hero-1200.avif 1200w"
type="image/avif"
sizes="100vw">
<source
srcset="hero-400.webp 400w, hero-800.webp 800w, hero-1200.webp 1200w"
type="image/webp"
sizes="100vw">
<img
srcset="hero-400.jpg 400w, hero-800.jpg 800w, hero-1200.jpg 1200w"
sizes="100vw"
src="hero-800.jpg"
alt="Hero image"
width="1200"
height="600"
loading="eager">
</picture>
Step 4: Verify
Test with Lighthouse or PageSpeed Insights to validate improvements.
Advanced Optimizations
CSS Background Images
.hero {
background-image: url('hero.jpg');
background-image: image-set(
url('hero.avif') type('image/avif'),
url('hero.webp') type('image/webp'),
url('hero.jpg') type('image/jpeg')
);
}
Preloading Critical Images
<link rel="preload" as="image" href="hero.avif" type="image/avif">
CDN with Automatic Optimization
CDNs like Cloudflare, Cloudinary or imgix can:
- Automatically convert to WebP/AVIF
- Resize on-the-fly
- Apply adaptive compression
Optimization Checklist
- Images resized to their display size
- Modern formats (WebP/AVIF) with fallback
- Compression applied (quality 70-85%)
- Lazy loading enabled except above-the-fold images
- Width/height dimensions specified
- Descriptive alt text for accessibility and SEO
- Responsive images with srcset/sizes
- Critical images preloaded
Common Mistakes to Avoid
1. Unoptimized Screenshots
Screenshots in PNG can be very heavy. Convert them to JPEG or WebP if they don’t require transparency.
2. High-Resolution Bitmap Logos
Use SVG for logos. Infinitely scalable, often lighter than a PNG.
3. Forgetting Background Images
CSS images don’t benefit from native lazy loading. Use the Intersection Observer API.
4. Excessive Compression
An over-compressed image degrades the experience. Find the right quality/weight balance.
Complementary Tools
For complete optimization of your visuals:
- Image Resizer: Resize and convert your images
- SEO Analyzer: Check your pages’ meta tags, including the Open Graph image
- Aspect Ratio Calculator: Calculate the right dimensions
- Color Extractor: Extract dominant colors from your images
Conclusion
Image optimization is not optional in 2025. With users increasingly on mobile and search engines penalizing slow sites, every KB saved counts.
Start now with our free image resizer and transform your images into performance assets!