Image SEO: Alt Text, File Names and Compression for Faster, Better-Ranking Pages

Table of Contents
Need help with SEO or a new WordPress website? Our new-customer offers: a 5–10 page WordPress site for £399, or SEO from £239.20 for your first month (20% off).
See the £399 website offerSee the SEO offer

Quick answer

Optimise images by choosing descriptive file names, writing concise alt text that describes the image in context, compressing to modern formats such as WebP, setting dimensions, lazy loading below-the-fold images and avoiding images with text baked in. Good image SEO improves accessibility, page speed and visibility in Google Images.

Last updated: November 2026

Images make pages more persuasive and engaging, but they are also the biggest cause of slow websites and one of the most neglected parts of SEO. A hero image that weighs 3 MB can wreck your loading speed, and an image with no alt text is invisible to screen readers and search engines.

Done properly, image optimisation does three things at once: it helps users with disabilities, speeds up your pages and gives you an extra route to traffic through Google Images and visual search.

This guide covers alt text, file names, formats, compression, responsive images, lazy loading and the common mistakes we see on UK business websites, with practical steps for WordPress.

In this guide

  1. Why image SEO matters
  2. Write useful alt text
  3. Use descriptive file names
  4. Choose the right format and size
  5. Compression and quality
  6. Responsive images and lazy loading
  7. Avoid text inside images
  8. Captions, context and structured data
  9. Image sitemaps and Google Images
  10. Common image mistakes on UK business sites
  11. An example from a local business
  12. Image SEO checklist
  13. FAQs

Why image SEO matters

Google Images and Lens drive meaningful traffic for visual businesses such as restaurants, retailers, designers and tradespeople showing their work. Even if images are not your main traffic source, they influence Core Web Vitals, particularly Largest Contentful Paint, which is often an image.

Images also communicate trust. Real photos of your team, premises and projects make a page more credible than generic stock, and well-labelled images help search engines connect your content to places and services.

Write useful alt text

Alt text is a short description of the image for people who cannot see it and for search engines. Describe what is in the image and its purpose in context, in a natural phrase of around five to fifteen words, such as “Gas engineer fitting a new combi boiler in a Leeds kitchen”.

Include a keyword only if it genuinely describes the image. Do not stuff keywords or write “image of”. For decorative images that add no information, use an empty alt attribute so screen readers skip them. Alt text is an accessibility requirement under UK expectations, not just an SEO tactic.

Use descriptive file names

Rename files before uploading. “gas-engineer-fitting-combi-boiler-leeds.jpg” tells search engines far more than “IMG_4572.jpg”. Use lowercase words separated by hyphens, keep them short and avoid special characters.

Consistent, descriptive naming also makes your media library easier to manage and gives context when images are shared or indexed.

Choose the right format and size

  • WebP or AVIF for most photos, offering much smaller files than JPEG at similar quality.
  • JPEG for photographs when modern formats are unavailable.
  • PNG for graphics needing transparency, but compress them well.
  • SVG for logos and icons, because they scale cleanly and are tiny.
  • Resize images to the largest size they display, not the full camera resolution.

Compression and quality

Aim for the smallest file that still looks good. For most web photos, 100 to 250 KB is achievable for full-width images, and far less for thumbnails. Use tools such as Squoosh, ShortPixel, Imagify or Smush to compress, and set quality around 75 to 85 percent for lossy formats.

Avoid uploading images straight from a camera or phone. A 12 MP photo can be several megabytes, and resizing and compressing before upload saves bandwidth, speeds up pages and reduces storage costs.

Responsive images and lazy loading

WordPress automatically generates multiple sizes and uses srcset so browsers pick the right one. Make sure your theme and page builder use these and do not load full-size images in small slots.

Lazy loading delays offscreen images until the user scrolls to them, saving initial load time. Do not lazy load the main hero image, because it should load as quickly as possible. Preload the hero image if necessary, and set explicit width and height attributes to prevent layout shift.

Avoid text inside images

Text baked into an image cannot be read by search engines or screen readers, does not scale on mobile and is hard to translate. Use real text styled with CSS for headings, offers and key messages, and use images for illustration.

If an infographic is necessary, include the key information as real text on the page as well, and add descriptive alt text and a caption.

Captions, context and structured data

Images are interpreted in context, so place them near relevant text, add captions where they help and use headings that explain their purpose. For products, use Product schema with image URLs. For articles, use a high-quality featured image that is at least 1200 pixels wide so it is eligible for rich results and Discover.

Unique, original images stand out compared with generic stock, which appears on thousands of other sites. Photos of your actual work and team add experience signals that support E-E-A-T.

Image sitemaps and Google Images

Most SEO plugins include images in your XML sitemap automatically. Make sure images are crawlable, not blocked in robots.txt and not loaded only through scripts that Google cannot see. Use standard img tags with real URLs.

For Google Images traffic, add descriptive alt text, surrounding text and file names, and choose images that are visually clear and relevant. Our on-page SEO service reviews image optimisation across your key pages.

Common image mistakes on UK business sites

The most frequent problems are oversized photos uploaded straight from a camera, the same stock images used by dozens of competitors, missing alt text on every image, and sliders that load many large images at once. Logos exported as huge PNG files and background images set through CSS without compression are also common.

Another frequent issue is images that carry the whole message, such as a banner with the offer written in the picture. On mobile the text becomes tiny, and search engines see nothing. Rebuild such banners with real text over a compressed background image.

Finally, many sites forget to update images after a rebrand, leaving old logos and outdated photos in the media library and in search results. Do an annual clean-up: delete unused media, replace outdated visuals and make sure every image on your key pages has a clear purpose, a descriptive name and useful alt text.

An example from a local business

A Leeds restaurant has a homepage with six uncompressed photos, each between 2 MB and 4 MB, named “DSC001.jpg” and with no alt text. Mobile LCP is over five seconds. After resizing the hero to 1600 pixels wide, converting to WebP, compressing to around 150 KB, lazy loading the rest and adding descriptive alt text, the homepage drops well under 2 MB and LCP improves to under three seconds.

The same images begin appearing in Google Images for dish and venue searches, and phone bookings rise as the site loads faster. A few hours of tidying delivered a measurable improvement in both visibility and conversion.

Image SEO checklist

  • Descriptive file name in lowercase with hyphens.
  • Concise, accurate alt text.
  • WebP or AVIF where possible, compressed and resized.
  • Width and height set to prevent layout shift.
  • Lazy loading for below-the-fold images, but not the hero.
  • Real text instead of text in images.
  • Captions and nearby context where helpful.

On-Page SEO Services

Titles, content and structure tuned page by page so each one can rank.

Learn more Get an instant quote

Frequently asked questions

Does alt text help SEO?

Yes. It helps search engines understand images, supports image search and improves accessibility, which also benefits user experience.

What is the best image format for websites?

WebP is a good all-round choice, and AVIF can be smaller still. Use SVG for logos and icons, and JPEG as a fallback.

How big should website images be?

Resize to the largest display size and compress. Many full-width images can be 100 to 250 KB without visible quality loss.

Should I lazy load all images?

Lazy load images below the fold, but not the main hero image, which should load immediately to protect Largest Contentful Paint.

Related reading

Get a free quote for your business

Tell us what you need and we will reply within one working day. Prefer to talk? Call 0203 924 2300.

Boost Your Rankings & Get Found on Google

Grow your business with powerful SEO strategies that drive real traffic, leads, and conversions. Let’s turn your website into a consistent growth machine.

 

Ready to Grow Your Online Visibility?

Get expert SEO, paid ads, and digital marketing solutions tailored to your business goals. Start attracting the right customers today with proven strategies.

 

Call 0203 924 2300Free SEO Audit