How to name image files for SEO: rules and 44 examples
Google reads file names as a light clue. Your CMS may keep them, hide them behind an ID or throw them away. Here is how to name images well, platform by platform, and when to leave old ones alone.
photo (3).jpegDSC_0042.jpgIMG_4821.JPGNamed by the camerared-leather-tote-bag-front.webp
The short answer
- File names matter, a little. Google treats them as a minor hint about what an image shows. Alt text and the text around the image carry far more weight.
- Name the file after what it shows. Three to six lowercase words joined by hyphens, with the right extension:
red-leather-tote-bag-front.webp, notIMG_4821.JPG. - Rename before you upload. Shopify can’t rename a file after upload, Wix can’t change a media URL, and Framer replaces your file name with a random ID.
- Leave published images alone if they already bring visits from Google Images. Google recrawls images slowly, so a mass rename can cost months of image traffic.
Do image file names matter for SEO?
Yes, but less than many guides suggest. Google’s image SEO documentation, last updated in March 2026, says the file name can give Google “very light clues” about the subject of an image. It asks for names that are short but descriptive, and gives its own example: my-new-black-kitten.jpg is better than IMG00023.JPG.

The same page is clear about what weighs more. It calls alt text the most important attribute for describing an image, and says Google reads the content of the page around it, captions and image titles included. In a 2022 episode of Google’s Search Off the Record podcast, John Mueller added that alt text and surrounding text are strong signals, and that a descriptive file name rarely tells Google anything they don’t already say.
- 1. Alt text Strong
Google calls it the most important attribute for describing an image.
- 2. Text around the image Strong
Captions, headings and paragraphs near the image. John Mueller calls alt text and surrounding text strong signals.
- 3. File name Light clue
Helps a little when it is short and descriptive. Worth ten seconds at upload, not a project.
So why spend any time on it? Because the file name is the one label that travels with the image:
- It is part of the image URL on most platforms, so it goes wherever the image is copied, downloaded or shared.
- WordPress uses it as the default title of every image you upload, as you will see in the WordPress screenshot below.
- Squarespace uses the Filename field as alt text in several image block layouts, according to a Business Insider guide.
- When an image has no alt attribute, screen readers often read the file name aloud instead, as Deque’s accessibility rules point out. Nobody wants to hear “IMG underscore 4821 dot JPG”.
- It keeps your own media library searchable, which matters more with every year of photos.
The verdict: a good name costs ten seconds at upload and never hurts. Renaming thousands of images that are already live is a different decision, covered in Should you rename images that are already published?
How to name an image file: 7 rules
Each rule below comes from Google’s documentation or from the way web servers and platforms handle URLs. The first one does most of the work.
red-leather-tote-bag-front.webp
1. Describe what the image shows
Write the name you would type to find this exact image: the subject first, then what sets it apart from your other images, such as color, material, angle or place. If you can’t describe a picture in a few words, it may not say much to your visitors either.
IMG_4821.JPGbecomesred-leather-tote-bag-front.jpg
2. Keep it short: 3 to 6 words
Google asks for names that are short but descriptive. Six words is our working ceiling, not a Google number: past that, a name starts to read like a list of keywords. Extra detail belongs in the alt text or the caption.
3. Separate words with hyphens
Google recommends hyphens over underscores in URLs. Its URL guide, revised in October 2026, explains why: underscores often join words that belong together, as programmers do in format_date, while a hyphen clearly marks a word boundary. Spaces are worse, since they turn into %20 or + in the URL. And don’t glue words together: whitegoldweddingreception.jpg is hard for anyone to split.

4. Use lowercase only
Google treats URLs as case sensitive: to its crawler, /APPLE and /apple are two different addresses, and most web servers agree. Lowercase names avoid broken links when someone retypes a URL, and stop the same image from living at two addresses.
5. Stick to plain letters and numbers
Accents, emoji and symbols are allowed in URLs, but they get percent-encoded: crème-brûlée.jpg travels as cr%C3%A8me-br%C3%BBl%C3%A9e.jpg. WordPress removes accents when you upload; don’t count on other platforms to do the same. Use a to z, 0 to 9 and hyphens.
On a multilingual site, Google’s image guide says to translate the file names of localized images, following its URL encoding guidelines. When one image serves every language, John Mueller’s advice from 2020 is to keep a single file, which makes crawling and image indexing simpler.
6. Leave out keyword lists, brands and cities
A keyword is welcome when it describes the image. wedding-planner-austin-wedding-reception-hall-austin.jpg describes the business, not the photo. In October 2026, Google’s Gary Illyes called keywords in URLs “an incredibly small signal”, so piling them up buys nothing and makes the name look like spam. Add a brand, a product line or a city only when it is part of what the picture shows: golden-gate-bridge-from-baker-beach.jpg.
7. Match the extension and keep names unique
Google advises matching the extension to the file type: a WebP file ends in .webp, not .jpg. Write extensions in lowercase too. Keep every name unique on the site: Shopify appends a random suffix to a name that is already taken, and Webflow and Wix put an ID in front of every file anyway.
44 examples of good and bad image file names
Typical names from camera rolls, design tools and screenshots, with a better version for each. Filter by type of site, then reuse the pattern that fits.
Showing 44 examples
| Image | Before | After | What changed |
|---|---|---|---|
| Red leather tote bag, front | IMG_4821.JPG | red-leather-tote-bag-front.jpg | Subject, material and angle |
| Same bag, inside pocket | IMG_4822.JPG | red-leather-tote-bag-inside-pocket.jpg | Each photo gets its own detail |
| Navy linen shirt, back | Product_Shot_FINAL_v2.png | mens-linen-shirt-navy-back.webp | Version words gone, WebP extension |
| Trail running shoe | 0012345678.jpg | trail-running-shoe-grey-side.jpg | A number alone says nothing |
| Oak dining table | DSC_0042.jpg | oak-dining-table-six-seats.jpg | Material and size people search for |
| Ceramic mug | mug.jpg | sage-green-ceramic-mug.jpg | One word is too vague |
| Bluetooth speaker | best-cheap-bluetooth-speaker-sale-speaker.jpg | portable-bluetooth-speaker-black.jpg | Sales copy and repeats removed |
| Serum bottle | Untitled design (14).png | vitamin-c-serum-30ml-bottle.png | Design tool default replaced |
| Hoop earrings, worn | Image from iOS.jpg | gold-hoop-earrings-worn.jpg | Spaces and generic name fixed |
| Kids’ rain boots | SKU-88213-01.jpg | kids-yellow-rain-boots-sku-88213.jpg | Keeps the SKU, adds the words |
| Dental treatment room | office1.jpg | dental-treatment-room.jpg | Says which room |
| Plumber at work | plumber-plumbing-boston-plumber-services.jpg | plumber-repairing-kitchen-sink.jpg | Describes the photo, not the business |
| Restaurant terrace at night | IMG_20260611_211502.jpg | restaurant-terrace-string-lights.jpg | Date stamp replaced by the scene |
| Margherita pizza from above | pizza (2).jpeg | margherita-pizza-overhead.jpg | Duplicate counter removed |
| Hair salon interior | Salon_Photo_1.JPG | hair-salon-wash-stations.jpg | Underscores and capitals gone |
| Living room in a listing | 12-maple-st-001.jpg | living-room-fireplace-12-maple-st.jpg | Address kept, room described |
| Yoga class | yoga.jpg | beginner-yoga-class-studio.jpg | Who and where |
| Team photo | team.png | design-studio-team-2026.jpg | The year helps when photos change |
| Sourdough starter, day 5 | IMG_7731.HEIC | sourdough-starter-day-5.jpg | Converted to a web format, named for the step |
| Cookies cooling | cookies-final-final.jpg | chocolate-chip-cookies-cooling-rack.jpg | Version words replaced by detail |
| Folding dough | step3.jpg | folding-croissant-dough-step-3.jpg | Step number kept, action added |
| Trail in autumn | P1010234.JPG | mountain-trail-view-autumn.jpg | Camera counter replaced |
| Sleep infographic | infographic.png | sleep-cycle-stages-infographic.png | Topic before format |
| Author portrait | headshot.jpg | jane-doe-author-portrait.jpg | Names the person shown |
| Traffic chart | chart.png | organic-traffic-2026-line-chart.png | What the chart measures |
| Kitchen remodel | before-after.jpg | kitchen-remodel-before-after.jpg | Before and after of what |
| Settings page | Screenshot 2026-11-27 at 10.42.15.png | invoice-settings-page.png | Screenshot stamp replaced |
| Dashboard, captured on a French Mac | Capture d’écran 2026-11-27 à 10.42.15.png | analytics-dashboard-overview.png | No spaces, accents or apostrophes |
| Logo | logo-final-NEW.svg | acme-logo.svg | Brand name, nothing else |
| Feature illustration | hero-image.webp | calendar-sync-illustration.webp | Says what it illustrates |
| Pricing page | pricing_v3_FINAL.png | pricing-plans-comparison.png | Version words gone |
| Error message | err.png | card-declined-error-message.png | Says which error |
| Phone screen | Simulator Screenshot - iPhone 16.png | mobile-checkout-screen.png | Device stamp replaced by the screen |
| Product demo GIF | demo.gif | drag-and-drop-upload-demo.gif | Which feature it shows |
| Eiffel Tower at sunrise | DSC09981.ARW | eiffel-tower-sunrise-trocadero.jpg | RAW names stay in your archive |
| Couple on a beach | smith-wedding-0128.jpg | bride-groom-beach-sunset.jpg | Describes the moment |
| Golden retriever puppy | dog.jpg | golden-retriever-puppy-grass.jpg | Breed, age, setting |
| Brooklyn Bridge at night | _MG_5512.CR3 | brooklyn-bridge-night.jpg | Place and time of day |
| Street food market | IMG_1043.jpg | bangkok-street-food-market.jpg | The city is part of the subject |
| Mountain lake | wallpaper4k.jpg | alpine-lake-reflection.jpg | Subject, not resolution |
| Black kitten | IMG00023.JPG | my-new-black-kitten.jpg | Google’s own example |
| Northern lights | aurora_borealis_iceland_northern_lights_aurora.jpg | northern-lights-over-iceland.jpg | Repeats and underscores cut |
| Lavender field | france-lavender-provence-france-travel-photo.jpg | lavender-field-provence.jpg | Repeated place names cut |
| Studio portrait | client-gallery-final-edit-23.jpg | studio-portrait-natural-light.jpg | The shot, not the workflow |
Exercise: rename these photos
Pick a photo, then rename it. The name is checked live against the seven rules above, including whether it says what the photo shows. Nothing you type leaves your browser.




IMG_3853.JPGbrown-leather-messenger-bag.webpPhotos: Unsplash (Álvaro Serrano, pmv chamara, Kimia Zarifi, Anita Austvika).
What your CMS does with the file name
Your platform decides whether the name you type ever reaches the web. On November 27, 2026 we opened a public site built on WordPress, Shopify, Squarespace, Webflow, Wix and Framer, and read the image URLs each one served. Here is what survived.
- WordPresswordpress.org/news
https://i0.wp.com/wordpress.org/news/files/2024/01/sunita-rai-featured-img.jpg - Shopifyallbirds.com
https://www.allbirds.com/cdn/shop/files/A12729-front-2400x2400_2.png - Squarespacebigcatcreative.com
https://images.squarespace-cdn.com/content/v1/615ad094ed590a052868fe10/7c1e5dd1-be73-4d52-96de-6217001484d5/Noire-Mockup3+copy.jpg - Webflowdiscord.com
https://cdn.prod.website-files.com/6257adef93867e50d84d30e2/678a4c12dbf6be5d792aa920_Clyde%20Cube.webp - Wixwix.com
https://static.wixstatic.com/media/343a2a_0642f8d08bd141209aeed927ed8cdcc6~mv2.png/v1/fill/w_55,h_54,al_c,q_85,…/wix-3d-logo.png - Framerframer.com
https://framerusercontent.com/images/UnfUTFiycUvyLiWVaZSTQX3S7kA.png
| Platform | File name in the URL | Rename after upload | What to do |
|---|---|---|---|
| WordPress | Kept Spaces become hyphens and accents are removed; capitals stay | Not in core WordPress: a plugin has to rename the file and update the links to it | Rename before upload. Fix old files with a renaming plugin. |
| Shopify | Kept A random suffix is added when the name is already taken | No. Shopify’s Help Center: “You can’t change file names in Shopify.” | Rename before upload. To fix an image, upload a renamed copy and replace the old one. |
| Squarespace | Kept After two IDs; spaces become + | Yes, from the Asset Library | Rename before upload. The Filename field can also serve as alt text. |
| Webflow | Kept After a 24-character asset ID and an underscore | Forum users report that the published URL keeps the original name | Rename before upload. |
| Wix | In part The media URL is an ID; resized URLs end with a readable name | The media URL can’t be edited; the Media Manager can rename the file | Name files before upload, and write alt text for every image. |
| Framer | Replaced A random ID instead of your name | Not relevant: the URL never shows the name | Name files for your own library and put the effort into alt text. |
How we checked: one public page per platform, loaded in Chrome, image addresses read from the page (wordpress.org/news, allbirds.com, bigcatcreative.com, discord.com, wix.com and framer.com). On wix.com, 54 of the 74 image URLs ended with a readable name; on framer.com, all 76 used random IDs. Plugins, apps and settings can change what a given site serves.
WordPress
WordPress keeps your file name in the URL, under /wp-content/uploads/ plus the year and month. It cleans the name on the way in: spaces become hyphens and accents are removed, but capital letters stay. The name also becomes the image’s default title. Core WordPress can’t rename a file after upload; renaming plugins can, and update the links that point to it.

Shopify
Shopify keeps the file name in the image URL and won’t let you edit it afterwards; its Help Center says so in plain words. To fix a product image, rename the file on your computer, upload it again and replace the old one. Apps in the Shopify App Store can do this for a whole catalog.

Squarespace
Squarespace keeps your name at the end of a long URL, after a site ID and an asset ID, with spaces turned into plus signs. The name matters more there than elsewhere: in several image block layouts, Squarespace uses the Filename field as alt text, so a camera name can end up read aloud. You can rename files from the Asset Library, according to the Squarespace specialists at Big Cat Creative.
Webflow
Webflow keeps the original name, glued to a 24-character asset ID: 678a4c12dbf6be5d792aa920_Clyde%20Cube.webp. Users on the Webflow forum report that renaming an asset later doesn’t change its published URL, so the name you upload is the name that ships.
Wix
Wix’s Help Center says the media URL you copy from the Media Manager carries an ID, not your file name, and that it can’t be edited. The resized versions Wix serves on your pages end with a readable name, such as wix-3d-logo.png, and you can rename files in the Media Manager.

Framer
Framer replaces every uploaded file name with a random ID: all 76 images on framer.com’s home page had names like UnfUTFiycUvyLiWVaZSTQX3S7kA.png. On a Framer site, the alt text you set on each image is what describes it; the file name only helps you find assets in your project.
File name, alt text, title and caption: who reads what
These four fields are often mixed up. Each has its own reader and its own job.
| Field | Where it lives | Who reads it | What to write | Example |
|---|---|---|---|---|
| File name | The file and its URL | Search engines, anyone who saves or shares the image | Three to six words joined by hyphens | red-leather-tote-bag-front.webp |
| Alt text | The alt attribute of the image | Screen readers, search engines, browsers when the image fails to load | One sentence on what the image shows on this page | Red leather tote bag with two handles, front view |
| Title attribute | The optional title attribute | Mouse users, as a tooltip | Usually nothing | (empty) |
| Caption | Visible text under the image | Every visitor | What you want readers to notice | Our cognac tote in full-grain leather, new this fall |
Write the file name for the image and the alt text for the page. The same photo can need different alt text on a product page and in a blog post, but it keeps one file name.
How to rename images in bulk
Renaming 200 product photos one by one is where good intentions stop. Pick the method by how much each image differs from the next.
On a Mac: Finder
Select the files, Control-click one of them and choose Rename. Finder can replace text in every name, add text before or after it, or apply a format with a counter, which turns a shoot into red-tote-bag-1.jpg, red-tote-bag-2.jpg and so on. That suits a single product shoot; then edit the last word of each name by hand: front, back, detail.
On Windows: PowerRename
PowerRename, part of Microsoft’s free PowerToys, adds a Rename with PowerRename entry to File Explorer. Type what to search for and what to replace it with, check every new name in the preview before you apply, and use the text formatting buttons to switch everything to lowercase. It also accepts regular expressions for bigger jobs.

From the command line
This loop, for macOS or Linux, cleans the format of every image in the current folder: accents removed, lowercase, and a hyphen wherever there was a space, an underscore or a symbol. It never overwrites an existing file, and running it twice changes nothing.
for f in *.{jpg,jpeg,png,webp,JPG,JPEG,PNG,WEBP}; do
[ -e "$f" ] || continue
base=$(printf '%s' "${f%.*}" | perl -CS -MUnicode::Normalize -pe '$_ = NFD($_); s/\p{Mn}//g' \
| tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9]+/-/g; s/^-+|-+$//g')
ext=$(printf '%s' "${f##*.}" | tr '[:upper:]' '[:lower:]')
[ -n "$base" ] && [ "$f" != "$base.$ext" ] && mv -n -- "$f" "$base.$ext"
doneIt fixes the format, not the meaning: IMG_4821.JPG becomes img-4821.jpg. To say what each picture shows, you need a person or a tool that looks at the image.
With an AI image renamer
Pattern tools can’t tell a red tote from a blue one. AI renamers look at each image and write a name from what they see. Pixs.app does this for a whole batch: upload a ZIP of photos and download descriptive file names, with every image resized by orientation and converted to WebP. Review the names the way you would proofread copy: an AI can’t know your product codes or brand terms.
Should you rename images that are already published?
Usually not, and never all at once without a reason. In that 2022 podcast episode, Mueller explained that Google crawls images less often than pages, because images rarely change. Rename every image on a site and the old URLs can drop out of Google Images well before the new ones are picked up, a gap he put at a couple of months at least. As for the gain, he expected “minimal effect, maybe no visible effect at all” on a site that already does the rest well.
Google’s image guide makes a related point: reference each image with the same URL every time, so Google can cache it rather than fetch it again.
- Is the image already on your site?YesNoName it well before you upload it.
- Does it get clicks from Google Images?NoYesKeep the file name. Improve the alt text and the text around the image.
- Is the name generic (IMG_, DSC, Screenshot) and the page important?YesNoLeave it. Spend the time on new images.
- Rename itUpdate every reference to the file and redirect the old URL with a 301 where your platform allows it.
If you do rename
- Open Search Console, go to the Performance report and set Search type to Image. Images that already get clicks there are the ones to leave alone.
- Rename with a tool that updates every reference to the file, or upload a renamed copy and swap it in, as Shopify requires.
- Redirect the old image URL to the new one with a 301 where you control the server. On hosted platforms, images usually sit on a CDN where you can’t add redirects, one more reason to get names right at upload.
- Keep the alt text and the surrounding text as they are, and update your image sitemap if you have one.
Checklist: before you upload an image
Run these ten checks on every image before you upload it.
Quiz: which file name would you ship?
Five questions to check what stuck. Pick an answer to see the explanation.
Frequently asked questions
Do image file names matter for SEO?
Yes, but only a little. Google’s image SEO guide treats the file name as a light hint about what an image shows and recommends short, descriptive names. Alt text and the text around the image carry more weight, so name files well when you upload them, then spend most of your effort on alt text.
What is an image file name, and where does Google see it?
An image file name is the name of the file you upload, such as red-leather-tote-bag.webp. Google sees it in the image URL, for example /files/red-leather-tote-bag.webp, unless your platform swaps it for an ID, as Framer does. It is separate from the alt text, which lives in the HTML of the page.
What is the best way to name images for SEO?
Describe what the image shows in three to six lowercase words joined by hyphens, then add the right extension: brown-leather-messenger-bag.webp, not IMG_3853.JPG. Put the subject first, add one or two details that set the image apart, and leave out keyword lists, dates and words like final or copy.
Should I use hyphens or underscores in image file names?
Use hyphens. Google’s URL structure guide, revised in October 2026, recommends hyphens because underscores often join words that belong together, as in the programming name format_date. Avoid spaces as well: they turn into %20 or + in the URL.
How long should an image file name be?
Three to six words is a practical range. Google asks for names that are short but descriptive and gives my-new-black-kitten.jpg as an example. Past six words, names usually start repeating keywords, so put extra detail in the alt text or the caption instead.
Should image file names include keywords?
Only keywords that describe the image. sage-green-ceramic-mug.jpg is fine on a page about mugs; best-cheap-mug-mug-sale.jpg is keyword stuffing. Google’s Gary Illyes said in October 2026 that keywords in URLs are a very small signal, so repeating them adds nothing.
Should the image file name be the same as the alt text?
No, they do different jobs. The file name is a short label for the image itself, such as red-leather-tote-bag-front.webp. The alt text is a sentence that describes the image for the page it appears on, such as “Red leather tote bag with two handles, seen from the front”. Sharing a few words is normal.
Can I use capital letters, spaces or accents in image file names?
Avoid all three. Google treats URLs as case sensitive, so Photo.jpg and photo.jpg are two different addresses; spaces become %20 or +; and accents are percent-encoded, so crème.jpg travels as cr%C3%A8me.jpg. Use lowercase letters a to z, digits and hyphens.
Should I rename images that are already on my site?
Usually not. Google crawls images less often than pages, so renamed images can drop out of Google Images for a couple of months, and John Mueller expected little or no gain from renaming on a site that already does the rest well. Rename only generic names on important pages that get no image traffic, and redirect the old URLs.
Can I rename images after uploading them to WordPress, Shopify or Wix?
WordPress needs a plugin that renames the file and updates the links to it. Shopify’s Help Center says file names can’t be changed, so you upload a renamed copy and replace the image. Wix lets you rename files in the Media Manager, but the media URL itself is an ID that you can’t edit.
Do image file names matter for AI Overviews, ChatGPT and other AI search?
For Google’s AI Overviews and AI Mode, the rules are the same as for regular search: Google says that following its image SEO best practices already optimizes images for its generative AI features, with no special markup needed. Other AI assistants haven’t published how they use file names, so describe images in alt text and nearby text, which every system can read.
Do I need to rename images before converting them to WebP?
Name them once, before or during conversion: converting only changes the extension, from .jpg to .webp. Check that the extension matches the real format of the file, as Google recommends, and keep JPEG or PNG for email newsletters, since not every email client displays WebP.
Sources
- Google Search Central, Image SEO best practices, last updated March 2, 2026.
- Google Search Central, Optimizing your website for generative AI features on Google Search, last updated July 10, 2026.
- Google Search Central, URL structure best practices for Google Search, hyphens and case sensitivity.
- Search Engine Journal, Roger Montti, Google on image filenames and a surprising SEO mistake, October 20, 2022, John Mueller and Lizzi Sassman on Search Off the Record.
- Search Engine Journal, Google launches a video series for odd technical SEO questions, October 2026, Gary Illyes on keywords in URLs.
- Search Engine Roundtable, Google: do not translate image file names to local language, January 28, 2020.
- Shopify Help Center, Optimizing site structure for search engines, section “Use descriptive image file names”.
- Wix Help Center, Wix Media Request: Editing the URL of a Media File, updated July 2, 2025.
- Wix Help Center, Renaming files in your Media Manager.
- WordPress.org Documentation, Media Library screen, Attachment details screenshot.
- WordPress Developer Resources, sanitize_file_name(), whitespace replaced with dashes.
- WordPress Core Trac, Changeset 48603: remove accents in sanitize_file_name(), July 2020.
- WPBeginner, How to rename images and media files in WordPress.
- Shopify Community, How can I prevent Shopify from altering my image file names?, renamed duplicates.
- Webflow Forum, Image names can’t be changed.
- Business Insider, How to add alt text to images in Squarespace, Filename field used as alt text.
- Big Cat Creative, How to manage images and files in Squarespace, renaming in the Asset Library.
- Deque University, axe rule: Images must have alternate text.
- Microsoft Learn, PowerRename utility for Windows, screenshot of the PowerRename window.
- Apple Support, Rename files, folders and disks on Mac.
- Unsplash, photos of the renaming exercise by Álvaro Serrano, pmv chamara, Kimia Zarifi and Anita Austvika, Unsplash License.
Screenshots were taken on November 27, 2026 and belong to their publishers; highlights and numbers were added by Pixs.app. Quotes are kept short and linked to their source.
