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.
