Your camera spits out IMG_4829.jpg. Your designer exports final-final-v2.png. You upload them straight to your site without a second thought. Meanwhile, Google is trying to figure out what those images show, and the file name is one of the clearest hints you could have given it. Instead, you handed it a riddle.
Image file names are a small ranking factor with an outsized role in image search. Google uses them alongside alt text, surrounding content, and structured data to understand what an image depicts. A descriptive file name will not single-handedly rank your page, but across hundreds of images, good naming builds a consistent signal that helps your visuals get discovered.
This guide covers practical naming conventions, the mistakes that waste the opportunity, and how file names fit into the broader picture of image SEO.
Search engines cannot see images the way humans do. While computer vision has improved dramatically, Google still relies heavily on textual signals to understand image content. The file name is one of the first signals it reads, before alt text, captions, or page context.
Descriptive file names help in two ways. First, they contribute to image search rankings: a file named handmade-leather-wallet-brown.jpg is far more likely to surface for leather wallet queries than IMG_4829.jpg. Second, they reinforce the topical relevance of the page itself. When every signal on the page, including image file names, points to the same topic, search engines gain confidence about what the page covers.
There is also a practical benefit outside SEO. Descriptive names make your media library searchable and manageable. Anyone who has scrolled through hundreds of files named screenshot-2024-01-15-at-3.42.11-PM knows the pain. Good naming is good asset management, and the SEO benefit comes free with it.
You do not need a complicated system. A simple, consistent convention applied to every upload beats an elaborate taxonomy that nobody follows. Here is what works:
Certain habits actively undermine your image SEO or create technical problems. Watch out for these:
A great file name with a terrible everything else will not rank. Image SEO works as a system, and the file name is one component among several that need to work together.
Alt text remains the most important textual signal for images. Write alt text that describes the image for someone who cannot see it, naturally including relevant keywords. The file name and alt text should complement each other, not repeat verbatim. If the file is red-ceramic-pour-over-coffee-dripper.jpg, the alt text might be "Red ceramic pour-over coffee dripper brewing coffee on a wooden counter."
Surrounding content matters too. Google looks at the text near the image, the page title, and captions to build its understanding. An image placed in a relevant section with a descriptive caption outperforms the same image dropped randomly on the page.
Technical factors complete the picture. Compress your images so they load fast, since page speed affects rankings and user experience. Stripping unnecessary metadata with an EXIF data remover reduces file size and removes potentially sensitive information like GPS coordinates from photos. Running images through an image compressor before upload is one of the highest-return habits in image SEO: smaller files, faster pages, happier visitors.
The reason most sites have terrible image file names is not ignorance but friction. Renaming feels like extra work at upload time. The fix is making it part of an automatic workflow rather than a separate chore.
Product images deserve extra care because they often appear in Google Images results that drive purchase intent. Include the product name, a key attribute like color or size, and the brand if relevant: nike-air-zoom-pegasus-40-blue.jpg is discoverable in ways that product-78412.jpg never will be.
For infographics and charts, the file name should describe the topic, not the format. website-speed-statistics-2024.jpg beats infographic-final.png by a wide margin for anyone searching for that data.
Decorative images that add no information, like background textures or dividers, do not need SEO-optimized names. Give them simple functional names like bg-texture-light.png and consider marking them with empty alt attributes so screen readers skip them.
Yes, as one signal among many for image search and a minor relevance signal for web search. Google has confirmed that file names help it understand image content. The effect of any single file name is small, but consistent descriptive naming across a site builds a meaningful cumulative signal.
Hyphens. Google treats hyphens as word separators, so red-carpet.jpg is read as "red carpet." Underscores are treated as connectors, so red_carpet.jpg is read as "redcarpet." This has been Google's documented behavior for years, and hyphens are the safe choice.
For your most important pages, yes, but do it carefully. Renaming changes the image URL, so update all references and consider redirects for images with inbound links. For new uploads, always name correctly from the start. A bulk rename of thousands of historical images is rarely worth the risk and effort.
Aim for three to five descriptive words, roughly 20 to 50 characters plus the extension. That is enough to be specific without becoming unwieldy. If you find yourself writing sentences, move the extra detail into the alt text or caption instead.
No, and it should not match exactly. The file name and alt text are complementary signals. Use the file name for a concise keyword-rich label and the alt text for a fuller natural-language description of what the image shows. Repeating the identical phrase in both wastes an opportunity to provide richer context.
Image file naming is one of those rare SEO tasks that is genuinely easy once it becomes habit. Rename at export, use hyphens and lowercase, describe what the image shows in a few words, and skip the keyword stuffing. Your media library becomes manageable, your images become more discoverable, and every page gains a small but real relevance signal. Before you upload your next batch, clean the metadata with Seovaro's free EXIF data remover and compress them with the image compressor so they load fast as well as rank well.