How Image Compression Directly Impacts Your Site's Google Rankings

All articles

How Images Affect SEO: The Core Web Vitals Connection

Google uses a set of performance metrics called Core Web Vitals as direct ranking signals. These metrics measure how fast and stable a page feels to a real user. The metric most directly affected by image size is Largest Contentful Paint (LCP).

LCP measures how long it takes for the largest visible element on the page to load and render. For most web pages, the largest visible element is an image — a hero image, a product photo, or a banner. If that image is large and uncompressed, it takes longer to download, and LCP is slow. Google considers an LCP under 2.5 seconds to be good. Above 4 seconds is poor and will negatively affect your ranking.

A 4 MB hero image on a mobile connection can take 8–15 seconds to fully load. The same image compressed to 150 KB loads in under a second. The difference in LCP — and therefore in Google ranking signals — is significant.

Beyond LCP, large images also affect Total Blocking Time and Cumulative Layout Shift indirectly. When the browser is busy downloading large images, it has fewer resources for other tasks, which can delay interactive elements and cause layout instability as images load at different times.

Compress Images for Page Speed: The Direct Impact on Bounce Rate

Page speed affects not just rankings but also user behaviour. Research consistently shows that users abandon pages that take more than 3 seconds to load. Every additional second of load time increases the probability that a visitor will leave before the page finishes loading.

This abandonment affects user engagement metrics. While Google has stated that bounce rate is not a direct ranking signal, slow pages that cause users to leave quickly result in poor Core Web Vitals scores, which are direct ranking signals. The practical outcome is the same: faster pages perform better in search.

Image compression requires no server changes and no infrastructure work. You compress the file before uploading it. That is the entire process.

The general rule for web images is:

  • Hero images and banners: Under 200 KB
  • Product photos and article images: Under 100 KB
  • Thumbnails and icons: Under 20 KB
  • Background images: Under 150 KB

Before and After: What Compressing One Hero Image Actually Does to Your PageSpeed Score

Here is a concrete example of what happens when you compress a single hero image on a real blog post.

A travel blog has a hero image shot on a camera. The original file is 3.8 MB, uploaded directly to the CMS without any compression. Running PageSpeed Insights on mobile gives the page a performance score of 34. The LCP element is that hero image. LCP time is 9.2 seconds. The page fails Core Web Vitals. PageSpeed flags it under two audits: “Efficiently encode images” and “Properly size images”.

The fix: open FitPhotoKB, select the hero image, set the output to WebP, set the target to 160 KB, enable Resize image if needed in Advanced Options. The tool outputs a 160 KB WebP at 1400×933 pixels — still sharp at the 1200px display width the blog uses. Upload the compressed image and replace the original in the CMS.

Result after re-running PageSpeed Insights on mobile: performance score 91. LCP: 1.1 seconds. The page now passes Core Web Vitals. Both image-related audits disappear from the report. The only change made was replacing one image file.

If your PageSpeed score is below 50 and your LCP element is an image, this is almost always the first thing to fix.

Sequence diagram showing how compressing a hero image improves PageSpeed score from 34 to 91
One image change — PageSpeed 34 to 91, LCP 9.2s to 1.1s

The Most Common Mistake That Makes LCP Worse: loading="lazy" on Your Hero Image

There is one mistake developers make more than any other when trying to optimise images, and it actively makes LCP worse instead of better.

Many developers add loading="lazy" to every image on a page as a blanket performance trick. For images below the fold — images the user has not scrolled to yet — lazy loading is correct and helpful. But for the hero image at the top of the page, loading="lazy" is the opposite of helpful.

When you add loading="lazy" to your LCP image, the browser deliberately delays loading it until after layout confirms the image is in the viewport. This introduces an unnecessary delay at exactly the moment that matters most for LCP. Google’s own documentation states: “Never lazy-load your LCP image, as that will always lead to unnecessary resource load delay.”

The correct approach is the opposite — tell the browser to load the hero image as early as possible. For most WordPress themes and page builders this is handled automatically. For developers managing their own site, add this one line in the <head> of your page:

<link rel="preload" fetchpriority="high" as="image" href="/hero.webp" type="image/webp">

This tells the browser to start downloading the hero image immediately, before it has even finished reading the rest of the page.

The simple rule: add loading="lazy" to every image except the hero. Add the fetchpriority="high" preload for the hero. Compress the hero to under 200 KB. These three things together will move almost any failing LCP score into the passing range.

Optimize Website Images for Core Web Vitals: A Practical Workflow

Here is a practical workflow for optimising images before publishing them to your website:

Step 1: Identify your largest images. Use Google PageSpeed Insights or Chrome DevTools to identify which images on your page are the largest and slowest to load. Focus on the images that appear above the fold — the content visible without scrolling — as these have the most impact on LCP.

Step 2: Choose the right format. For photographs and complex images, use WebP for web use (25–35% smaller than JPEG at equivalent quality). For images with transparency, use WebP or PNG. For maximum compatibility with older browsers or email, use JPEG.

Step 3: Compress to your target size. Open FitPhotoKB, select your image, choose WebP as the output format, and set a target of 100–200 KB depending on the image's role on the page. Enable Resize image if needed to allow dimension reduction as well as quality reduction.

Step 4: Verify the quality. FitPhotoKB shows a visual quality score and a before-and-after comparison slider. Check that the compressed image looks acceptable at the size it will be displayed on your page. A 100 KB image displayed at 400 pixels wide will look sharp. The same 100 KB image displayed at 1200 pixels wide may look soft.

Step 5: Upload and test. After uploading the compressed images, re-run PageSpeed Insights to verify the improvement in LCP and overall performance score.

WebP vs JPEG for SEO: Which Format Ranks Better?

Google does not directly favour one image format over another in its ranking algorithm. What Google measures is page speed, and WebP images load faster than JPEG images of equivalent quality because they are smaller. So WebP indirectly improves rankings by improving page speed.

Google's own PageSpeed Insights tool specifically recommends serving images in next-generation formats (WebP and AVIF) as a performance improvement. Following this recommendation improves your PageSpeed score, which correlates with better Core Web Vitals and better rankings.

For most websites in 2026, the recommended approach is to serve WebP to modern browsers and JPEG as a fallback for older browsers. This can be implemented using the HTML picture element with multiple source formats.

If you are managing a simple website without the ability to implement format negotiation, serving WebP universally is acceptable — all modern browsers support WebP, and the percentage of users on browsers that do not support WebP is now negligible.

Image File Names and Alt Text: The Other SEO Factors

Beyond file size and format, two other image attributes affect SEO: file names and alt text.

File names should be descriptive and include relevant keywords. A file named product-photo-under-200kb.jpg is better for SEO than IMG_4521.jpg. FitPhotoKB automatically generates clean, descriptive file names like photo-under-200kb.jpg that are safe for web use and include the target size as a useful descriptor.

Alt text is the text description of an image that appears when the image cannot be displayed and is read by screen readers. Google uses alt text to understand what an image depicts. Every image on your website should have descriptive alt text that accurately describes the image content and includes relevant keywords where natural.

Compression, format, file naming, and alt text all contribute to how Google evaluates your images. Compression has the most direct effect on page speed.

FitPhotoKB handles compression and file naming, free, with no uploads required.

All compression runs 100% locally in your browser — your images never leave your device. Free, no account required.

Try FitPhotoKB Free →