Photo File Names for SEO: How to Name Images (With Examples)
October 27, 2026
Name each photo with a short, plain description of what it shows, in lowercase words separated by hyphens, such as kitchen-remodel-austin-tx.jpg. Lead with the subject, add the place if it matters, and stop at about three to six words. Replace camera defaults like IMG_4821, and don't stuff in keywords.
A file name is a small signal, not a ranking lever. It helps search engines and people understand the image, and it keeps your own library searchable. This guide gives you a naming formula, examples, and a workflow for renaming photos in bulk.
What makes a good SEO file name?
A good file name describes the image accurately, in a few words, using lowercase letters, numbers and hyphens. Google's image guidance says file names can give hints about what an image shows, and recommends short, descriptive names and hyphens rather than underscores. Google has not published how much weight a file name carries, so treat it as a small hint.
The rules that matter:
- Describe what is actually in the photo. The name should match what a person sees.
- Use hyphens between words. Hyphens read as word separators. Underscores and spaces are less reliable.
- Keep it lowercase. Some servers treat
Kitchen.jpgandkitchen.jpgas different files, which causes broken links. - Keep it short. Three to six words is plenty. Long names get cut off in search results, tools and file lists.
- Add the location only when it's true and useful. A service-area business might include a city. A close-up of a faucet doesn't need one.
- Avoid special characters. Stick to a-z, 0-9 and hyphens. Skip accents, ampersands, brackets and emoji.
- Make each name unique. Ten files called
roof-repair.jpgcause confusion. Add a detail that sets each one apart.
What do you need before you start?
You need your photos in one folder, a short list of the subjects and places they cover, and a naming pattern you'll use every time. Ten minutes of planning saves hours of fixing names later.
Before renaming, have these ready:
- The photos, copied into a working folder so you keep the originals.
- A list of subjects, for example services, rooms, products or job types.
- A list of locations, such as the cities or neighbourhoods you actually serve.
- A naming pattern, written down so everyone on your team follows it.
How do you name photos for SEO, step by step?
Pick a pattern, apply it to every photo, then check the results before you upload. The steps below work for a handful of images or a few hundred.
- Choose a pattern. A reliable one is
subject-detail-location. For example:bathroom-tile-install-denver.jpg. - Sort photos by subject. Group before and after, rooms, products or job types so each group shares a naming stem.
- Write the descriptive part first. Say what is in the photo in plain words. Ask yourself: if someone couldn't see this image, would the name tell them what it is?
- Add the location only if it's relevant. Use the city or area name, not a full street address (see the privacy note below).
- Add a number or detail to keep names unique. For example
-01,-02, or-beforeand-after. - Rename the files. Do it by hand for a few photos, or in bulk (see the next section).
- Check the extension. Keep
.jpgfor photos. If you convert HEIC, PNG or WebP files to JPG, confirm the final file ends in.jpg. - Read the names back. Remove repeated words, typos and anything that doesn't describe the image.
- Upload, then check the live file name. Some platforms and CMS tools rename files on upload, so confirm what ended up on the page.
What do good and bad file names look like?
Good names are specific and readable. Bad names are camera defaults, vague labels or keyword lists.
| Bad | Why it fails | Better |
|---|---|---|
IMG_4821.JPG |
Camera default, says nothing | water-heater-replacement-tampa.jpg |
photo1 final FINAL.jpg |
Spaces, no description | front-porch-repaint-01.jpg |
best_plumber_near_me_cheap_plumber_seo.jpg |
Keyword stuffing, underscores | emergency-pipe-repair-portland.jpg |
Kitchen Remodel (2).jpeg |
Capitals, spaces, brackets | kitchen-remodel-white-cabinets.jpg |
DSC00231.jpg |
Camera default | three-bedroom-home-living-room.jpg |
café-terrace-été.jpg |
Accents can break in some systems | cafe-terrace-summer.jpg |
If your business or audience works in a language that uses non-Latin characters, test how those names behave in your CMS and in shared links before committing to them.
How do you rename photos in bulk?
Use your operating system's batch rename, a pattern with a counter, and a spreadsheet if you have a lot of photos. Do the descriptive part per group, then let the tool add numbers.
- Windows: Select the files, press F2, and type a base name. Windows adds numbers in brackets, so run a find-and-replace afterwards if you want hyphens. Microsoft PowerToys includes a PowerRename tool for search-and-replace across many files.
- Mac: In Finder, select the files, right-click and choose Rename. The Format option lets you set a name and add a counter.
- Spreadsheet: For large jobs, list old and new names side by side, then use a bulk renaming tool or script that reads the list.
Rename one group at a time, such as all photos of one job. That keeps the names accurate. Naming 200 photos with one generic stem defeats the purpose.
For tagging as well as naming, see How to Batch Geotag Photos: 4 Methods and a Simple Workflow.
Do file names matter as much as alt text and metadata?
No. File names are one small clue among several. The text around the image, the alt text, the caption and the page topic usually say more about what an image is than the file name does.
It also helps to keep three things separate:
- File name: the label on the file. Visible in the image URL.
- Alt text: a description in your page's HTML for accessibility and context. It isn't stored in the photo.
- Embedded metadata: EXIF, IPTC and XMP data stored inside the file, such as GPS coordinates, title, description and keywords. Renaming a file doesn't change it.
Name the file well, write useful alt text on the page, and treat embedded metadata as extra information for your own records and for tools that read it. Google hasn't published how it uses photo metadata, and some platforms strip it on upload. For more on that, read Does Geotagging Photos Help Local SEO? What We Know. To understand what's stored in a file, see EXIF Data Explained.
Should file names include a location?
Include a city or area only when the photo really shows work or a place there, and keep it general. Don't add a location to every photo as a habit, and don't use a name that doesn't match the image.
A few cautions:
- Don't add a full street address to a file name for a private home or a client's property. File names travel with the image URL and are easy to copy.
- Don't list several cities in one name.
plumber-denver-aurora-lakewood-boulder.jpgreads as keyword stuffing. - Don't use a location to claim something false. If the photo wasn't taken there, leave it out.
If you want the real location stored inside the photo, that belongs in the metadata, not the name. Geotagr is a browser-based editor that writes GPS coordinates, a title, description, keywords and business details (IPTC/XMP) into your photos, and your files are not uploaded to its servers. Open the Geotagr editor to try it. Renaming is separate, so do it in your file manager.
What can go wrong with photo file names?
Most problems come from platforms that change names, duplicate names, or conversions that change extensions. Check the result after you upload.
- The platform renamed my file. Some social networks, listing sites and business profiles rename or re-encode images and may remove metadata. Check the live image URL, and don't assume your name survived.
- My CMS added numbers or a suffix. This usually happens when a file with the same name already exists. Use unique names to avoid it.
- Spaces turned into %20. URLs can't contain raw spaces, so they get encoded. Use hyphens from the start.
- My converted file has a different extension. Geotagr opens JPG, HEIC, PNG and WebP, and saves HEIC, PNG and WebP files as JPG. Check the extension of the saved file and rename if needed.
- The metadata disappeared but the name stayed. Renaming never writes metadata and uploading may strip it. Use the free photo metadata checker on the downloaded file to see what is actually inside.
- Two team members used different patterns. Write the pattern down in one shared document and give two examples.
Frequently asked questions
Do photo file names help SEO?
They can help a little. Google's image guidance says file names can give clues about what an image shows, but Google hasn't said how much weight they carry. Treat a good name as one small signal, alongside alt text, captions and the content of the page.
Should I use hyphens or underscores in image file names?
Use hyphens. Google's guidance recommends hyphens as word separators, and they work consistently in URLs. Underscores can cause words to be read as one long string in some systems, so avoid them in names you want read as separate words.
How long should an image file name be?
Aim for three to six words. That is long enough to describe the image and short enough to read in a URL or file list. If the name needs more than that, the photo is probably too general, or you're stuffing in keywords.
Should I rename photos before or after geotagging them?
Either order works. Renaming a file doesn't change metadata stored inside it, and writing metadata doesn't depend on the name. If you convert formats during tagging, check the saved file's name and extension afterwards.
Can I use the same keyword in every file name?
You can repeat a core term, such as a service, when it truly describes the photos. But each name should still be unique and describe that specific image. Repeating the same phrase across hundreds of files adds no value and looks like keyword stuffing.
Does changing file names on existing images hurt SEO?
It can. Renaming an image that's already live changes its URL, and any page or site that links to the old URL may break unless you redirect it. For new photos, name them before uploading. For live images, rename only when you can update the page and set up a redirect.