Site AI AuditInternet Solutionsilt

Image File Names and SEO: Name Your Pictures Well

10. november 20268 min lugemistSEO alused
Image File Names and SEO: Name Your Pictures Well

Short answer: The file name of an image is one of several small clues that help search engines understand what a picture shows. Use short, descriptive names in lowercase with hyphens between words, such as blue-ceramic-teapot.jpg, rather than camera names like IMG_4821.jpg. It is a small gain, not a ranking trick, and it works best together with alt text, captions and good surrounding text.

Why file names matter a little

Search engines read many signals to understand an image: the alt text, the text around it, the caption, the title of the page, structured data and the content of the picture itself. The file name is one of those signals. Google’s own advice for images says that descriptive file names can help it to understand what the image is about. It also says that file names are only a small hint, so do not expect miracles.

The name matters for people as well. It appears in the address of the image, in downloads, in the file manager of your content system and sometimes in a search result when someone opens the image on its own. A clear name saves time for your team, because finding “winter-boots-leather-brown.jpg” in a library is easier than finding “DSC_0034 (2).jpg”.

Rules for good image file names

  1. Describe what the picture shows. Think of the words a person would use to describe it: “garden-spade-stainless-steel”, “reception-desk-dental-clinic”.
  2. Keep it short. Two to five words are usually enough. Long names add no value and are hard to read.
  3. Use lowercase letters. This avoids duplicate addresses on servers that treat capital letters as different, a problem described in the article on uppercase and lowercase URLs.
  4. Separate words with hyphens. Search engines read hyphens as word separators. Underscores may join words together, and spaces turn into %20 in addresses.
  5. Use plain characters. Letters without accents if you can, numbers and hyphens. Avoid symbols, brackets, ampersands and emoji.
  6. Be accurate. The name should match the content. Do not name a picture after a popular keyword that it does not show.
  7. Do not stuff keywords. “cheap-sofa-best-sofa-buy-sofa-online.jpg” looks like spam and helps nobody. See keyword stuffing.
  8. Keep the extension that matches the format. A JPEG should end in .jpg and a WebP in .webp, as covered in WebP, AVIF and JPEG.

Names for different types of images

File names versus alt text

The file name and the alt text have different jobs. The alt text is a description for people who cannot see the image and for search engines, and it is part of accessibility. The file name is just a label. Write both, but do not copy one into the other. Alt text should be a short sentence that conveys the meaning in context, and the file name a compact label. The article on image alt text explains how to write it, and the Google Images guide shows how images are found in image search.

Your existing images

Should you rename thousands of old files? Usually not all of them. Renaming changes the address of the image, so every page that uses it must be updated, and any link from other sites breaks unless you add a redirect. The effort is rarely worth it for a small gain. A sensible plan:

  1. Name new images well from now on and agree a rule with everyone who uploads.
  2. Rename important images, such as the main product photos and hero images of key pages, when you update those pages anyway.
  3. Use a tool or plugin that updates references when files are renamed, and test on a copy first.
  4. Where addresses change, redirect the old image address to the new one. See 301 and 302 redirects.
  5. Skip purely decorative images, backgrounds and icons.

Rename before you upload

The easiest moment to name an image is before it enters your site. When you resize and compress a picture, as described in image optimisation for faster websites, rename it at the same time. Many content systems keep the original name in the media library, and some add numbers when two files share a name. Renaming in the library afterwards often changes only the title, not the file. Check what your system does, and if needed change the file name on your computer first.

Common mistakes

When names do not matter much

Many sites serve images through a content delivery network or an optimiser that changes the address to a hash or adds parameters. In that case the original name may not be visible at all. Pictures that carry the important message are better handled with alt text, captions and structured data. Also remember that a file name will not repair a slow, heavy image. Compression, correct sizes and lazy loading bring much larger gains, as the guide to lazy loading images shows. Treat naming as a cheap habit, and put your effort into the content of the page.

A worked example: naming a product photo set

A shop sells a leather satchel in two colours. The photographer delivers files named DSC_1201 to DSC_1230. Before upload, the shop owner sorts them and renames each one using a simple pattern: product, colour, view. The main picture becomes leather-satchel-tan-front.jpg, the next ones leather-satchel-tan-side.jpg, leather-satchel-tan-inside.jpg and leather-satchel-brown-front.jpg. The alt text for the first reads “Tan leather satchel seen from the front”, and the page title and heading carry the product name. Because the pattern is fixed, any colleague can name the next product in the same way, and the media library stays searchable. The whole job takes five minutes per product, and it avoids the situation, familiar in many shops, where hundreds of pictures are named after a camera counter and nobody can find anything.

A naming rule for your team

Put this rule in the same place as your other editing guidelines, so that new colleagues and freelancers see it. A rule that fits on four lines is a rule that people follow.

Names in a multilingual site

If your site has several languages, decide whether image names follow the language of the page or stay in one language. Using the language of the page can help local search slightly, but it multiplies the number of files and the work of managing them. Many sites choose one language for file names and translate only the alt text and captions, which is where the meaning for readers lives. Whatever you choose, apply it consistently and avoid special characters that some systems encode in odd ways. If you do use words with accents, test that the image address works when pasted into a browser, an email and a chat message, since different tools may encode it differently.

Also think about the long term. Image names that include a campaign, a year or a price, such as “summer-sale-2026-50-off”, become wrong quickly and tempt editors to leave outdated pictures online. Name the content, not the promotion, and put dates and prices in the text of the page, where they are easy to change.

How Site AI Audit helps

Site AI Audit does not judge the file names of your pictures. It checks the page-level basics that images depend on: alt texts, broken links, titles and headings, together with page weight, compression and the Google PageSpeed score. A report that shows missing alt texts or very heavy pages points you to the images worth fixing first. The free check covers up to 50 pages and needs no sign-up. You can run a free check of your website or see the plans for re-checks after you update your images.

Related reading

The bottom line

Give images short, accurate, lowercase names with hyphens, and pair them with good alt text. Fix names on new uploads and on key pages, and leave old files alone unless you can update every reference. It costs a few seconds per picture, and it keeps your library tidy as well.

KKK

Do image file names affect rankings?

Only slightly. They are a small hint about the picture’s subject. Alt text, surrounding content and page quality matter more.

Hyphens or underscores?

Use hyphens. Search engines treat them as word separators, while underscores can join words together.

Should I put my business name in every file name?

Not in every one. Use it for logos and brand images, and for other pictures describe the content. Repeating the name everywhere adds clutter.

Can I use accented letters?

They usually work, but they can cause encoding problems in some systems. Plain letters are safer for file names.

Is it worth renaming old images?

Seldom in bulk. Rename the most important ones when you update their pages, and add redirects for any address that changes.

#Image optimization#Image SEO#On-page SEO
Kontrolli oma veebisaiti.Kas teie veebileht on häkkimise eest kaitstud?
Alusta tasuta

Veel blogist

Kõik artiklid →
Internet Solutions

Veel meie meeskonnalt

Loonud Internet Solutions. Proovige ka meie teisi tooteid — iga üks säästab aega omal moel.

internet-solutions.net ↗