Blog
SEO
Darren Stewart
June 15, 2024

How to Name Images for SEO: A Step-by-Step Guide

Naming images correctly is a crucial aspect of SEO that can improve your website’s visibility on search engines. This guide will walk you through the process of naming images for SEO, including practical examples and visual aids with appropriate alt text.

Naming images correctly is a crucial aspect of SEO that can improve your website’s visibility on search engines. This guide will walk you through the process of naming images for SEO, including practical examples and visual aids with appropriate alt text.

Step 1: Choose Descriptive and Relevant File Names

1.1 Use Keywords

Example

Bad Example: IMG001.jpg
Good Example: sunset-over-mountains.jpg

1.2 Use Hyphens to Separate Words

Example

Bad Example: sunset_over_mountains.jpg
Good Example: sunset-over-mountains.jpg

Step 2: Optimize Alt Text

2.1 Describe the Image

Example

Bad Example: alt="beautiful sunset"
Good Example: alt="beautiful sunset over the Rocky Mountains during summer"

2.2 Provide Context

Example

Bad Example: alt="team"
Good Example: alt="diverse team of colleagues working on a project in a modern office"

Step 3: Use Captions

3.1 Add Captions to Images

Example

Bad Example: No caption
Good Example: Caption: A diverse team of colleagues collaborating on a project in a modern office.

Step 4: Compress and Optimize Image Size

4.1 Use Image Compression Tools

Example

Original Image: sunset-over-mountains.jpg (5MB)
Compressed Image: sunset-over-mountains.jpg (500KB)

Step 5: Implement Structured Data

5.1 Add Schema Markup

Example

<script type="application/ld+json">
{
 "@context": "https://schema.org/",
 "@type": "ImageObject",
 "contentUrl": "https://example.com/sunset-over-mountains.jpg",
 "license": "https://creativecommons.org/licenses/by/4.0/",
 "acquireLicensePage": "https://example.com/license",
 "creator": {
   "@type": "Person",
   "name": "John Doe"
 }
}
</script>

Step 6: Ensure Mobile-Friendliness

6.1 Use Responsive Images

Example

<img src="sunset-over-mountains.jpg"
    srcset="sunset-over-mountains-400.jpg 400w,
            sunset-over-mountains-800.jpg 800w"
    sizes="(max-width: 600px) 400px, 800px"
    alt="Beautiful sunset over the Rocky Mountains during summer">

Tools and Resources

Image Optimization Tools

References

By following this step-by-step guide, you can effectively name and optimize images for SEO. Using descriptive file names, optimizing alt text, adding captions, compressing images, implementing structured data, and ensuring mobile-friendliness are crucial strategies to enhance your website’s visibility on search engines. These practices not only improve SEO but also enhance user experience, making your content more accessible and engaging.

find a SaaS expert

Browse our SaaS agency directory

Have a look through our directory of agencies that specialise in working with B2B SaaS & Technology brands.

view the agencies

Find an Expert

We've collated lists and directories of the best B2B SaaS marketing consultants, agencies and experts. Use our lists to shortlist your supplier of choice for your next marketing strategy.

Find an Expert