Skip to content

Image SEO: Optimizing Alt Text, File Names, and Compression

Images are often overlooked in SEO. Learn how to optimize alt text, file names, and compression to improve rankings, accessibility, and user experience.

The Image SEO Opportunity

Images are often an afterthought in SEO. But they represent a significant opportunity. Image search drives traffic, and optimized images improve page speed, accessibility, and user experience.

When you optimize images, you're not just helping search engines understand your content—you're helping users with visual impairments, improving load times, and increasing your chances of appearing in image search results.

"An optimized image is not just a picture. It's a ranking signal, an accessibility tool, and a user experience enhancer."

The Image SEO Framework

1. File Naming (The Foundation)

Why It Matters:

  • Search engines read file names to understand image content.
  • Descriptive file names help with image search rankings.

Best Practices:

  • Use descriptive, keyword-rich names.
  • Use hyphens to separate words (not underscores).
  • Keep names concise but descriptive (3-5 words).
  • Include your primary keyword where relevant.

Examples:

  • Bad: IMG_1234.jpg
  • Good: red-leather-sofa-modern-living-room.jpg
  • Best: modern-red-leather-sofa-living-room.jpg

Action: Rename all new images before uploading.

2. Alt Text (The Description)

What Is Alt Text?

Alt text (alternative text) is a description of an image that serves two purposes: helping visually impaired users understand the image and helping search engines index the image.

Why It Matters:

  • Screen readers use alt text to describe images to visually impaired users.
  • Search engines use alt text to understand image content.
  • Alt text is a ranking factor for image search.

Best Practices:

  • Be descriptive and specific.
  • Include your primary keyword naturally (not forced).
  • Keep it under 125 characters (screen readers cut off after ~125).
  • Don't use "image of" or "picture of" (it's redundant).
  • Describe what's in the image, not just the file name.

Examples:

  • Bad: red sofa
  • Good: modern red leather sofa in a contemporary living room with white walls and wooden floor
  • Best: modern red leather sectional sofa in a bright contemporary living room with white walls and natural light

Action: Audit alt text on existing images and update as needed.

3. Image Compression and Size

Why It Matters:

  • Large images slow down page load times.
  • Slow pages hurt rankings and user experience.
  • 53% of users abandon sites that take longer than 3 seconds to load.

Best Practices:

  • Compress images without sacrificing quality.
  • Use next-gen formats: WebP, AVIF (smaller file sizes).
  • Resize images to the dimensions needed (don't upload larger than necessary).
  • Use responsive images (srcset) for different screen sizes.
  • Lazy load images (load only when visible).

Tools:

  • TinyPNG / TinyJPG: Compress images online.
  • ImageOptim: Mac app for compression.
  • Squoosh: Google's image compression tool.
  • ShortPixel: WordPress plugin for compression.

Action: Compress all images on your site. Use a tool to automate.

4. Image Sitemaps

Why It Matters:

  • Image sitemaps help Google discover images that may not be found through crawling.
  • They provide additional context about images.

Best Practices:

  • Include image sitemap in your XML sitemap.
  • Add image URLs, titles, captions, and licenses.

Action: Add image sitemap to your site's XML sitemap.

5. Structured Data for Images

Why It Matters:

  • Structured data helps search engines understand image context.
  • It can enhance image appearance in search results.

Best Practices:

  • Use Schema.org ImageObject markup.
  • Include image URL, caption, and license information.

Action: Add image structured data to relevant pages.

The Image SEO Checklist

  • [ ] Are file names descriptive and keyword-rich?
  • [ ] Is alt text descriptive and under 125 characters?
  • [ ] Are images compressed without quality loss?
  • [ ] Are images using next-gen formats (WebP, AVIF)?
  • [ ] Are images sized correctly for their display dimensions?
  • [ ] Is lazy loading implemented?
  • [ ] Is there an image sitemap?
  • [ ] Is structured data used for images?
  • [ ] Are images accessible to visually impaired users?

The Case: Image SEO in Action

An e-commerce site, 'FurnishStyle,' had thousands of product images but poor image optimization. File names were generic, alt text was missing, and images were uncompressed.

The Intervention:

  1. File Names: Renamed all new images with descriptive, keyword-rich names.
  2. Alt Text: Added alt text to all images (descriptive, keyword-rich).
  3. Compression: Compressed all images (reducing file size by 60%).
  4. Formats: Converted images to WebP where possible.
  5. Sitemap: Added image sitemap.

The Results (3 months):

Metric Before After % Change
Image Search Traffic 80 visits/mo 420 visits/mo +425%
Page Load Speed 4.8s 2.3s -52%
Bounce Rate 58% 34% -41%
Conversion Rate 1.6% 3.2% +100%
Accessibility Score 65/100 92/100 +42%

Summary

Image SEO is often overlooked but offers a significant opportunity. By optimizing file names, alt text, compression, and structured data, you can improve rankings, drive image search traffic, enhance accessibility, and boost user experience. The best part? It's relatively easy to implement and delivers immediate results.

References and Further Reading

  1. Google (2024). Image SEO Guide.
  2. Semrush (2024). Image Optimization Best Practices.
  3. Ahrefs (2024). Image SEO Checklist.
  4. Moz (2024). Alt Text and Image SEO.
  5. WebAIM (2024). Accessible Images.

Mentioned terms

  • SEO — The discipline of positioning pages in the organic results of search engines.…
  • Sitemap — A sitemap is an XML file at /sitemap.xml that lists the URLs a site wants crawlers to discover and index, with optional …
  • URL — A URL (Uniform Resource Locator) is the addressable identifier of a resource on the web, formed by scheme, host and path…
  • XML sitemap — A file that lists all important URLs on a site to help search engines discover and index them, complementing internal li…