All Articles
SEOImages

WordPress Image SEO: Alt Text, File Names & Size Guide

e
erdincbulat
July 11, 2026
8 min read
Erdo Image Optimizer

The key takeaway: WordPress image SEO comes down to three things Google can actually parse — descriptive alt text, meaningful file names, and a file size small enough to load fast. Get those three right and most of what people call "image SEO" is already handled; everything else is a smaller refinement on top.

Why Image SEO Still Matters for WordPress Sites

Google Images isn't just somewhere people go to browse pictures — it's a real discovery channel, especially for visual-heavy niches like recipes, DIY, fashion, interior design, and product catalogs. Google's own Search Central documentation lists optimizing for Google Images as a distinct part of a site's overall SEO work, alongside standard web search.

The catch is that Googlebot can't actually "see" an image the way a visitor does. It relies on a handful of text-based signals around the image — alt text, file name, surrounding page copy, and captions — to figure out what's in the picture and which searches it's relevant to. Get those signals wrong or leave them blank, and even a genuinely useful image becomes invisible to image search.

What Alt Text Actually Does

Alt text (the "alt" attribute on an image tag) has two separate jobs, and it's worth keeping them straight:

  1. Accessibility. Screen readers announce alt text out loud in place of an image a visually impaired visitor can't see. This is the original, primary purpose of the attribute, and it matters regardless of SEO.
  2. Machine understanding. Because Google can't reliably interpret raw pixels at scale, alt text is one of its clearest signals for what an image depicts and what search queries it should be eligible to answer.

Those two jobs point in the same direction — a genuinely accurate, specific description helps both a screen reader user and Google's indexing at once. There's no separate "SEO version" of alt text worth writing.

Writing Alt Text That Works

  • Describe what's actually in the image, not the whole page's topic. A photo of a blue ceramic plant pot on a shelf is "Blue ceramic plant pot on a wooden shelf," not "Best plant pots for your living room."
  • Keep it concise — aim for roughly under 125 characters so screen readers read the full description without cutting it off mid-sentence.
  • Skip "image of" or "picture of." Screen readers already announce that an image is present; adding it to the text is redundant.
  • Include a keyword only if it accurately describes the image. Forcing an unrelated keyword into alt text to chase rankings reads as spam to both users and Google.
  • Leave alt text empty (alt="") for purely decorative images — spacers, background flourishes, or icons that repeat a nearby text label — so screen readers skip over them instead of announcing noise.

File Names: The Overlooked Ranking Signal

Most WordPress media libraries fill up with file names like IMG_4821.jpg, Screenshot-2026-07-01.png, or product-final-v2.jpg — leftovers from a phone, a screenshot tool, or a rushed upload. None of that tells Google anything about the image's content.

Renaming files to lowercase, hyphen-separated, descriptive text before uploading — blue-ceramic-plant-pot.jpg instead of IMG_4821.jpg — costs nothing and gives Google one more concrete signal about the image's subject. It's a small habit, but across a media library with hundreds of images it adds up to a meaningfully cleaner set of signals than an unstructured pile of camera defaults.

Image Size and Format Matter Too

Alt text and file names help Google understand an image; file size and format affect whether the page around it performs well enough to rank at all. Large, unconverted JPEGs and PNGs slow down Largest Contentful Paint, and slow pages are a documented part of Google's page experience signals.

The fix here is the same regardless of niche: convert to WebP or AVIF, size images to their actual display dimensions rather than shipping a 4000px photo into an 800px container, and avoid lazy-loading the one image that appears above the fold. We cover the mechanics in more depth in our guides to converting WordPress images to WebP and the Core Web Vitals image checklist.

A Quick Image SEO Checklist

Element Do Avoid
File name blue-ceramic-plant-pot.jpg IMG_4821.jpg
Alt text Blue ceramic plant pot on a wooden shelf image, photo1, pot
File size Compressed WebP/AVIF, sized for actual display width Unconverted multi-MB image straight from a camera
Loading priority Above-the-fold images load immediately The LCP image marked loading="lazy" by a generic "speed" plugin
Context Relevant surrounding text or caption near the image Image dropped in with no related copy nearby

Common Mistakes That Hurt Image SEO

  • Keyword-stuffing alt text — cramming multiple unrelated search terms into one description instead of accurately describing the image.
  • Leaving default camera or CMS file names on every upload, which wastes a free, easy signal.
  • Uploading oversized images and letting CSS scale them down — the browser still downloads the full file before shrinking it visually.
  • Skipping alt text on genuinely informative images, like charts, infographics, or screenshots containing text a screen reader otherwise can't access.
  • Publishing images with no related surrounding copy, leaving Google with only the alt text and file name to work from.

How Erdo Image Optimizer Helps

Manually renaming and writing alt text for every image in a growing WordPress media library doesn't scale well past a handful of posts. Erdo Image Optimizer handles the parts of this that are repetitive: it bulk-generates alt text across your existing media library, converts images to WebP/AVIF using your server's own GD or Imagick library, and includes a built-in SEO audit that flags images missing alt text or still sitting in an unconverted format — all without an external API or per-image fee.

Wrapping Up

In short, WordPress image SEO isn't a separate discipline with its own secret techniques — it's the same three signals applied consistently: what you name the file, what you write in the alt text, and how small and well-formatted the file itself is. Sites that get sloppy on all three tend to be invisible in Google Images regardless of how good the actual photos are; sites that handle all three consistently give Google the clearest possible signal to rank them correctly.

Free WordPress Plugin

Erdo Image Optimizer

WebP & AVIF conversion, auto alt text, lazy load and SEO audit — zero API key.

Frequently asked questions

More articles

PerformanceImages

WebP vs AVIF for WordPress: Which Should You Use

6 min read
PerformanceSEO

How to Convert WordPress Images to WebP (Free, No API Key)

7 min read