Every image on your website arrives with a file name, and most business owners never think twice about it. A photo comes off a camera or a phone called IMG_4521.jpg, or a designer sends a file called final-version-3.png, and it gets uploaded exactly as it is. That is understandable, because the file name is invisible to most visitors. But it is not invisible to Google. Search engines cannot see an image the way a person can, so they rely on clues around it, and the file name is one of the clearest clues you can give them. A well-named image file helps Google understand what the picture shows, which can help the page it sits on and can also bring visitors through Google Images. It costs nothing, takes seconds, and is one of the simplest improvements you can make to your website.

Why the file name matters at all

Google reads the web largely as text. When it meets an image, it looks at several signals to work out what the image is about: the file name, the alt text, the caption if there is one, the text around the image on the page, and the page title. Of all of those, the file name is the one most often wasted. A file called IMG_4521.jpg tells Google nothing at all. A file called handmade-leather-wallet-brown.jpg tells Google a great deal: it is a wallet, it is handmade, it is leather, and it is brown. That description matches the kind of words a real customer might type into a search box. Good file names will not transform your rankings overnight, but they are part of how a page builds relevance for its topic. They also matter for your own organisation. Six months from now, when you need to find a particular product photo, a folder full of descriptive names is far easier to search than a folder full of camera codes.

What a good image file name looks like

A good image file name is short, descriptive, and written in plain words separated by hyphens. Use lowercase letters, and use hyphens between words rather than underscores or spaces, because search engines read hyphens as word separators. Keep the name focused on what the image actually shows, and put the most important words first. For example, a bakery photographing a chocolate cake might use chocolate-birthday-cake-with-cream-frosting.jpg. A plumber showing a completed bathroom might use modern-bathroom-renovation-white-tiles.jpg. A clothing shop might use mens-blue-cotton-shirt-slim-fit.jpg. Notice that each name describes the image honestly and specifically, without trying to cram in every possible keyword. Three to six words is usually enough. A name does not need to be a sentence, and it does not need to repeat your business name or your town on every single image. If the location genuinely matters to the image, including it once is reasonable, but adding it to every file name is unnecessary.

What to avoid when naming images

There are a few habits that make image file names useless or even harmful. The first is leaving the camera or phone default, such as IMG_4521.jpg, DSC_0087.jpg, or Screenshot-2026-01-15.png. These say nothing about the image. The second is keyword stuffing, which means cramming a file name full of search terms that do not describe the picture, such as cheap-best-affordable-plumber-london-emergency-24-hour.jpg for a photo of a tap. Google is good at spotting this, and it does not help. The third is using vague names like image1.jpg, photo-final.jpg, or banner-new.jpg, which are no better than camera codes. The fourth is using underscores or spaces, such as leather_wallet_brown.jpg. Spaces in a file name can cause technical problems, and underscores are not treated as word separators in the same way hyphens are. Finally, avoid very long file names. A name with fifteen words is hard to read and usually means you are trying to do too much with one file name. Describe the image, then stop.

File names, alt text, and captions are different jobs

It is easy to confuse file names with alt text, because both describe an image, but they do different jobs and you need both. The file name is the name of the file itself, set before or during upload. Alt text is a short description you add to the image after uploading it, inside your website editor. Alt text is read aloud by screen readers for visitors who cannot see the image, and it is shown if the image fails to load. It is also another signal Google uses. A good alt text is a natural sentence describing the image, such as "A handmade brown leather wallet on a wooden table." The file name can be shorter and more keyword-like, while the alt text should read like normal language. A caption is the text shown underneath the image on the page, visible to everyone, and it works best when it adds something useful, such as explaining what is happening in a photo. You do not need to make the file name, alt text, and caption identical. Let each one do its own job.

How to rename images you have already uploaded

If your website already has dozens of images with camera-code names, do not panic, and do not try to fix them all in one sitting. Start with the images that matter most: your home page, your main service pages, your best-selling product photos, and the images on your most visited blog posts. On WordPress, renaming an image properly usually means uploading a fresh copy with the new name and replacing the old one, because simply renaming the file in the media library does not always change the address the page uses. That sounds tedious, but it is the reliable way to do it, and you can work through your important pages one at a time. On Shopify and other platforms, the process is similar: upload the correctly named file and swap it in. While you are at it, check the alt text on the same images, since you are already looking at them. For new images, build the habit into your workflow. Before uploading anything, take five seconds to rename the file on your computer first. Name it, then upload it, and you will never have to do a big cleanup again.

Frequently asked questions

Does the image file name really affect my Google ranking?

It is one small factor among many, not a major ranking signal on its own. A good file name helps Google understand what the image shows, which supports the relevance of the page, and it can help the image appear in Google Images results. It will not rescue a weak page or compensate for poor content, but as part of good overall optimisation it is worth doing, especially since it costs nothing.

Should I use keywords in image file names?

Yes, but only words that honestly describe the image. If your photo shows a red leather handbag, red-leather-handbag.jpg is a sensible file name. What you should not do is add words that have nothing to do with the picture just because people search for them. Describe what is actually in the image, and let the relevant words appear naturally in that description.

Can I rename an image after it is already live on my site?

You can, but it usually means uploading a new copy of the image with the new name and replacing the old one on the page, rather than simply renaming the existing file. The old image address may still exist or be linked elsewhere, so check that the page uses the new file. For important pages it is worth the small effort; for old blog posts that get little traffic, it is fine to leave them and apply good naming to new uploads.

What file format should my images be in?

For photographs, JPG is usually the best choice, because it keeps file sizes small while looking good. For graphics, logos, and images that need a transparent background, PNG is better. A newer format called WebP can give you smaller files than both, and most modern websites support it. Whatever format you choose, keep the file size as small as you reasonably can without losing visible quality, because large images slow your pages down, and speed matters to both visitors and Google.

Renaming your image files is one of the smallest SEO jobs there is, and that is exactly why it is worth doing. It takes seconds per image, it costs nothing, and it helps Google understand what you are showing the world. Start with your most important pages, build the habit for every new upload, and your website will be a little easier to find and a little easier to manage. If you would like help making your whole website easier to find, from image optimisation to a full review of your pages, you can contact Shehryar Noor to talk about it, or explore the SEO services available.