SEO

Image File Name

Also called Image filename, image slug

Descriptive, hyphenated words in an image's address that help search engines and people work out what the picture shows.

Quick facts: Image File Name

Category
SEO
Also called
Image filename, image slug
Level
Beginner
Affects
Image search visibility, media library housekeeping, image URLs
Where to see it
Your CMS media library, Screaming Frog (Images tab), Google Search Console Performance report with search type set to Image
In this article4
  1. How an image file name works
  2. Why image file names matter
  3. Common mistakes with image file names
  4. How to act on it

How an image file name works

The file name is the last part of an image’s address — the words sitting between the final slash and the extension. It travels with the file wherever it goes, and because a photograph contains no text a crawler can read, that name is one of a small handful of clues about what the picture actually shows. The others are the alt attribute, the caption and the words on the page around it.

Separate words with hyphens. Underscores are read as joins rather than gaps, so a name built with them can arrive as one long unreadable string. Keep everything lower case as well: some servers treat upper and lower case as different files, and a mismatch between the file and the code that calls it shows the visitor a broken image instead of a photograph.

Why image file names matter

This is a supporting signal, not a lever. Naming a file well will not move a page up the ordinary results, and anyone who tells you otherwise is overselling it. What it does is give image search a fair chance to understand the picture, which matters far more in some businesses than others — hotels, restaurants, trekking operators, clothing retailers and anyone whose customer looks before they read.

It also helps people. A file name persists after an image is downloaded, emailed to a colleague or dropped into a proposal, and a descriptive one saves someone opening every file in a folder to find the right room photograph. Sensible naming is a filing habit that happens to help search, which is why it survives longer than most optimisation tasks.

Common mistakes with image file names

The most common is shipping whatever the camera or the design tool produced: a prefix and a run of digits that describe nothing. The opposite mistake is cramming every phrase the page targets into one name, which reads as spam to a person and adds nothing for a machine. If you would be uncomfortable reading the name aloud, shorten it.

The expensive mistake is renaming images that are already live. A file name is part of a URL, so changing it breaks every reference to it — your own pages, other people’s, and anything the image index already holds. Do the renaming before upload, or accept that the old addresses need redirecting afterwards.

How to act on it

Fix it going forward first. Agree a naming pattern at the point images are exported, so nobody has to remember the rule later: the subject, then whatever distinguishes this shot from the next one, is usually enough. For images already published, leave the ones that are working and rename only where you are replacing the file anyway, such as during a compression pass.

Pair the name with the alt text on the same image, which carries more weight and also serves people using screen readers, and treat both as part of routine on-page SEO rather than a project of their own.

Do and do not

Do

  • Name files before upload, describing what the picture shows
  • Separate words with hyphens and keep everything lower case
  • Set the naming rule at export, not after upload

Do not

  • Stuff phrases into a name you would not read aloud
  • Rename a live image without redirecting the old address
  • Rely on the file name instead of writing alt text

Questions people ask about this

Does renaming my images improve rankings?

Not on its own. A descriptive file name is a small supporting clue about what a picture shows, and it mainly helps image search rather than the ordinary results. If a page is not ranking, the cause is almost always the content, the links or the technical setup. Rename images because it is tidy and it helps image search, not as a fix for a weak page.

Should I put my keyword in every image file name?

No. Repeating the same phrase across every image on a page looks manipulative and tells a search engine nothing new. Name each file after what is actually in that particular picture. If several photographs show the same room from different angles, the difference between the names is the useful part, not the phrase they share.

Is it safe to rename images that are already on my site?

Renaming changes the image's address, so anything pointing at the old one stops working: your own pages, other sites that embedded it, and whatever the image index already knows. If you must rename, redirect the old path to the new one and update every page that uses the file. On a large site the effort rarely pays for itself.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.