- A light image helps your website, shop or blog show up fast, especially on mobile: on a slow network (1.6 Mbit/s), 5 MB takes 25 seconds to arrive, against 0.5 seconds for 100 KB.
- Google measures this wait with LCP (good: 2.5 s or less) and the jumps on the page with CLS (good: 0.1 or less).
- Here is what to do: compress, switch to WebP and reserve the space for the image. Our tools help you do it, without uploading anything.
When does a light image help you?
As soon as a visitor waits for an image to see your page. Here are the most common cases:
5 MB or 100 KB: try it yourself
Why does file size change everything? Because the image must first reach your visitor's device. Choose a size and a connection, then start the loading:
Over 2.5 s
Under 2.5 s
24.5 sless waiting with the light image
Real-time simulation of the image alone: size ÷ speed. The real time also depends on the server and the rest of the page. Nothing is downloaded here.
Slow or fast, what does it mean?
Speed is the amount of data received each second. It is counted in megabits per second (Mbit/s), and 5 MB is 40 megabits. As an order of magnitude:
This wait has a name: LCP
This is why Google measures this wait. LCP (Largest Contentful Paint) is the time it takes to show the largest element of the page. According to the Web Almanac 2025, it is an image on about 3 mobile pages out of 4: making this image lighter is often the simplest gain.
An image can also get in the way in another manner: when its space is not reserved, it pushes the text when it arrives. This is CLS (Cumulative Layout Shift). See the difference:
| Metric | What it measures | Good | Poor |
|---|---|---|---|
| LCP | The time to show the largest element | 2.5 s or less | Over 4 s |
| CLS | The jumps on the page during loading | 0.1 or less | Over 0.25 |
These metrics are part of the Core Web Vitals. Google strongly recommends good results, without giving their exact weight in rankings: it is a plus, not a guarantee.
1Make your images lighter
Here is how to do it. Start with the large image at the top of your home page: it is often the one that matters most. First its pixels, then its weight.
- I bring it to the right size with Resize an image. For an image displayed at 1,200 px wide, about 2,400 px is enough (double, to stay sharp on high-density screens). An iPhone photo is 4,032.
- I run it through Compress an image for a lighter copy, or through Choose a size to aim for an exact file size.
- I can also convert it to WebP with JPG to WebP, then keep the lighter one if the result suits me.
2Reserve their space
Your page will no longer jump. In its code, give the width and height of each image (width and height attributes), or ask the person who manages your site.
To prepare a layout at the right size, before you have the final image: Generate a placeholder image.
3Make your GIFs and videos lighter too
An image is not the only thing that weighs: an animated GIF or a video on your page often weighs much more.
Frequently asked questions
What is LCP (Largest Contentful Paint)?
It is the time the largest visible element of the page takes to show, often an image or a block of text. According to web.dev, it is good at 2.5 seconds or less and poor beyond 4 seconds.
What is CLS (Cumulative Layout Shift)?
It is a measure of the jumps on the page while it loads, for example when an image arrives and pushes the text. According to web.dev, it is good at 0.1 or less and poor beyond 0.25.
What file size should an image on a website be?
There is no official figure: it all depends on its dimensions and its role. The right habit is to bring it down to its display size with Resize an image, then compress it to the limit of what still looks sharp to the eye, with Compress an image.
How do I improve the LCP of my page?
If the largest element is an image, start by making it lighter: right dimensions, compression, WebP format. You can then check the result with PageSpeed Insights, Google's free tool.
How do I avoid CLS caused by images?
Always give the width and height of each image (width and height attributes), or reserve its space with the CSS aspect-ratio property. The browser then keeps the space before the image arrives.
Do Core Web Vitals matter for Google SEO?
Google strongly recommends good results and says this goes in the direction of what its ranking systems try to reward. It does not give their exact weight: it is not a guarantee of ranking better.
Sources
- Largest Contentful Paint (web.dev)
- Cumulative Layout Shift (web.dev)
- Optimize Cumulative Layout Shift (web.dev)
- Core Web Vitals and search results (Google Search Central)
- Performance, Web Almanac 2025 (HTTP Archive)
- Vodafone: 31% better LCP, 8% more sales (web.dev)
- Network throttling (Lighthouse)