# WordPress image SEO

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

Canonical: https://scaplet.com/seo/wordpress/image-seo

Guide WordPress · Images

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fimage-seo%20(%22WordPress%20image%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fimage-seo%20(%22WordPress%20image%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fimage-seo%20(%22WordPress%20image%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fwordpress%2Fimage-seo%20(%22WordPress%20image%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 3 parts, 3 minutes.

1. [Write alt text for the image’s job 01](#write-alt-text-for-the-image-s-job)
2. [Add or update alt text in WordPress 02](#add-or-update-alt-text-in-wordpress)
3. [Make images discoverable and useful 03](#make-images-discoverable-and-useful)

_01_Decide what the image needs

## Write alt text for the image’s job

[Alt text](/glossary/alt-text) should communicate the image’s meaningful information, not repeat the surrounding caption. Google says to avoid filling `alt` attributes with keywords, because [keyword stuffing](/glossary/keyword-stuffing) results in a negative user experience. For ecommerce, name the product and the visible differentiator when it matters to the purchase. For a chart or diagram, describe the takeaway or point readers to the same information in nearby text.

Image role

### Product image

Alt text approach

Identify the product and useful visible attribute

Example

“Black leather hiking boot, side view”

Image role

### Diagram or chart

Alt text approach

State the point, then provide detailed data in page text if needed

Example

“Checkout steps: cart, delivery, payment”

Image role

### Decorative divider or texture

Alt text approach

Mark as decorative or leave alt text empty so assistive technology can skip it

Example

`alt=""`

Image role

### Image that repeats adjacent text

Alt text approach

Avoid duplicating the caption or heading

Example

Use empty alt if it adds no new information

WordPress lets you set alt text per image block. The Media Library value becomes the default when you insert an image again, while editing a block can apply an override only to that page.

_02_How 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.

**Describe what changes the reader’s understanding**“Blue ceramic mug with a chipped rim” is more useful than “blue mug photo” when the chip matters. If it does not matter to the page, keep the text shorter.

_03_Checklist

## Make images discoverable and useful

First_2_
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](/glossary/webp), SVG, and [AVIF](/glossary/avif).

Place images near relevant text and on pages relevant to the image subject, because Google uses the surrounding content for context.

Next_2_
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](/glossary/category-pages) first. Fix missing alt text and broken image URLs before spending time on decorative assets.

Then_1_
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](/seo/wordpress/page-speed), [WordPress structured data](/seo/wordpress/structured-data), and the [image SEO glossary](/glossary/image-seo).

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- wordpress.org
- google.com

1. 01 [Image block | WordPress.org Documentation](https://wordpress.org/documentation/article/image-block/) wordpress.org · checked 2026-10-24
2. 02 [Edit Media | WordPress.org Documentation](https://wordpress.org/documentation/article/edit-media/) wordpress.org · checked 2026-10-24
3. 03 [Google image SEO best practices | Google Search Central](https://developers.google.com/search/docs/appearance/google-images) developers.google.com · checked 2026-10-24

Questions

## Asked a lot.

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

_01_ Where 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.

_02_ Should 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.

_03_ Can 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.

## Keep learning

[All platform guides](/seo)

[Learn WordPress SEO CMS](/seo/wordpress) [Related Alt text On-page SEO](/glossary/alt-text) [Read next WordPress lazy loading CMS](/seo/wordpress/lazy-loading) [Do Run a free site audit Free, about two minutes](/site-audit)

More in WordPress SEO
[AMP on WordPress](/seo/wordpress/amp) [Google Analytics on WordPress](/seo/wordpress/google-analytics) [How to put WordPress in maintenance mode](/seo/wordpress/maintenance-mode) [WordPress 404 page](/seo/wordpress/404) [WordPress AI crawlers](/seo/wordpress/ai-crawlers) [WordPress breadcrumbs](/seo/wordpress/breadcrumbs) [WordPress canonical tags](/seo/wordpress/canonical-tags) [WordPress Core Web Vitals](/seo/wordpress/core-web-vitals) [WordPress favicon](/seo/wordpress/favicon) [WordPress Google Search Console setup](/seo/wordpress/search-console) [WordPress hreflang and multilingual SEO](/seo/wordpress/hreflang) [WordPress HTTPS](/seo/wordpress/ssl) [WordPress image SEO](/seo/wordpress/image-seo) [WordPress internal links](/seo/wordpress/internal-links) [WordPress lazy loading](/seo/wordpress/lazy-loading) [WordPress noindex](/seo/wordpress/noindex) [WordPress redirects](/seo/wordpress/redirects) [WordPress robots.txt](/seo/wordpress/robots-txt) [WordPress SEO plugins](/seo/wordpress/seo-plugin) [WordPress SEO titles and meta descriptions](/seo/wordpress/title-and-meta) [WordPress speed optimization](/seo/wordpress/page-speed) [WordPress structured data](/seo/wordpress/structured-data) [WordPress www redirect](/seo/wordpress/www-redirect) [WordPress XML sitemap](/seo/wordpress/xml-sitemap)

Terms on this page
[Alt text](/glossary/alt-text) [Keyword stuffing](/glossary/keyword-stuffing) [WebP](/glossary/webp) [AVIF](/glossary/avif) [Category pages](/glossary/category-pages) [Image SEO](/glossary/image-seo)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
