Free Website Folk Help Centre

Best Practices for Naming Your Image Files for Search Engines

When you upload an image to your WordPress website, the name of the image file can provide useful information about what the image contains.

Giving your images sensible, descriptive file names is a small part of good SEO practice and can also make your Media Library much easier to manage.

The good news is that it is very simple to do.

The main rule is:

Name your image based on what it actually shows.

Why do image file names matter?

Search engines cannot understand an image in exactly the same way a person can.

They use information around the image, including its file name, surrounding content and other details, to help understand what the image represents.

For example, a file called:

IMG_4837.jpg

does not tell you or a search engine very much.

A file called:

london-office-exterior.jpg

is much more useful because it clearly describes the image.

A good file name also makes your WordPress Media Library easier to manage later.

Step 1: Name the image before uploading it

The easiest time to rename an image is before you upload it to WordPress.

Find the image on your computer and rename the file.

For example:

Before:
IMG_4837.jpg

After:
london-office-building.jpg

Then upload the renamed image to WordPress.

This is much easier than trying to organise hundreds of poorly named images later.

Step 2: Describe what is actually in the image

Think about what someone would naturally call the image.

For example:

red-front-door.jpg

is better than:

beautiful-door.jpg

The first describes what the image actually shows.

Similarly:

team-meeting-office.jpg

is more useful than:

our-team-photo-final.jpg

Try to be specific without making the file name unnecessarily long.

Step 3: Include a relevant location when useful

If the location is important to the image, you can include it.

For example:

manchester-office-reception.jpg

or:

surrey-garden-landscaping.jpg

This can be particularly useful for businesses that serve specific towns, cities or regions.

However, do not add locations simply to try to appear in local searches.

Only include a location when it is genuinely relevant to the image.

Step 4: Use lower-case letters

A simple approach is to use lower-case letters throughout your image file names.

For example:

commercial-cleaning-team.jpg

rather than:

Commercial-Cleaning-Team.jpg

This keeps your file naming consistent and easy to manage.

Step 5: Use hyphens between words

When an image name contains several words, separate them with hyphens.

For example:

bespoke-kitchen-design.jpg

rather than:

bespoke_kitchen_design.jpg

or:

bespokekitchendesign.jpg

Hyphens make the individual words easier to distinguish.

Step 6: Avoid spaces

Avoid spaces in image file names.

Instead of:

new office building.jpg

use:

new-office-building.jpg

This creates a cleaner and more consistent file name when the image is uploaded to your website.

Step 7: Avoid meaningless file names

Try not to upload images with names such as:

  • IMG_1234.jpg
  • DSC_8472.jpg
  • image1.jpg
  • photo-final.jpg
  • new-image.jpg

These names might make sense on your computer when you first create the image, but they provide very little useful information later.

A descriptive name is much easier to recognise.

Step 8: Don’t stuff keywords into the file name

There is an important difference between descriptive and keyword-stuffed.

For example:

Good:
commercial-cleaning-office.jpg

Not recommended:
commercial-cleaning-commercial-cleaners-office-cleaning-london-best.jpg

The second example looks unnatural and does not genuinely describe the image any better.

Search engines are designed to understand useful content rather than reward people for repeating keywords.

Keep the name natural.

Step 9: Keep the name reasonably short

Your file name should provide enough information to identify the image without becoming a full sentence.

For example:

modern-kitchen-island.jpg

is perfectly reasonable.

You do not need:

modern-bespoke-kitchen-with-large-marble-island-in-london-home.jpg

unless those extra details are genuinely important.

Step 10: Match the image to the page

The image file name should make sense in relation to the page where it is being used.

For example, if you have a page about bathroom renovations, an image could be called:

modern-bathroom-renovation.jpg

This provides useful context.

However, do not give an image a name simply because you want it to rank for a particular search term.

The image and page content should genuinely relate to one another.

What about existing images?

You may already have hundreds of images in your WordPress Media Library with unhelpful names.

You do not necessarily need to rename every existing image.

If you are updating an important page, it can be worthwhile to use descriptive names for any new or replacement images.

For large websites with lots of existing images, speak to your website developer before making large-scale changes to image files.

Changing image file names after they have already been used on your website can sometimes require additional work to avoid broken image links.

Don’t forget the Alt Text

The image file name is only one part of making images useful to search engines and visitors.

You should also consider the Alt Text.

Alt Text is different from the file name.

For example:

File name:
london-office-reception.jpg

Alt Text:
Reception area at our London office

The file name helps describe the image as a file.

The Alt Text provides a text alternative that can be particularly important for accessibility and helps explain the image when it cannot be seen.

Do not simply copy the file name into the Alt Text every time.

Instead, describe the image naturally and accurately.

A simple example

Imagine you have a photograph showing your team standing outside your company’s office in Bristol.

Poor file name

IMG_7382.jpg

Better file name

team-outside-bristol-office.jpg

The second option immediately tells you what the image shows and where it was taken.

You could then use appropriate Alt Text such as:

Our team outside the Bristol office

The exact Alt Text should reflect the purpose of the image and what is actually visible.

A quick naming checklist

Before uploading an image, ask yourself:

  • Does the file name describe the image?
  • Have I used lower-case letters?
  • Have I separated words with hyphens?
  • Have I avoided spaces?
  • Is the name reasonably short?
  • Is the location included only if relevant?
  • Am I avoiding unnecessary keywords?
  • Does the name make sense alongside the page content?

If the answer is yes, you are on the right track.

Make it a habit

You do not need to spend a huge amount of time naming every image.

Simply get into the habit of renaming images before uploading them to WordPress.

Instead of uploading:

IMG_4837.jpg

take a few seconds to rename it:

london-office-exterior.jpg

It is a small change, but it makes your website’s files more organised and gives search engines useful context about your images.

Clear, descriptive image names are better for your website, better for your Media Library and a sensible part of good SEO practice.

Didn’t answer your question?

Our team are real people and happy to help. Send us a ticket and we'll get back to you.

Submit a Ticket