How to Optimise Images for SEO Without Slowing Your Website Down
November 1, 2026
8

Images are one of the biggest contributors to slow page load times, and slow pages rank lower, convert worse, and lose visitors faster than fast ones. At the same time, images done right are a genuine SEO asset — they can appear in Google Image Search, contribute to topical relevance, improve user engagement, and support Core Web Vitals scores when handled correctly.
The tension between visual quality and page performance is real but manageable. With the right approach to image formats, compression, file naming, alt text, and delivery, you can have pages that look good and load fast — which is what both Google and your visitors expect.
This guide covers the full image optimisation process, from the moment you export a file to the way it is delivered to the browser.
Why Images Hurt Page Speed and Rankings
Images are typically the largest files on any web page. An unoptimised hero image can easily weigh one to three megabytes or more. Load five or six of those on a page and you have a page that takes eight to ten seconds to fully render on a mid-range mobile device — well past the threshold at which most users abandon.
Google's Core Web Vitals framework includes Largest Contentful Paint (LCP) as a primary ranking signal. LCP measures how long it takes for the largest visible element on the page to load — and that element is almost always an image. A slow LCP directly suppresses rankings, independent of your content quality or backlink profile.
PageSpeed Insights and Google Search Console's Core Web Vitals report will show you exactly which pages are failing LCP thresholds and, in most cases, identify the specific image causing the problem. The fix is usually a combination of format, compression, and delivery changes covered in this guide.
A strong SEO foundation requires treating image optimisation as a technical priority, not a design afterthought.
Choosing the Right File Format
The format you save an image in is the first and most consequential decision in image optimisation. Different formats suit different use cases, and the gap between a well-chosen and poorly chosen format can be a file size difference of 50 to 80 percent for the same visual output.
WebP is currently the best default format for most web images. It delivers smaller file sizes than JPEG and PNG at comparable or better visual quality, and it is supported by all modern browsers. If your website is not serving images in WebP, that is the highest-impact format change you can make. Most CMS platforms — including WordPress with a plugin, Shopify, and Webflow — can be configured to convert and serve WebP automatically.
AVIF is the next-generation format that delivers even smaller files than WebP, often 30 to 50 percent smaller at equivalent quality. Browser support has improved significantly and it is now supported by Chrome, Firefox, and Safari. For new builds or sites undergoing a performance overhaul, AVIF is worth evaluating as the primary format.
JPEG remains appropriate for photographs where you need broad compatibility — older CMS setups, email templates, or contexts where WebP is not available. Use JPEG at 70 to 85 percent quality, which is typically indistinguishable from 100 percent quality to human eyes but substantially smaller in file size.
PNG should be reserved for images that require transparency (logos, icons with transparent backgrounds) or images with hard edges and flat colours where JPEG compression would create visible artefacts. PNG files are larger than JPEG for photographic content and should not be used for photographs.
SVG is the correct format for logos, icons, diagrams, and illustrations. SVG files are vector-based, which means they scale perfectly to any size without quality loss and are typically very small in file size. They can also be inlined directly in HTML, eliminating a network request entirely.
GIF should be avoided for everything except very short animations in contexts where video is not supported. For animations, use a looping MP4 or WebM video — both are dramatically smaller than GIF for equivalent animation content.
Compression: Finding the Right Balance
Compression reduces file size by removing data from the image, either losslessly (no visual quality change) or lossily (with some quality reduction, ideally imperceptible). Most images on the web are under-compressed — their file size is larger than it needs to be without any visible quality benefit.
For lossless compression of PNG and SVG files, tools like ImageOptim (Mac), Squoosh (browser-based), or the Sharp library for Node.js can reduce file sizes by 20 to 40 percent without changing how the image looks.
For lossy compression of JPEG and WebP, the target is the highest compression level at which you cannot visually distinguish the compressed image from the original. For most photographic content, this is around 75 to 85 percent quality in JPEG terms, or the equivalent WebP quality setting. At that level, you are typically looking at 60 to 80 percent smaller file sizes than an uncompressed export.
Squoosh (squoosh.app) is an excellent free tool for experimenting with compression settings visually — it shows you the original and compressed versions side by side so you can find the threshold where quality loss becomes noticeable for your specific image.
For sites with large image inventories, automating compression in the build pipeline — using tools like Sharp, ImageMagick, or Cloudinary — is more practical than manually compressing individual files.
Scaling: Serving Images at the Right Dimensions
A common and costly mistake is uploading a 4000-pixel-wide image and relying on CSS to display it at 800 pixels. The browser downloads the full 4000-pixel image and then scales it down — which means you are making the user download three to four times more data than is necessary for the displayed size.
Images should be scaled to the largest size at which they will actually be displayed before they are uploaded. If your blog post template displays images at a maximum width of 900 pixels, the image you upload should be 900 pixels wide, not 2000 or 4000.
For responsive sites where the same image is displayed at different sizes on different screen widths, use the srcset attribute in HTML to provide multiple image versions at different resolutions. The browser then downloads the appropriate version for the user's screen size and resolution, rather than loading the largest version for everyone.
<img
src="image-900.webp"
srcset="image-450.webp 450w, image-900.webp 900w, image-1800.webp 1800w"
sizes="(max-width: 600px) 450px, (max-width: 1200px) 900px, 1800px"
alt="Description of the image"
>
This is one of the most impactful technical improvements available for mobile page speed, since mobile users on narrower screens do not need to download the same large image as desktop users.
Alt Text: The SEO Layer
Alt text — the text alternative to an image for users who cannot see it — is the primary mechanism by which search engines understand what an image depicts. Googlebot cannot see images the way humans do. It reads alt text, file names, and surrounding content to infer what an image is and whether it is relevant to the page's topic.
Good alt text is:
Descriptive and specific. It should accurately describe what is in the image in terms relevant to the page's content. "A marketing consultant reviewing campaign data on a laptop" is better than "person at laptop" or "image1."
Naturally keyword-inclusive where appropriate. If the image is relevant to the page's target keyword, the alt text can include that keyword — but only if it accurately describes the image. Keyword-stuffed alt text that does not reflect the image content is a spam signal.
Brief. Alt text does not need to be a paragraph. One to two sentences is typically sufficient. Screen readers read alt text aloud to visually impaired users, so concise and informative is better than exhaustive.
Absent for decorative images. Images that are purely decorative — dividers, backgrounds, abstract visual elements — should have an empty alt attribute (alt="") rather than no alt attribute at all. This tells screen readers to skip the image and avoids Google seeing a missing alt text as a gap.
File names are also read by search engines, though they carry less weight than alt text. Rename image files to reflect their content before uploading: cta-button-design-review.webp is more informative than IMG_4821.webp.
Lazy Loading: Prioritising What the User Sees
Lazy loading defers the loading of images that are below the fold — not visible in the user's initial viewport — until the user scrolls toward them. This means the browser only loads the images the user is actually going to see, rather than loading everything on the page upfront.
Implementing lazy loading is straightforward with the native HTML loading attribute:
<img src="image.webp" alt="Description" loading="lazy">
This attribute is supported by all modern browsers and requires no JavaScript. For most sites, adding loading="lazy" to all images except those above the fold is a low-effort, high-impact change.
The exception is your LCP image — typically the hero image or the first large image above the fold. Do not lazy load the LCP image. That image should load as fast as possible, and lazy loading it would delay it. For the LCP image, use loading="eager" or simply omit the loading attribute, and consider adding fetchpriority="high" to give the browser a hint that this image should be prioritised.
Using a CDN for Image Delivery
A Content Delivery Network (CDN) stores copies of your images on servers located geographically close to your users. When a user in Mumbai requests an image, they receive it from a server in India rather than one in the UK or US — which reduces the time it takes for the image to travel from the server to their device.
For sites with international audiences or significant traffic, a CDN can meaningfully improve image load times without any changes to the images themselves. Most major hosting providers — Cloudflare, AWS CloudFront, Fastly — offer CDN functionality, and some CMS platforms include CDN delivery as part of their hosting.
Image CDNs like Cloudinary, Imgix, or Cloudflare Images go further: they serve images in the optimal format for each browser automatically, resize images on the fly based on the requesting device, and compress images at delivery time. For large sites with significant image inventories, the management overhead of maintaining multiple image versions manually is eliminated.
Image Sitemaps: Helping Google Discover Your Images
Google cannot always discover images embedded in JavaScript or served through certain CMS configurations. Including images in your XML sitemap — or creating a dedicated image sitemap — helps Google find and index your images for Google Image Search.
If you use a CMS like WordPress with Yoast or RankMath, image sitemaps are typically generated automatically. For custom-built sites, adding image sitemap entries to your existing sitemap follows the standard sitemap format with an additional image namespace.
Google Image Search can be a meaningful secondary traffic source for content-rich sites, particularly in categories where visual search is common — interiors, food, fashion, travel, and design. Ensuring your images are indexable and that they carry descriptive alt text and file names is the minimum required to capture that traffic.
Structured Data for Images
For specific content types — recipes, products, articles — structured data can mark up images in a way that makes them eligible for rich results in Google Search. A recipe with correctly marked-up images may appear with the image in a rich card in search results, increasing the visual real estate your content occupies and improving click-through rates.
The Image schema property is included within the structured data for the parent content type. For articles, the image property should reference your primary article image. For products, the image property references the product photo. For recipes, it references the recipe image.
Use Google's Rich Results Test to verify that your structured data is valid and that your images are eligible for rich result display.
A Practical Image Optimisation Checklist
Before publishing any page with images, run through these checks:
Format: Is the image served as WebP or AVIF rather than JPEG or PNG for photographic content? Is SVG used for logos and icons?
Compression: Has the image been compressed to the smallest file size at which quality loss is imperceptible?
Dimensions: Is the image uploaded at the size it will actually be displayed? Is srcset used for responsive delivery?
Alt text: Does every non-decorative image have descriptive, accurate alt text that includes the page's target keyword where genuinely relevant?
File name: Is the image file named descriptively rather than with a generic camera-generated name?
Lazy loading: Are all images below the fold using loading="lazy"? Is the LCP image above the fold loading eagerly?
LCP: If this is your LCP image, is fetchpriority="high" applied?
If you want support auditing your site's current image performance and implementing these improvements as part of a broader SEO programme, Foxtale Media works with businesses to address technical SEO issues that are directly suppressing their rankings and page speed.
The Two Goals Are the Same Goal
Image optimisation is sometimes framed as a trade-off between SEO and user experience, as if fast pages and visually strong pages are in tension. They are not. Fast-loading, well-optimised images serve both goals simultaneously: they improve your Core Web Vitals scores, which helps rankings, and they deliver a faster, better experience for the people visiting your site.
The images that hurt your site are the ones that were exported at full resolution, uploaded without compression, displayed at a fraction of their actual size, and given no alt text. Those images are doing nothing for your rankings and actively degrading your performance. The fix is straightforward, and the impact on both speed and search visibility is typically immediate.
Related Blog

November 12, 2026
8
How to Find the Right Influencer for Your Brand Without a Platform Subscription

November 11, 2026
8

