Best Practices for Image Filenames and Alt Tags: A Quick SEO Checklist

A side-by-side comparison on a laptop screen showing generic camera filenames being renamed to descriptive, SEO-friendly filenames for web optimization.

When optimizing your website for search engines, it’s easy to focus on keywords, page titles, meta descriptions, and site structure while overlooking the images on your pages.

Image filenames and alt text are simple details you can get right before publishing. Descriptive filenames help provide context about an image, while well-written alt text makes meaningful images accessible to visitors using screen readers and helps search engines understand their content.

Neither is a shortcut to higher rankings, but both are worth getting right. Use this checklist whenever you prepare images for your website.

1. Use Lowercase Letters and Hyphens in Filenames

Before uploading an image, give it a clear, descriptive filename. Use lowercase letters and hyphens to separate words.

For example:

  • Better: website-builder-dashboard.jpg
  • Avoid: Website_Builder_Dashboard.JPG
  • Avoid: website builder dashboard.jpg

Why lowercase? Some web servers treat uppercase and lowercase filenames as different files. For example, Website-Builder.jpg and website-builder.jpg may point to different URLs. Using lowercase consistently helps prevent filename mismatches and makes file management easier.

Why hyphens instead of spaces or underscores? Spaces in URLs are typically encoded as %20, which makes them less readable. Underscores are valid, but Google recommends hyphens because they clearly separate words in URLs, helping search engines distinguish individual words. Hyphens also make filenames easier for people to read.

Consistent naming keeps your media library organized, makes filenames easier to understand, and helps avoid unnecessary URL and file-management issues.

2. Replace Generic Filenames with Descriptive Ones

Camera defaults and automatically generated filenames rarely tell anyone what an image contains.

Instead of uploading files named IMG_0012.jpg, image-upload.png, or screenshot-1.png, describe the image’s actual subject.

For example:

  • Better: php-domain-availability-checker.jpg
  • Better: website-contact-form-example.png
  • Better: ecommerce-product-page.jpg

Keep filenames concise and specific. Include relevant terms when they accurately describe the image, but don’t cram in keywords just to make the filename longer.

A descriptive filename provides useful context. It doesn’t need to contain every keyword you’re targeting on the page.

3. Write Alt Text That Describes the Image

Alt text, short for alternative text, describes an image for visitors who cannot see it. Screen readers can announce the description, making meaningful visual content accessible to people with visual impairments.

Alt text also helps search engines understand what an image depicts.

Write descriptions that reflect the actual image and its purpose in the surrounding content.

Example:

  • Good: Website contact form with name, email, and message fields
  • Poor: website builder SEO best website builder contact form website design

The first description communicates what the image shows. The second is a string of keywords that doesn’t read like a useful description.

You don’t need to force a target keyword into every alt attribute. If a relevant keyword naturally describes the image, include it. Otherwise, prioritize accuracy and clarity.

For more detail about how images affect SEO, accessibility, and search visibility, read Do Images and Alt Text Actually Help SEO? and Do Images Help SEO on Blogs and Webpages? What If You Don’t Use Them?.

4. What If You Don’t Want Your Images in Google Images?

Not every website owner cares about getting traffic from Google Images. You might use images mainly to illustrate blog posts, decorate pages, show your software interface, or support your website’s overall design.

That’s fine. You don’t need to spend extra time optimizing every image specifically for image search.

However, don’t confuse image search optimization with accessibility. Meaningful images should still have appropriate alt text, even if you don’t care whether they appear in Google Images. Alt text helps visitors using screen readers understand the content of your pages.

If you don’t want particular images to appear in Google Images, you can configure your website to prevent images from appearing in Google Search results. One method is to use robots.txt rules targeting Google’s image crawler, Googlebot-Image. Another is to send an X-Robots-Tag: noindex HTTP header for the image URLs. These methods require the appropriate configuration, and changes may take time to affect search results. Blocking an image from crawling is not the same as removing an image that’s already indexed.

For most website owners, the practical approach is simple: prioritize accessibility, optimize important images that could attract relevant search traffic, and don’t waste time trying to make every decorative image rank in image search.

5. Leave Alt Text Empty for Decorative Images

Not every image needs a descriptive alt attribute.

If an image is purely decorative and adds no meaningful information, use an empty alt attribute (alt=""). This allows screen readers to skip it instead of announcing unnecessary information.

For example, a decorative divider or background flourish generally doesn’t need a description.

However, an image that communicates information, illustrates a concept, or helps explain the content should have appropriate alt text. A product image, instructional screenshot, or informative diagram should not be treated as merely decorative.

The goal is to provide useful information, not to fill every alt attribute with keywords.

6. Make Sure the Filename and Alt Text Describe the Same Image

Filenames and alt text serve different purposes, but they should accurately describe the same image.

For example, an image showing a website’s member login form could use:

  • Filename: website-member-login-form.png
  • Alt text: Member login form with email and password fields

The filename is a concise label, while the alt text describes the visible content.

Avoid using a filename that describes one subject and alt text that describes something else. Both should match the actual image.

7. Choose Relevant Images and Optimize Them Before Uploading

Image optimization involves more than filenames and alt text.

Choose images that support the page’s content, and make sure they display clearly at the intended size. Compress image files appropriately to reduce loading time without making them look noticeably worse.

WebP is a useful image format that can reduce file sizes while maintaining good visual quality. UltimateWB makes this easy with its built-in WebP converter in the website admin panel. You can convert images in the Page Editor’s image boxes to WebP and deconvert them back to their original formats when needed. UltimateWB retains the original images as fallbacks on your website when an alternative format is needed.

If you use the integrated UltimateWB WordPress Blog option, images are automatically converted to WebP, with the original images retained as fallbacks. You don’t need to convert each blog image manually.

Remember that descriptive filenames and alt text don’t compensate for unnecessarily large image files. Image quality, file size, and relevance all matter to the visitor’s experience.

8. Avoid Changing Published Image Filenames Without a Plan

It’s best to choose a descriptive filename before uploading an image.

If an image is already published, renaming the file can change its URL. Existing pages, external websites, or other references may still point to the old address.

If you need to rename a published image, update references to it and arrange an appropriate redirect when necessary. Don’t break working image URLs just to replace an acceptable filename with a slightly better one.

For new images, establishing a consistent naming habit from the beginning is much easier.

Your Image SEO Checklist Before Publishing

Use this quick checklist whenever you add images to a page or blog post.

  • The filename describes the image.
  • The filename uses lowercase letters and hyphens between words.
  • The filename is concise, without unnecessary keywords.
  • Meaningful images have accurate, useful alt text.
  • Decorative images have empty alt text where appropriate.
  • The filename and alt text accurately describe the same image.
  • The image is relevant to the page and displayed at an appropriate size.
  • The image file is optimized for reasonable loading times.
  • Existing image URLs are preserved when updating published content, or redirects are handled properly if URLs change.

Make Image Optimization Part of Your Publishing Routine

Image filenames and alt text are easy to overlook when you’re busy creating pages, publishing articles, or adding products to your website. Making them part of your regular publishing checklist helps you maintain a more organized website and provide a better experience for visitors.

If you’re using UltimateWB, you can enter image alt text directly through the built-in Page Editor when editing an image. That makes it easier to handle image descriptions as part of your normal content workflow rather than treating them as a separate SEO task.

Use descriptive filenames and accurate alt text, but don’t make it an exercise in keyword stuffing just to try to influence rankings.

Image optimization is just one part of an effective SEO strategy. Your website platform matters, too. Read What’s the Best Website Builder for SEO? to learn what to look for in a website builder when search engine optimization is a priority. You can also read How Clean HTML Can Boost Your SEO (Even Without Coding) to learn more about the technical foundations of an SEO-friendly website.


Looking for a website builder that treats your images right? Learn more about UltimateWB! We also offer web design packages if you would like your website designed and built for you.

Got a techy/website question? Whether it’s about UltimateWB or another website builder, web hosting, or other aspects of websites, just send in your question in the “Ask David!” form. We will email you when the answer is posted on the UltimateWB “Ask David!” section.

About the UltimateWB Team

This article was written and reviewed by the UltimateWB Development Team. With over 20 years of hands-on experience in full-stack web development, database optimization, and secure server administration (WHM/cPanel), we engineer UltimateWB with clean, built-in apps so you never have to deal with the performance-draining software bloat, security risks, or compatibility issues of third-party plugins. We build software designed from day one for maximum developer autonomy and lightning-fast performance.

This entry was posted in Photos Management, Search Engine Optimization (SEO) and tagged , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *