Skip to content
WordPress AI Plugin guide

Image SEO for WordPress: How to Name, Rename & Tag Images So AI Engines Read Them

Image SEO is mostly two text signals: the file name and the alt text. Here's how to name images for SEO, rename bad filenames in WordPress without breaking anything, and write alt text, by hand or with the free AuditAE plugin.

WordPressImage SEOAEOAI visibility
Aaron KaltmanFounder, AuditAE
6 min readUpdated
Infographic: 'Image File Names for SEO. A small change, a big SEO impact.' IMG_4821.jpg is renamed to red-running-shoes.jpg in the WordPress Media Library, with the thumbnail, medium, and large sizes renamed too and the image's alt text, title, file size, and dimensions shown.
On this page· 7 sections

Most "image SEO" advice drowns you in compression settings and lazy-loading. Those help page speed, but they're not what search and AI engines read about your images. Two text signals do most of the work: the file name and the alt text. Both are plain text an engine can parse, and most sites get both wrong.

This guide is the practical version: how to name images for SEO before you upload, how to rename the messy ones already in WordPress without breaking your pages, and how to handle alt text, by hand or with the free AuditAE plugin.

Why image file names matter

Open your Media library and you'll find a graveyard of IMG_4821.jpg, screenshot-2026-01-02.png, and DSC_0099.jpg. Every one of those is a wasted signal.

A file name is part of the image's URL, and it's one of the few image attributes that engines read directly. Google's own image SEO documentation says the file name "can give Google very light clues about the subject matter of the image." AI answer engines and image search lean on the same readable text. red-running-shoes.jpg describes the subject; IMG_4821.jpg describes nothing.

It's not a giant ranking lever; content and links still dominate. But a descriptive name is free, low-effort signal that almost everyone leaves on the table.

One newer wrinkle, without overselling it: search many of these image-naming queries today and Google answers with an AI Overview above the blue links. Showing up inside that answer is a separate problem from ranking under it, but it leans on the same foundation: a page clean and readable enough that a machine can tell what's on it. Descriptive filenames are part of that baseline, not a trick that earns an AI citation on their own. They sit alongside crawler access and schema in the same readability layer.

How to name images for SEO

The rules are simple and apply whether you're naming a new file or rewriting an old one:

  • Describe the subject, specifically. blue-mens-trail-shoe.jpg, not product1.jpg.
  • Use hyphens between words, not underscores or spaces. Google recommends hyphens to separate words in URLs; underscores often mark words that belong together, so red_running_shoes.jpg can read as one term.
  • Lowercase everything. Avoids case-sensitivity surprises across servers and CDNs.
  • Keep it tight. Two to five descriptive words. Don't stuff keywords: best-cheap-red-running-shoes-buy-online-2026.jpg looks like spam.
  • Skip stop words where they add nothing (the, a, and).

The easiest win is to rename the file before you upload it. Once it's in WordPress, renaming gets harder, which is the next problem.

The catch: WordPress won't rename files for you

WordPress lets you edit an image's title, alt text, caption, and description in the Media library, but it will not let you change the underlying file name. The file you uploaded as IMG_4821.jpg stays IMG_4821.jpg forever.

Worse, you can't just rename the file over FTP, because WordPress doesn't store one copy of your image. On upload it generates several resized versions (thumbnail, medium, large, and any theme-defined sizes) and wires them into the responsive srcset on every page where the image appears. Rename the original and miss a size (or the URL baked into a post) and you get broken images and a busted srcset.

So your real options are:

  1. Re-upload under a better name, then hunt down and fix every post that used the old one. Tedious and error-prone.
  2. Use a plugin that renames the file and every generated size and rewrites the references for you.

The easy way: one-click rename with AuditAE

The free AuditAE plugin adds a Rename file action to each image in the Media library's List view. Click it, type a descriptive slug, and it:

  • renames the original file and every generated thumbnail size in one move,
  • keeps the file type intact, and
  • rewrites the old URL to the new one inside your existing post content, so your live images and srcset never break.

It's free, needs no account, and is gated by your normal WordPress permissions: only users who can already edit media can rename. Data stays local; there's no external call.

Two honest limits. It rewrites references in post content (including srcset, CSS backgrounds, and http, www and relative forms of the URL), block widgets, the theme header image, and Elementor pages, templates and background images, so custom fields and other plugins' settings are the only places worth a quick check after a rename. And renaming changes the image's URL: for an image that already pulls image-search traffic or has external links pointing at it, leave it alone or 301-redirect the old URL so those references still resolve. Set that redirect up at the server or CDN (or with a redirect plugin), then load the old URL to confirm it lands, because some hosts answer requests for missing files in /wp-content/uploads before WordPress ever runs.

How to rename an image in WordPress

  1. Install the plugin. In WordPress, go to Plugins → Add New Plugin, search for "AuditAE," and click Install then Activate.
  2. Open the Media library (Media → Library), switch to List view, and hover over the image you want to fix.
  3. Click "Rename file" under its name. Type a descriptive, hyphenated slug (red-running-shoes) and confirm.
  4. Done. The original and all sizes are renamed, and the URL is rewritten in your post content and the other places listed above. No broken images, no manual link-chasing.

For a brand-new image, you'll still get the best result by naming the file well before upload, but for the IMG_ files already on your site, it's a two-second fix per image. (To rename in bulk, pair the plugin with an AuditAE account; more on that below.)

What the rename actually does

Same image, same spot on the page, same layout: every size renamed and every in-post reference rewritten in one pass:

  • Before: <img src=".../IMG_4821.jpg" srcset=".../IMG_4821-300x200.jpg 300w, .../IMG_4821-768x512.jpg 768w" />
  • After: <img src=".../red-running-shoes.jpg" srcset=".../red-running-shoes-300x200.jpg 300w, .../red-running-shoes-768x512.jpg 768w" />

Don't forget alt text

The file name is one signal; alt text is the other. Alt text is the HTML attribute that describes an image for screen readers and for engines that can't "see" it, and it's a direct input to image search and AI answers. Missing alt text is one of the most common accessibility failures on the web: WebAIM's 2026 Million report found it on 53.1% of the top million home pages.

Good alt text describes the image's content and context in a natural phrase ("Runner lacing up red trail shoes on a forest path") without keyword-stuffing. Decorative images (dividers, background flourishes) should have empty alt (alt="") so engines skip them.

You set alt text in the same Media library panel where you edit the title and caption. If you've got a backlog of images with no alt text at all, that's where pairing the plugin with an AuditAE account pays off: the assistant, AEBOT, can list every image missing alt text, propose alt for each, and write alt, title, caption, and description in bulk, and rename files across the posts that matter, from a chat box. Each change costs 5¢ and needs the "Write SEO settings" permission, which you turn on in Settings → AuditAE.

How to optimize images for SEO

Optimizing images for SEO comes down to what engines can read, plus one thing they measure:

  1. Name files descriptively: before upload when you can, with a one-click rename when you can't.
  2. Write real alt text: for accessibility, image search, and AI engines alike. Leave decorative images with empty alt.
  3. Keep them light: speed isn't something engines read, but slow images hurt Largest Contentful Paint, which Google measures. Resize, compress and pick the right format with our guide to optimizing images for the web.

Do the first two across your library and you've handed search and AI engines a lot more to work with, for free.

Worth keeping in proportion, though: filenames and alt text are hygiene, not the lever. If AI engines aren't citing you, the cause is far more often a robots.txt rule blocking the crawler than a library full of IMG_ files. Fix that first, then come back and clean up the images.

Install the AuditAE plugin to make the renaming painless, and if you want to know whether any of it is moving the needle on AI citations, AuditAE measures exactly that.

FAQ

Yes, modestly. Google's own image SEO guidance says the file name gives "very light clues" about the subject, and it's one of the few image signals AI engines and image search can read directly. It won't outrank great content, but a descriptive name is free signal you're otherwise throwing away.

As page-readability hygiene, not a proven ranking lever. The crawlers behind AI answers (ChatGPT, Perplexity, and Google's AI Overviews) read your markup, and a descriptive filename is one more honest, machine-readable signal in it. Treat it as part of a clean, readable page rather than a trick that earns a citation by itself.

Not from core WordPress. The Media library lets you edit the title, alt, caption, and description, but not the underlying file name. You either re-upload the file under a new name (and fix every link) or use a plugin that renames the file and rewrites references. The free AuditAE plugin adds a one-click Rename action that does both.

It will if you do it by hand and miss a reference. WordPress generates multiple sized copies of every image and wires them into srcset, so a rename has to update the original, every size, and every place the old URL appears. AuditAE's Rename action renames all sizes and rewrites the URLs inside your existing post content in one move.

The file name is part of the image's URL and describes the file itself; alt text is an HTML attribute describing the image for screen readers and engines that can't see it. Both are text an engine can read, and they do different jobs, so you want both right.

Give each image a descriptive, hyphenated file name, write alt text that says what the image shows, and keep the file light: resized to the size it's displayed at and compressed, so it doesn't slow the page. The first two are what search and AI engines read; the third affects Largest Contentful Paint.

How to optimize images for the web

No. The Rename action, AI Readiness Score, AI crawler log, and llms.txt are all free and work the moment you activate the plugin, and alt text is already editable in core WordPress. Pairing with an AuditAE account is optional and adds AEBOT, which can rename in bulk and write alt/title/caption/description across the posts that matter, at 5¢ per change.

Run the citation report on your own brand.

See which prompts cite you on ChatGPT, Perplexity, Gemini, and Google AI Overviews — the first one’s free, no card.

Start free — $5 in credits
About the author
Aaron Kaltman — Founder, AuditAE

Aaron is the founder of AuditAE. He has run AI-visibility audits for SEO agencies and in-house brand teams, and writes about how generative answer engines are reshaping the practice of search marketing.