Meregate.com
Thursday, November 12, 2026
Home › SEO › Image File Names for SEO: Rules, Examples & Formula

Image File Names for SEO: Rules, Examples & Formula

Image File Names for SEO: Rules, Examples & Formula

Good image file names for seo are small, clear, and honest. They tell Google and your readers what is in the picture. A name like blue-running-shoes-nike-air-zoom.jpg does that job. A name like IMG_00023.JPG does not. This guide gives you the rules, a simple naming formula, and good and bad examples you can copy for your own images.

A side-by-side comparison of a bad image file name IMG_00023.JPG and a good descriptive file name blue-running-shoes.jpg
Source: Pexels

Do Image File Names Matter for SEO?

Yes, but only a little. Google says file names give it “very light clues” about what an image shows. That is the honest answer. A good file name will not push a weak page to the top of Google on its own. It will not fix a slow site or thin content.

So why bother? The work is small and the payoff adds up. A clear file name helps Google understand the image, helps it show up in Google Images, and helps you find the image again in your media library six months later.

The 5 Rules for Naming Images for SEO

These five rules cover almost every case. If you follow them, your file names will be clear, safe, and easy to read.

1. Describe what is in the image

Use real words that say what the picture shows. Be specific. Add the main subject first, then one or two useful details such as color, type, or use.

Good: red-leather-wallet-front-view.jpg, chocolate-chip-cookies-baking-tray.jpg. Bad: IMG_4821.jpg, photo1.jpg, final-final-v2.jpg.

Do not stuff in extra keywords. A name like best-cheap-red-leather-wallet-buy-online-free-shipping.jpg looks spammy and helps no one.

2. Use hyphens between words, not underscores or spaces

Use hyphens to separate words. Google reads hyphens as word separators. It treats underscores as joiners, so blue_shoes.jpg can read as one word, blueshoes, instead of two words.

Good: white-cotton-t-shirt.jpg. Bad: white_cotton_t_shirt.jpg, white cotton t shirt.jpg, whitecottontshirt.jpg.

Spaces cause problems too. A space in a file name turns into %20 in a URL, which looks messy and is easy to break when you copy a link.

3. Keep it short and lowercase

Keep file names short. Three to five words is a good target. Long names get cut off in file lists, and they make URLs hard to read. If you need more detail, put it in the alt text or the caption, not the file name.

Use lowercase only. Some servers treat Photo.JPG and photo.jpg as two different files. Mixed case leads to broken images when you move a site.

Good: stainless-steel-water-bottle.jpg. Bad: Stainless-Steel-Water-Bottle-Insulated-32oz-BPA-Free-For-Gym-And-Travel.JPG, IMG_20261112_143022_Burst01.jpg.

4. Use plain letters only, no special characters

Use the letters a to z, numbers, and hyphens. Avoid accents, symbols, and punctuation such as &, #, ?, %, +, and apostrophes. They can break links, cause upload errors, or show up as odd codes in a URL.

This matters most for non-English words. If your image shows a German, French, or Spanish subject, spell it with plain English letters. For example, use creme-brulee.jpg instead of crème-brûlée.jpg, and munchen-city-guide.jpg instead of münchen-city-guide.jpg.

5. Name the file before you upload it

Rename the image on your computer before you upload it to your site. That is the cleanest way to do it. Once a file is in WordPress or Shopify, its URL is set from the name you uploaded. Changing it later means changing the URL, which we cover below.

A Simple Naming Formula You Can Copy

If you want a template, use this one:

[subject] – [detail] – [detail]

Examples:

  • Subject: running shoes. Detail: blue. Detail: side view. Result: blue-running-shoes-side-view.jpg
  • Subject: coffee maker. Detail: stainless steel. Result: stainless-steel-coffee-maker.jpg
  • Subject: chart. Detail: email open rates. Detail: 2026. Result: email-open-rates-chart-2026.jpg

Compare DSC_0042.jpg with golden-retriever-puppy-grass.jpg, or logo-final-v3-new-2.png with meregate-logo-dark.png. The clear name wins every time. Use the same pattern across your site so your media library stays easy to search.

File Name vs Alt Text vs Title vs Caption

These four things do different jobs. People mix them up, so here is the short version.

The file name is the name of the image file itself, such as blue-running-shoes.jpg. It becomes part of the image URL. It gives Google a light clue about the image.

The alt text is a short text that describes the image for people who cannot see it, and for search engines. It shows if the image fails to load. It is the most important of the four for both access and SEO. Our guide to alt text explains what to write and how long it should be.

The title is a field your media library may show when you hover over an image. Most visitors never see it, and it has little SEO value.

The caption is text that shows under the image on the page. Use it only when it adds something for the reader. Do not repeat the alt text word for word in the caption.

In short: the file name names the file, the alt text describes the image, the title is a minor label, and the caption is a note for the reader. Alt text does the heavier work.

See Google’s image SEO best practices for the same basics.

Naming Images by Type

One pattern does not fit every image. Here is how to name the common types you will upload.

Product photos

Use the product name plus one or two facts a buyer would search for: color, material, size, or model. Put the product first. Good: black-leather-handbag-medium.jpg, iphone-15-clear-case.jpg. If you have several photos of the same product, add the view at the end: front-view, back-view, or detail.

Screenshots

Name a screenshot by what it shows, not by when you took it. The date and time in a default screenshot name help no one.

Good: google-search-console-performance-report.png, wordpress-add-new-post-screen.png. Bad: Screenshot-2026-11-12-at-9.14.02-AM.png. Use PNG for screenshots with text and JPG for photos.

Logos

Keep logo names short and fixed. Use your brand name plus the version, such as color or background. Do not add dates or version numbers like v3 or final to a live logo file. Good: meregate-logo.png, meregate-logo-white.png.

Charts and infographics

Name a chart by its topic and what it measures. Add the year only if the data is tied to that year. Good: email-marketing-open-rates-2026.jpg, website-traffic-growth-chart.jpg. Charts often get shared and saved, so a clear name helps the chart travel with its topic attached.

Blog featured images

Name a featured image after the post topic. It should match the article subject, not the stock photo title. Good: small-business-website-design-tips.jpg. Bad: pexels-photo-3184291.jpg. If you download a photo from a free stock site, rename it before upload.

A WordPress media library view showing clearly named image files organized by topic
Source: Pexels

How to Rename Images in Bulk

WordPress

In WordPress, the file name you upload becomes the media file URL. To rename files already in the media library, you need a rename plugin. There are free plugins that let you change a media file name from the media library screen. In general, they rename the file, update the media library entry, and can update the places where that image is used on your site. Before you run any bulk rename, back up your site and test on one or two images first. Then run the rest in small batches.

The manual method works too, and it is safer for a small set. Download the image, rename it on your computer, upload it again as a new file, swap it into the post, and delete the old file.

Shopify

On Shopify, product image file names are set when you upload the image. Rename the file on your computer before upload, which is the cleanest method. If the image is already live, upload a renamed copy and replace the old one on the product page. Shopify also lets you edit image alt text from the product page. That is separate from the file name.

Should You Rename Images Already Published?

This is the part people get wrong. Renaming a published image changes its URL. If that image URL is linked anywhere, shared on social media, or indexed by Google, the old link will break unless you handle it.

  • If the image is new and gets little traffic, rename it and update the post. The risk is low.
  • If the image ranks in Google Images or gets steady traffic, think twice. The small gain from a better name may not be worth losing the current ranking. You can still improve the alt text instead.
  • If you do rename a published image, set up a redirect from the old image URL to the new one. In WordPress, a redirect plugin can do this. Without a redirect, anyone who clicks the old link will see a broken image.

A common mistake is to rename files in the media library without checking the posts that use them. The file name changes, but the post still points to the old URL. Always check the live page after a rename. If you have hundreds of old images with bad names, fix the images on your top pages first, then work through the rest in small batches.

Common Mistakes to Avoid

  • Leaving camera names: IMG_0001.jpg, DSC_0042.jpg, and photo.jpg say nothing about the image.
  • Using underscores or spaces: use hyphens. Spaces turn into %20 in URLs.
  • Stuffing keywords: a long name full of search terms looks spammy and reads badly.
  • Using the same name twice: two files called logo.png in different folders can cause mix-ups.
  • Adding dates to every file: a date helps only when the image is tied to a date, such as a chart.
  • Renaming live images without a redirect: this breaks old links and indexed images.

Frequently Asked Questions

Do image file names matter for SEO?

Yes, a little. Google says file names give it very light clues about an image. A clear name helps Google understand the picture and helps it show up in image search. It is a small factor, not a ranking trick.

What is the best way to name images for SEO?

Use a short, clear name in lowercase with hyphens between words. Describe what is in the image in three to five words. For example, blue-running-shoes-side-view.jpg. Name the file before you upload it, and do not stuff in extra keywords.

What are image file names?

An image file name is the name of the image file, such as red-leather-wallet.jpg. It becomes part of the image URL on your site. It is different from alt text, which describes the image in the page code, and from the caption, which shows under the image for readers.

How to properly name image files?

Start with the subject, add one or two useful details, join the words with hyphens, use lowercase, and keep it short. Avoid spaces, underscores, special characters, and camera codes like IMG_0001. Use the formula [subject] – [detail] – [detail], and rename the file before you upload it.

Should I rename images that are already published?

Only if the gain is worth the risk. Renaming changes the image URL, so old links can break. If you do rename, set up a redirect from the old URL to the new one and check the live page.

Good file names are a small habit with a real payoff. They make your media library easy to search and help readers find your work in image search. Pick the formula and use it every time you upload.

Taylor Orlando

Taylor Orlando is a content writer at Meregate covering websites, SEO, and AI. Taylor breaks down complex topics into simple, practical guides that help small businesses build better websites, rank higher on Google, and get real value from AI tools — no jargon, no fluff.

Related Articles

Why Is My Website Not Showing on Google? 6 Fixes
SEO

Why Is My Website Not Showing on Google? 6 Fixes

If your website is not showing on Google, the cause is usually simple: it is not indexed yet, something is blocking Google, or it ranks too low to see. This guide walks through each check in order.

November 12, 2026 · Taylor Orlando