Image File Names for SEO: How to Name Images (With Examples)
A good image file name is short, descriptive and written in lowercase words separated by hyphens: black-leather-ankle-boots.jpg rather than IMG_4821.JPG or image1.jpg. Google's own image guidance recommends short but descriptive file names and says the file name can give it "very light clues" about what the image shows, so name images for people first and treat the SEO benefit as a small bonus. Alt text matters more.
This guide covers what Google actually says, practical naming rules with examples, how file names differ from alt text and titles, what popular CMSs do with the name you upload, and how to rename images that are already live without breaking anything.
What Google Says About Image File Names
Google Search Central's image SEO best practices make three points about file names:
- Use short but descriptive file names. Its example:
my-new-black-kitten.jpgis better thanIMG00023.JPG. - Avoid generic names like
image1.jpg,pic.gifor1.jpgwhere you can. - The file name can give Google very light clues about the subject of the image.
For sites in several languages, Google also suggests translating image file names along with the rest of the page.
Two other parts of Google's documentation matter here. Its URL structure guidance recommends hyphens rather than underscores to separate words, because hyphens clearly mark word boundaries. And Google treats URLs as case-sensitive, so /Boots.jpg and /boots.jpg are different addresses.
What Google does not say is that a keyword in the file name will lift an image to the top of Google Images. The same document calls alt text the most important attribute for image metadata, and the text and context of the page the image appears on carry much more weight. Good file names are cheap to do and help, but they will not rescue a page with thin content.
Rules for Naming Images
1. Describe what is in the image
Name the subject the way someone would search for it, and be specific:
IMG_4821.jpgbecomesgolden-retriever-puppy-on-beach.jpgDSC00112.jpgbecomeswalnut-dining-table-6-seater.jpgScreenshot 2026-11-08 at 10.14.03.pngbecomesstripe-dashboard-refund-button.png
If you can't describe the image in a few words, ask what it is there to show. That is the name.
2. Use hyphens between words
walnut-dining-table.jpg, not walnut_dining_table.jpg, walnutdiningtable.jpg or walnut dining table.jpg. Spaces in file names become %20 in URLs (walnut%20dining%20table.jpg), which is ugly and error-prone, and Google recommends hyphens over underscores.
3. Use lowercase
Because URLs are case-sensitive, mixed case invites broken links: a page that references Table.jpg will not load table.jpg on many servers. Lowercase everything and the problem disappears.
4. Keep it short
Three to six words is usually enough. Drop filler words like "image", "photo", "picture of", "a" and "the" unless they genuinely add meaning. photo-of-a-red-bike.jpg says nothing more than red-road-bike.jpg.
5. Don't stuff keywords
cheap-boots-best-boots-buy-boots-online-boots-sale.jpg reads as spam to people and to search engines. Google explicitly warns against keyword stuffing in alt text, and the same logic applies to file names. One natural description is enough.
6. Keep names unique
Each distinct image should have its own name. For product variants, add the distinguishing detail: ankle-boots-black-side.jpg, ankle-boots-black-sole.jpg, ankle-boots-tan-side.jpg.
7. Stick to safe characters
Letters a-z, digits 0-9 and hyphens. Avoid accents, emoji, &, #, ?, % and +, which either need encoding in URLs or mean something special in them. Keep the extension that matches the format: .jpg, .png, .webp, .avif, .gif or .svg.
File Name vs Alt Text vs Title
These three are often confused, and they do different jobs:
- File name: part of the image URL. Read by search engines and seen by anyone who downloads the image. Describe the subject briefly:
dalmatian-puppy-fetch.jpg. - Alt text (the
altattribute): read aloud by screen readers and shown when the image fails to load. Google calls it the most important attribute for image metadata. Write a short, natural sentence fragment:Dalmatian puppy playing fetch, which is Google's own example. Leave it empty (alt="") for purely decorative images. - Title attribute: shown as a tooltip on hover in some browsers. Google's image SEO documentation does not list it among the things it uses, and screen readers handle it inconsistently, so don't rely on it for either SEO or accessibility.
Many CMSs also have an internal "title" field for images in the media library. That is a label for you, not an HTML attribute, and is separate from both the file name and the alt text.
In practice: give the file a clean descriptive name before uploading, then write proper alt text in the CMS. If you only have time for one, write the alt text.
How Popular CMSs Use Your File Name
WordPress
WordPress builds the image URL from the file name you upload: walnut-dining-table.jpg uploaded in November 2026 ends up at /wp-content/uploads/2026/11/walnut-dining-table.jpg. It cleans the name on upload (spaces become hyphens, unsafe characters are removed), and if a file with the same name already exists in that month's folder it adds a number, such as walnut-dining-table-1.jpg. Very large photos also get a -scaled version.
The attachment's title in the Media Library defaults to the file name, and the attachment's slug comes from that. Changing the title or slug in the Media Library afterwards does not rename the file on the server or change the image URL. To change the URL you need to upload a renamed file (or use a plugin built for renaming media). That is why naming before upload matters most on WordPress.
Shopify
Shopify serves product images from its CDN with the uploaded file name in the URL. Whether a file can be renamed inside the Shopify admin after upload has changed over time and is not something you should rely on, especially for product images. Rename files on your computer before you upload them, then add alt text to each product image in the admin.
Squarespace and other hosted builders
Hosted builders generally keep some form of the original file name in the image URL, which is why designers who work with them recommend renaming before upload. Some now offer renaming in the asset library; if you rename there, check whether the live image URL actually changes.
The common rule across platforms: the cheapest time to name an image is before you upload it.
Renaming Images That Are Already on Your Site
Changing the name of a live image changes its URL. Done carelessly, that leaves broken images on pages that still point at the old address, and Google has to discover the new URL from scratch.
To do it safely:
- Prioritise. Rename images that matter for search: product photos, images in your best-performing articles, original graphics. Leave old decorative images alone.
- Upload the renamed file rather than renaming on the server, unless you know your CMS updates every reference automatically.
- Update every reference on the page: the
src, anysrcsetsizes, Open Graph images and structured data that point at the image. - Redirect the old URL to the new one with a 301 if you control your server or CDN. That keeps external links and anyone who embedded the old image working.
- Keep the old file for a while if you can't redirect, so pages you missed don't break.
- Resubmit the page in Google Search Console (URL Inspection > Request indexing) if it matters, and include images in your sitemap if you use image sitemaps.
Don't expect overnight changes in Google Images. Recrawling and re-evaluating images takes time.
Bulk Renaming Product Photos and Image Libraries
Naming a few images by hand is easy. Naming 400 product photos called DSC_0001.jpg to DSC_0400.jpg is where most people give up and upload them as they are.
Options, from simplest to smartest:
- Pattern renaming: if you shot products in a known order, numbering plus a product name prefix gets you most of the way:
walnut-table-01.jpg,walnut-table-02.jpg. You can rename files online for free, in your browser, or use the built-in tools covered in batch renaming photos. - A spreadsheet of SKUs: if you have a product export with the photo names next to SKUs and titles, rename from that list. See bulk renaming files from a list.
- AI naming from the image itself: when the order is unknown or the photos come from many sources, something needs to look at each image. File Renamer AI analyses each image you upload and suggests a descriptive, hyphenated name such as
tan-suede-chelsea-boots-side.jpg. You review and edit the suggestions, then download the renamed images as a ZIP, ready to upload to your CMS. It handles up to 100 files per batch, and you can try it on the homepage before signing up.
Whatever you use, review the results. A model can tell a boot from a shoe, but it doesn't know your product names, so add brand or model names where they matter.
Naming Examples by Image Type
- Product photo:
brand-model-colour-view.jpg, for exampleacme-trail-runner-blue-side.jpg - Blog illustration or diagram: describe what it explains:
how-dns-resolution-works-diagram.png - Screenshot: app plus what it shows:
google-search-console-url-inspection.png - Team or location photo:
acme-london-office-reception.jpg - Recipe or food:
lemon-ricotta-pancakes-stack.jpg - Infographic:
remote-work-statistics-2026-infographic.png
For broader conventions across all your files, see the file naming conventions guide and the photo renamer guide.
Frequently Asked Questions
How should I name images for SEO?
Use a short description of what the image shows, in lowercase words separated by hyphens, with the correct extension, for example walnut-dining-table.jpg. Avoid generic camera names like IMG_4821.jpg and don't stuff in repeated keywords.
Do image file names affect SEO?
A little. Google's documentation says file names give it very light clues about an image's subject and recommends short, descriptive names. Alt text and the content of the page around the image matter more.
Should I use hyphens or underscores in image names?
Hyphens. Google recommends hyphens rather than underscores to separate words in URLs, and an image's file name becomes part of its URL.
What is the difference between alt text and the image file name?
The file name is part of the image's URL and describes the file. Alt text is an HTML attribute read by screen readers and shown if the image fails to load; Google calls it the most important attribute for image metadata. You should set both.
Does WordPress use the image file name?
Yes. WordPress uses the uploaded file name in the image URL and as the default attachment title. Changing the title in the Media Library later does not rename the file or change its URL, so rename images before uploading.
Can I rename images that are already on my website?
Yes, but the image URL changes. Upload the renamed file, update every page that uses it, and 301-redirect the old URL to the new one if you can. Focus on images that matter for search rather than renaming everything.
Free tools
Related Posts
Image Renamer: How to Rename Images in Bulk with AI
Learn how to rename images efficiently. Compare image renaming tools, understand EXIF data extraction, and discover AI-powered solutions.
GuideSpaces in File Names: Spaces vs Hyphens vs Underscores (and How to Replace Them)
Should file names have spaces? Why spaces break URLs and command lines, when to use hyphens (dashed filenames) or underscores, and how to replace them in bulk.
Best PracticesFile Naming Conventions: Rules, Examples and Templates for Files
File naming conventions that work: lowercase, hyphens, YYYY-MM-DD dates and version numbers, with file name convention examples for photos, documents and code.
Ready to organize your files?
Try AI renaming right away. No sign-up needed until you download.
Try It Free