Image SEO: How to Optimise and Name Files Correctly

In the digital age, images play an essential role in enhancing the visual appeal of websites and enriching user experience. However, images are not only for aesthetics—they are a valuable asset in search engine optimisation (SEO). Properly optimised images can improve your website’s search rankings, increase page speed, and drive more organic traffic. This guide explores the best practices for image SEO, focusing on correct file naming, compression, and implementation.

Why Image SEO Matters

Search engines like Google account for images when indexing and ranking your web pages. A well-optimised image can help your page appear in image search results, accessible searches, and even featured snippets. Small business owners often overlook image SEO, potentially missing out on extra traffic and accessibility benefits.

  • Images contribute to page load speed, a critical ranking factor.
  • Optimised images enhance accessibility for users with visual impairments.
  • Correctly named images can generate more relevant traffic via image search.
  • Search engines rely on image metadata to understand visual content.

The Fundamentals of Image Optimisation

Image SEO spans several key practices—file naming, size compression, use of appropriate formats, and metadata. Let’s break down each component.

1. Use Descriptive and Relevant File Names

Search engines cannot interpret images visually; they rely on file names and context. That makes your image file name an important ranking signal.

  • Be Descriptive: Use clear, human-readable language that describes the image content. Instead of IMG_00123.jpg, use blue-widgets-stack.jpg.
  • Include Target Keywords (When Relevant): Integrate your page’s target keywords if they accurately describe the image. This can improve relevance in image search results.
  • Use Hyphens, Not Underscores: Search engines treat hyphens () as word separators, but underscores (_) are ignored. For example, use office-desk-lamp.jpg rather than office_desk_lamp.jpg.
  • Avoid Keyword Stuffing: Don’t force in keywords or make unnaturally long names. Aim for clarity and user intent.
  • Be Consistent: Use a logical, consistent convention across your website. This makes management easier and benefits Google’s understanding.

2. Choose the Right Image Format

Selecting the correct image format influences file size, quality, and how quickly your page loads.

  • JPEG: Ideal for photographs and images with gradients. Small file size, good quality.
  • PNG: Best for graphics, illustrations, and images with transparency. Tends to be larger than JPEG.
  • WebP: Modern format offering superior compression and quality for the web. Supported by most browsers.
  • SVG: Vector images best for logos and simple graphics that need to scale at different sizes.

Use the format best suited to the image type and aim to serve modern formats where browser compatibility allows.

3. Compress Images for Fast Page Loads

Large image files slow down your website, penalising SEO rankings and frustrating users. Aim to reduce file size as much as possible without noticeably degrading visual quality.

  • Use image compression tools like TinyPNG, ImageOptim, or plugins like ShortPixel for WordPress.
  • Resize images to the correct display dimensions before uploading. Don’t rely on HTML or CSS to scale large files.
  • Consider serving images in multiple sizes and using srcset for responsive design.

4. Implement Effective Alt Text

Alternative (alt) text serves two important purposes: accessibility and SEO. Alt text describes the image for screen readers and gives search engines additional context.

  • Write brief, clear, and descriptive text describing the image’s function or appearance.
  • Include page keywords only if they naturally fit the description.
  • Avoid terms like “image of” or “picture of”—just describe the subject.
  • All decorative images should have empty alt attributes (alt="").

Well-written alt text improves your site’s accessibility for visually impaired users and can help your pages rank for relevant queries.

5. Create an Image Sitemap

For larger websites, an image sitemap can help search engines discover images that might otherwise be missed. Google supports sitemaps specifically for images, or you can enhance your existing sitemap with <image:image> tags.

  • Ensure all important images—especially those loaded with JavaScript or in galleries—are listed in the sitemap.

Best Practices for Naming Image Files

Let’s delve deeper into file naming, which is often underestimated but highly impactful.

Do’s and Don’ts

  • Do: Use short, descriptive, meaningful names (red-running-shoes.jpg).
  • Don’t: Use generic, auto-generated or camera default names (DSC9001.jpg).
  • Do: Incorporate branding where relevant (webmatter-logo.svg).
  • Do: Use lowercase letters for consistency and to avoid server-side conflicts.
  • Don’t: Use spaces or special characters (stick to hyphens).

Here is a before-and-after example for clarity:

  • Before: IMG_5242.JPG
  • After: handmade-ceramic-vase.jpg

The improved version helps both search engines and users understand what the image shows—without even seeing it. This is particularly helpful for mobile image search results, voice assistants, and accessibility.

Advanced Tips for Image SEO

Once you’ve mastered the basics, applying advanced techniques can further boost your visibility and engagement.

Use Structured Data Markup

Structured data (schema) can enhance how your images appear in search results, potentially unlocking rich results such as product images or recipes. For products, adding Product schema can enable rich snippets accompanied by images.

Leverage Responsive Images

Use <picture> and srcset attributes to serve appropriately sized images on mobile, tablet, and desktop. This not only saves bandwidth but also improves SEO by reducing page load times.

Lazy Loading

Implement lazy loading for images that are not immediately visible when a page loads. This technique delays image loading until the user scrolls to them, making your website feel faster and more responsive. Use the native loading="lazy" attribute for modern browsers.

Common Image SEO Mistakes to Avoid

Avoid these pitfalls to ensure your image optimisation efforts don’t backfire:

  • Uploading excessively large files (both in dimensions and quality) that slow down your website dramatically.
  • Leaving default file names from your camera or stock library.
  • Skipping alt attributes or stuffing them with irrelevant keywords.
  • Using unsupported formats or relying solely on newer types like WebP without fallback support.
  • Inconsistent naming conventions that make image management difficult in the future.

Image SEO Checklist

To summarise, here’s a quick-reference checklist you can apply to every image you upload:

  • Give the file a descriptive, hyphenated, keyword-relevant name.
  • Choose the best format for quality and size (JPEG, PNG, WebP, SVG).
  • Compress your images for optimal speed.
  • Provide clear, relevant alt text for accessibility and SEO.
  • Use <picture> and srcset for responsive images.
  • Implement lazy loading where appropriate.
  • Update or create an image sitemap for large or complex sites.

Conclusion

Image SEO is a powerful yet sometimes overlooked element of website optimisation. From thoughtful file naming to format selection and compression, each step plays a key role in enhancing your site’s search visibility, user experience, and accessibility. By applying these best practices, small businesses can compete more effectively in search results and offer a superior on-site experience for all visitors.

If you need help with your website, app, or digital marketing — get in touch today at info@webmatter.co.uk or call 07546 289 419.

Web Matter
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.