Free auditStart free
GuideWordPress · Images

WordPress image SEO

Set image alt text in WordPress, distinguish decorative images, and check that Google can find your product and editorial images.

3 min
read
3
sources
Oct 24, 2026
updated
Scaplet Editorial Team
author
In one line

In the WordPress editor, select an Image block and add alt text that describes the image’s useful information in context. For a decorative image, use Mark as decorative or leave the alt text empty. Google says it doesn't index CSS images, so use a real image block for content people need to find.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
02How it works

Add or update alt text in WordPress

  1. 1

    Select the image

    In the block editor, click the Image block and open its settings sidebar if it is hidden.

  2. 2

    Describe the image or mark it decorative

    Enter concise text in Alternative text when the image conveys information. When the image is only decoration, turn on Mark as decorative (WordPress says to use it only when the image adds no meaningful information or functionality).

  3. 3

    Use the Media Library for a default

    Select the image details in the Media Library to set its stored alt text. Check important page-specific blocks too, since their alt text can differ from the library value.

  4. 4

    Save and inspect the published page

    Preview or publish, then inspect the rendered <img> element and confirm its alt value is useful and not just a filename.

03Checklist

Make images discoverable and useful

First2
Use an HTML <img> element with a src URL for images that matter. Google says it doesn't index CSS images, and supports images referenced in src in these formats: BMP, GIF, JPEG, PNG, WebP, SVG, and AVIF.
Place images near relevant text and on pages relevant to the image subject, because Google uses the surrounding content for context.
Next2
Use a descriptive file name before upload where practical; Google says my-new-black-kitten.jpg is better than IMG00023.JPG. Do not rename a live file without checking existing URLs and redirects.
For image-heavy catalogs, audit the highest-impression product and category pages first. Fix missing alt text and broken image URLs before spending time on decorative assets.
Then1
Do not put information only in an image. Include important specifications, chart data, or instructions in page text too.

After a template change, inspect a product page and a category page on mobile and desktop. Confirm the image itself is an <img> element, the alt text matches the displayed image, and any lazy-loaded image URL is present in the rendered HTML.

For the platform’s other indexability controls, see WordPress page speed, WordPress structured data, and the image SEO glossary.

Sources · 3

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • wordpress.org
  • google.com
  1. 01Image block | WordPress.org Documentationwordpress.org · checked 2026-10-24
  2. 02Edit Media | WordPress.org Documentationwordpress.org · checked 2026-10-24
  3. 03Google image SEO best practices | Google Search Centraldevelopers.google.com · checked 2026-10-24
Questions

Asked a lot.

3 questions people ask next, answered from the sources on this page.

01Where do I add image alt text in WordPress?

Select the image block and enter text in its Alternative text setting. You can also set a default in Media Library image details; a block-level value can be specific to that page.

02Should decorative images have alt text?

No. WordPress says to mark an image as decorative only when it adds no meaningful information or functionality, so assistive technologies can ignore it. Its block settings also allow leaving the alt text empty for decorative images.

03Can Google index a CSS background image?

Google says it doesn't index CSS images. Use an HTML <img> element with a src attribute when the image is important content.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane