SEO

Image SEO for WordPress: Getting Your Images Found in Search

Image SEO for WordPress: Getting Your Images Found in Search

Images are often treated as decoration: something to make a page look nicer. But for many sites, images are also a source of search traffic. People search Google Images for products, recipes, designs, diagrams and ideas. Visual search tools let people search with a photo. Product images appear in shopping results and rich snippets. And well-optimised images help the pages they sit on.

On most WordPress sites I audit, image SEO is an afterthought: files named IMG_4532.jpg, empty alt text, oversized files and attachment pages indexed with no content. Fixing these basics is straightforward and can bring measurable gains.

Here’s how I approach image SEO for WordPress.

Why image SEO matters

  • Image search traffic. For visual topics, like products, design, food, travel and how-to content, image search can be a meaningful traffic source.
  • Page relevance. Images with descriptive context help search engines understand what a page is about.
  • Rich results. Product, recipe and article results often show images.
  • Accessibility. Alt text makes images understandable to people using screen readers, which is reason enough to do it properly.
  • Speed. Optimised images make pages faster, which supports user experience and Core Web Vitals.

Choose the right images

The best image SEO starts with good images:

  • Original images perform better than stock photos that appear on thousands of other sites. Photos of your actual products, team, work and premises are unique and more trustworthy.
  • High quality and relevant to the content.
  • Clear subjects, especially for products, where buyers need to see details.

Search engines increasingly understand image content itself. A clear, relevant image is easier to understand and more useful to searchers.

Descriptive filenames

Rename image files before uploading. Filenames give search engines a small signal about content, and they’re visible in image URLs.

  • Bad: IMG_4532.jpg, screenshot-2026-11-14.png, final-final-v3.jpg
  • Good: blue-linen-shirt-front.jpg, wordpress-dashboard-site-health.png, varanasi-ghat-sunrise.jpg

Use lowercase words separated by hyphens. Keep names short and descriptive. Don’t stuff keywords.

WordPress keeps the filename you upload, so renaming afterwards means re-uploading or using a media renaming tool, which should handle redirects for old URLs.

Write useful alt text

Alt text describes an image for people who can’t see it, and helps search engines understand it.

Good alt text

  • Describes what the image shows and why it matters in context.
  • Is concise, usually a short sentence or phrase.
  • Includes relevant terms naturally, when they genuinely describe the image.

Examples:

  • For a product photo: “Blue linen shirt with mother-of-pearl buttons, front view”
  • For a screenshot in a tutorial: “WordPress Site Health screen showing two critical issues”
  • For a team photo: “Yuvi reviewing server logs at his desk”

Avoid

  • Keyword stuffing: “WordPress developer WordPress expert best WordPress”.
  • Starting with “Image of” or “Picture of”: screen readers already announce it’s an image.
  • Describing decorative images: purely decorative images, like background patterns, should have empty alt text so screen readers skip them.
  • Duplicating captions word for word.

In WordPress, set alt text in the media library or the image block settings. Alt text set in the media library is used by default when the image is inserted, but you can override it per use in the block editor, which is useful when the same image appears in different contexts.

Captions and surrounding text

Search engines use the text around an image to understand it. Captions, headings and paragraphs near the image provide context. Captions are also read more often than body text by people scanning a page.

Place images near relevant text, and add captions where they add value, like explaining a diagram or identifying a product variant.

Image titles

The title attribute of images has little SEO value, and it’s inconsistently shown by browsers. Don’t spend effort on it. Focus on filenames, alt text and context.

Responsive images and sizes

WordPress generates multiple sizes of each uploaded image and adds srcset and sizes attributes, so browsers choose the right size for each device. This keeps pages fast while serving sharp images.

Make sure:

  • You upload images at sensible dimensions, not huge camera originals.
  • Your theme outputs images with WordPress functions, preserving srcset.
  • Large hero images are appropriately sized for their display.

Modern formats and compression

Serve images in efficient formats like WebP or AVIF where supported, and compress them sensibly. Smaller files mean faster pages, which supports rankings and user experience. Image optimisation plugins or CDNs can automate conversion and compression.

Make sure the format you serve is crawlable. Search engines support common modern formats, but check that any image CDN or optimisation tool keeps images accessible to crawlers and doesn’t block them.

Lazy loading, carefully

Lazy loading delays images until they’re needed, which improves speed. WordPress adds loading=”lazy” automatically to many images. Search engines can handle native lazy loading. But never lazy load the main image at the top of a page, which delays Largest Contentful Paint, and avoid JavaScript lazy loading techniques that hide image URLs from crawlers.

Image sitemaps

Image sitemaps help search engines discover images, especially those loaded in ways crawlers might miss. Many SEO plugins include images in their XML sitemaps automatically. Check that your sitemap includes image entries for important pages, particularly products and portfolio items.

Structured data

Structured data helps images appear in rich results:

  • Product schema with image properties for product listings.
  • Article schema with images for news and blog results.
  • Recipe schema with images.
  • Organization schema with your logo.

SEO plugins and WooCommerce output much of this automatically. Make sure the images referenced are high quality and meet any size guidelines search engines publish for rich results.

Attachment pages

WordPress creates an attachment page for every uploaded image, a separate URL showing just the image. These pages usually have no useful content and can create hundreds of thin pages in search results.

Since WordPress 6.4, attachment pages are disabled by default on new installations, redirecting to the file itself. Older sites may still have them enabled. Most SEO plugins also offer a setting to redirect attachment pages to the image file or parent post. Check your site, and redirect or noindex attachment pages if they’re live.

Hotlinking and image protection

Some sites block hotlinking, other sites embedding their images, to save bandwidth. Make sure hotlink protection doesn’t block search engine crawlers or social media preview bots. Overly aggressive protection can stop your images appearing in search or link previews.

Open Graph images

When pages are shared on social media, the Open Graph image is shown. Set featured images designed for sharing, around 1200 by 630 pixels, so shared links look good. This doesn’t directly affect search rankings but improves visibility and clicks from social channels.

WooCommerce product images

For stores, product images are especially important:

  • Use consistent, high-quality photos on clean backgrounds, plus lifestyle images.
  • Name files descriptively, including product name and variant.
  • Write alt text that describes the product and its distinguishing features.
  • Include multiple angles and variant images.
  • Make sure product schema includes images.
  • Submit product feeds to Google Merchant Center, which can show your products with images in shopping results.

Measuring image search performance

In Google Search Console’s Performance report, change the search type to Image to see clicks, impressions and queries from Google Images. This shows which images bring traffic and which queries they appear for.

A quick audit for existing sites

Pick ten important pages and check their images: filenames, alt text, file sizes and formats. If most have camera filenames, empty alt text and multi-megabyte files, prioritise fixing images on your highest-traffic pages first. Improving just those pages often delivers visible gains in speed and image search impressions.

Small, consistent habits, applied every time an image is uploaded, beat occasional large clean-up projects.

Train editors on images

Share a one-page guide covering filenames, alt text and image sizes with everyone who uploads media. Most image SEO problems are prevented at upload time.

Frequently asked questions

Does alt text help SEO?

Yes. Alt text helps search engines understand images and the pages they’re on. More importantly, it’s essential for accessibility.

Should every image have alt text?

Every meaningful image should. Purely decorative images should have empty alt text, so screen readers skip them.

Do image filenames matter?

They’re a small signal, but descriptive filenames help search engines and are easy to get right before upload.

Should attachment pages be indexed?

Usually not. Redirect them to the image or parent post, or disable them.

Final thoughts

Image SEO is mostly about doing the basics consistently. Use original, relevant images, name files descriptively, write genuinely useful alt text, place images near relevant text, serve optimised responsive images, include images in sitemaps and structured data and deal with attachment pages. Measure image search performance in Search Console. Your images will help visitors, improve accessibility and bring in search traffic you might otherwise miss.