# Use descriptive file names

- Check 16.01 · Images and multimodal search · Important
- Source: https://checklist-seo-geo.com/en/images-multimodal-search/use-descriptive-file-names
- Set a convention for short, descriptive image file names and apply it in WordPress, Shopify, PrestaShop or your own code without breaking any URLs.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/images-multimodal-search/use-descriptive-file-names.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

An image's file name is part of its URL. `fauteuil-cuir-cognac-face.jpg` says what the image shows; `IMG_4521.JPG` says nothing. The task is to set a simple naming convention (lowercase, hyphens, a few words that describe the image), apply it to every new upload and, for catalogs, automate it. Expected result: no more generic names on important images, without breaking the URLs of images that are already indexed.

## Why it matters

Google recommends short, descriptive file names and gives the example of `my-new-black-kitten.jpg` versus `IMG00023.JPG`. It states the scope of the signal itself: the file name only gives it “very light clues” about the subject of the image. Alt text, the caption, the text surrounding the image and what computer vision recognizes in the pixels carry much more weight.

The file name is still useful for three practical reasons:

- **Consistent signals**: a descriptive name confirms the alt text and the context instead of contradicting them (`logo-final-v3.png` on a product photo).
- **Sharing and reuse**: the name shows up when someone downloads the image, drops it into a document or cites it. An explicit name keeps the subject attached to the file outside your site.
- **Site management**: a media library where files have readable names is easy to search, deduplicate and maintain. This is often the most tangible benefit.

For generative engines and image search (Google Lens, multimodal assistants), the visual content is analyzed directly. Nothing indicates that the file name plays a significant role there: treat it as hygiene, not as a lever.

## What it improves

- **Google Images and Bing Images**: a weak understanding signal, documented by Google.
- **Consistency**: file name, alt text, caption and page all tell the same story.
- **Maintenance**: a readable media library, duplicates that are easy to spot, faster audits.
- **Multilingual sites**: translated names for localized images, as Google suggests.
- **Page rankings**: no proven effect. Do not rename thousands of files hoping to gain positions.

## How to check

List the file names of a page's images in the browser console:

```js
console.table([...document.images].map((img) => ({
  file: decodeURIComponent((img.currentSrc || img.src).split('/').pop().split('?')[0]),
  alt: img.getAttribute('alt'),
})));
```

Spot generic names in a page's HTML:

```bash
curl -s https://example.com/page/ | grep -o -i -E 'src="[^"]+"' | grep -i -E '(img|dsc|pxl|photo|image|screenshot|capture|whatsapp|untitled|sans-titre)[-_ ]?[0-9]'
```

Check that the extension matches the file's real format, on a downloaded sample:

```bash
file --mime-type images/*
```

A line such as `fauteuil.jpg: image/webp` reveals a misleading extension, which Google asks you to avoid.

Site-wide, Screaming Frog (Images tab) or any other crawler lists image URLs; sort them and filter on the patterns above.

Compliant result: content, product and header images have lowercase names with hyphens that describe what they show, and the extension matches the real format.

## How to implement

### Before you start

Adopt a written convention, the same for everyone who uploads images:

| Rule | Compliant | Avoid |
| --- | --- | --- |
| Describe what the image shows | `fauteuil-cuir-cognac-face.jpg` | `IMG_4521.JPG`, `produit1.jpg` |
| Lowercase, hyphens between words | `cuve-inox-500-litres.webp` | `Cuve_Inox 500L.webp` |
| No accents, spaces or special characters | `the-vert-genmaicha.jpg` | `thé vert (genmaïcha).jpg` |
| Three to six useful words | `schema-raccordement-chaudiere-gaz.png` | `schema-raccordement-chaudiere-gaz-condensation-installation-plombier-nantes-pas-cher.png` |
| Specify the variant when there are several | `fauteuil-cuir-cognac-dos.jpg` | `fauteuil-cuir-cognac-2.jpg` |
| Translate for a dedicated language version | `leather-armchair-cognac-front.jpg` on the English site | the French name reused everywhere |

Hyphens rather than underscores follow Google's recommendation for URLs. Removing accents is a convention: Google accepts non-Latin characters encoded according to URL rules, but an ASCII name avoids encoding surprises (`th%C3%A9`) and errors in some tools.

Pattern for a catalog: `{product}-{main attribute}-{view}.{ext}`, for example `sac-cabas-toile-bleu-porte.jpg`. For an article: `{subject}-{detail}.{ext}`, for example `graphique-prix-electricite-2026.png`.

Two rules of caution:

- **Do not mass-rename images that are already indexed.** The gain is small and every rename changes the URL. Apply the convention to new uploads, and only revisit existing images that matter most (main visuals, flagship product pages).
- **If you rename, redirect.** The image's old URL must respond with a 301 redirect to the new one, and every page that uses it must point to the new URL. See [fix broken images](https://checklist-seo-geo.com/en/images-multimodal-search/fix-broken-images).

To rename a batch of files before uploading, on macOS or Linux, this script lowercases names, removes accents and replaces spaces and underscores with hyphens (review the names afterwards: it will not make an `IMG_4521` descriptive):

```bash
for f in *.*; do
  base="${f%.*}"
  ext="$(printf '%s' "${f##*.}" | tr '[:upper:]' '[:lower:]')"
  clean="$(printf '%s' "$base" | perl -CS -MUnicode::Normalize -pe '$_ = NFD($_); s/\p{Mn}//g' | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9]+/-/g; s/^-+|-+$//g')"
  [ "$f" != "$clean.$ext" ] && mv -n -- "$f" "$clean.$ext"
done
```

### WordPress

Versions: WordPress 6.4 and later.

WordPress keeps the name of the uploaded file, so the name must be chosen before uploading. The attachment's title and alt text, which you can edit later in the Media Library, do not change the file name.

To normalize names automatically on upload (lowercase, no accents), add this filter to a custom plugin or to a child theme's `functions.php`:

```php
add_filter('sanitize_file_name', function (string $filename): string {
    $filename = remove_accents($filename);

    return strtolower($filename);
}, 10);
```

To rename a file that is already online, the Media File Renamer plugin renames the file and updates references in content. Rename one image at a time, purge the cache, then check that the old URL is redirected: add the 301 redirect yourself if the plugin does not create it (with the Redirection plugin or in `.htaccess`).

### Shopify

Versions: Shopify admin, all plans, November 2026.

The uploaded file's name appears in the image URL on Shopify's CDN. Name your files before adding them to a product or to `Content > Files`.

To rename an existing file: `Content > Files`, click the file's thumbnail, then edit its “URL handle”. Shopify states that the file's old URL then stops working: reserve this operation for images that are not yet referenced elsewhere (emails, partner sites, feeds).

### PrestaShop

Versions: PrestaShop 8 and 9.

PrestaShop renames product images itself. With friendly URLs enabled (`Shop Parameters > Traffic & SEO`), an image URL takes the form `/12-large_default/fauteuil-cuir-cognac.jpg`: the readable part comes from the product's “Friendly URL”, not from the uploaded file. So take care with this field in the SEO tab of the product page. All images of a product share this name; only the numeric ID distinguishes them.

Images in CMS pages and descriptions, uploaded through the text editor, keep their original names: apply the convention to them before uploading.

### Magento

Versions: Magento Open Source and Adobe Commerce 2.4.6 to 2.4.9.

Magento keeps the uploaded file's name (stored under `pub/media/catalog/product/f/a/fauteuil-cuir-cognac-face.jpg`), then serves resized versions from a cache subfolder whose path contains a hash, keeping that name. Name files before importing, including in catalog CSV import files, where the image columns use the file names.

### Drupal

Versions: Drupal 10.3 and later, Drupal 11, File (Field) Paths module 8.x-1.0.

The File (Field) Paths module builds each file's name and folder from tokens (`[node:title]`, date, content type), with transliteration and lowercasing. Without a module, core also offers filename sanitization options on upload in `Configuration > Media > File system` (transliteration, replacing whitespace and non-alphanumeric characters, converting to lowercase), disabled by default.

### Wix

Versions: Wix Editor and Wix Studio, November 2026.

Wix and Squarespace rewrite image URLs on their own CDN. The original name may appear only partially, or not at all. Name your files before uploading anyway, if only for the media manager, and focus your effort on alt text.

### Webflow

Versions: Webflow Designer, November 2026.

Webflow adds an identifier in front of the uploaded file's name in the asset URL. Name the file before uploading: renaming the asset in the Assets panel does not necessarily change its public URL, so check it on the published site.

### Laravel

Versions: Laravel 11 to 13, spatie/laravel-medialibrary 11.

Never keep the name sent by the visitor or the writer as is: build it from a descriptive field, and add a short suffix to avoid collisions.

```php
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Str;

function storeProductImage(UploadedFile $file, string $description): string
{
    $name = Str::slug(Str::limit($description, 60, ''));

    $suffix = Str::lower(Str::random(6));

    $extension = $file->guessExtension();

    return $file->storeAs('products', "{$name}-{$suffix}.{$extension}", 'public');
}
```

`Str::slug()` transliterates accents and lowercases; `guessExtension()` infers the extension from the file's actual content rather than its name. With spatie/laravel-medialibrary, the `usingFileName()` method plays the same role.

### Next.js

Versions: Next.js 15 and 16.

Images in `public/` are served under their own name, and the `next/image` optimizer requests them through a `/_next/image?url=/images/fauteuil-cuir-cognac-face.jpg&w=…` URL: the original name stays readable. Statically imported images get a hash added to their name. In both cases, name the source file according to the convention.

### Astro

Versions: Astro 5 to 7.

Images optimized by `astro:assets` are published under `/_astro/{name}.{hash}.webp`: the source file's name is kept. Name the files in `src/assets/` according to the convention.

## Common mistakes

- **Mass-renaming indexed images without redirects**: the URLs already known to Google Images, partners and feeds return 404 errors.
- **Stuffing the name with keywords** (`plombier-nantes-pas-cher-plombier-urgence.jpg`): no gain, and a practice Google classifies as keyword stuffing. See [eliminate keyword stuffing](https://checklist-seo-geo.com/en/practices-avoid/eliminate-keyword-stuffing).
- **Numbering variants instead of describing them**: `-1`, `-2`, `-3` do not say which view each file shows.
- **Leaving spaces and accents**: `photo%20atelier%20%C3%A9t%C3%A9.jpg` in the URL, and links that break in some tools.
- **Keeping an extension that does not match the format**: a WebP file named `.jpg` after a conversion.
- **Believing the name replaces alt text**: it is the weaker of the two signals. See [write relevant ALT text without keyword stuffing](https://checklist-seo-geo.com/en/images-multimodal-search/write-relevant-alt-text-without-keyword-stuffing).

## Frequently asked questions

### Does the image file name help SEO?

A little, mainly for Google Images. Google recommends short, descriptive names, but states that the file name only gives it very light clues about the subject of the image. Alt text, the caption, the text around the image and visual analysis carry more weight. Name new files well, without expecting any gain in page rankings.

### Should I rename images that are already online?

Generally, no. Renaming changes the image's URL: without a 301 redirect and an update of every page that uses it, the image disappears from Google Images and from the sites that reuse it. Apply the convention to new uploads, and only revisit a few high-stakes existing images, such as main visuals or flagship product pages, redirecting each old URL.

### Hyphens or underscores in file names?

Hyphens. Google recommends hyphens rather than underscores to separate words in URLs, and an image's file name is part of its URL. Write, for example, fauteuil-cuir-cognac-face.jpg, in lowercase, with no spaces or accents, to avoid encoding problems and keep addresses readable wherever the image travels.

### Should file names be translated on a multilingual site?

Yes, when each language has its own images. Google suggests translating the file names of localized images as well. If the same image, with no embedded text, serves every language, a single file is enough: translate its alt text and caption instead, which carry more meaning than the file name.

## Resources

- [Google Search Central: image SEO best practices](https://developers.google.com/search/docs/appearance/google-images)
- [Google Search Central: URL structure](https://developers.google.com/search/docs/crawling-indexing/url-structure)
- [Shopify: managing files](https://help.shopify.com/en/manual/shopify-admin/productivity-tools/file-uploads)
- [WordPress: Media File Renamer plugin](https://wordpress.org/plugins/media-file-renamer/)
- [Drupal: File (Field) Paths module](https://www.drupal.org/project/filefield_paths)

Next steps: [write relevant ALT text without keyword stuffing](https://checklist-seo-geo.com/en/images-multimodal-search/write-relevant-alt-text-without-keyword-stuffing) and [provide textual context](https://checklist-seo-geo.com/en/images-multimodal-search/provide-textual-context).
