To add alt text to an image in WordPress, open the post, select the image, and enter a description in the Image block’s Alternative Text setting. Save the draft or update the post, then check the image in the saved preview or published page.
The last check matters when an image is reused. Its Media Library record and its placements in individual posts are separate places to review. Changing the library field is not, by itself, proof that every saved article now outputs the description you intended.
This guide covers the standard WordPress block editor. Labels and controls can vary with your WordPress version, editor configuration, and the type of image you are editing.
Choose alt text that fits the image’s purpose
Alt text is a text alternative for an image. Screen readers can use it to communicate what an image contributes, and it may appear if the image cannot be displayed. You may also hear it called an “alt tag,” although the text is stored in an image’s alt attribute.
Start with the image’s job in the article. What would a reader miss if they could not see it? Describe that useful detail rather than the filename or a list of search terms.
For example, imagine a screenshot of an Image block’s settings panel. The article explains where to enter alternative text, and the field is highlighted in the screenshot.
| Approach | Illustrative text | Why it helps or falls short |
|---|---|---|
| Filename | editor-image-03.png | Identifies a file, not what the screenshot communicates. |
| Keyword stuffing | “WordPress alt text image WordPress add alt tag WordPress” | Repeats search terms without describing the useful detail. |
| Contextual description | “Image block settings with the Alternative Text field highlighted” | Identifies the control the article is discussing. |
Use details that are actually present in your image. If a screenshot contains instructions or an error message essential to the task, explain them in the surrounding article too; don’t make the image description their only source.
The same image can need different text in another article. A screenshot showing both an Alternative Text field and an image-size setting might support a description of the former in an accessibility guide and the latter in a sizing guide. Describe the detail relevant to each placement.
An image that adds no information or function—for example, a decorative flourish—can appropriately have empty alt text. Don’t fill it with keywords simply because a field exists. If an image is a link, consider describing the link’s purpose or destination instead of only its appearance, particularly when the image is the link’s only content.
Alt text is not a caption or image title
A caption is visible text accompanying an image. It can provide context, attribution, or an explanation. An image title helps identify the media item, and the filename identifies the file. None of those fields is the same as the alt attribute on the image in the article.
A caption and alt text can complement each other. For instance, a caption might name the WordPress screen while the alt text identifies the highlighted control. Avoid repeating a long caption word for word when a shorter description of the image’s contribution will do.
Add alt text in the Media Library before insertion
If you have an image ready but haven’t placed it in a post, you can enter a reusable starting description on its Media Library record.
- In the WordPress dashboard, open Media and find the image. Upload it first if it is not already in the library.
- Open the image’s attachment details. Find the Alternative Text field and enter a description suited to its likely use.
- Allow WordPress to save the change, then close and reopen the attachment to confirm the value is still there. If it is not, enter it again and check for a save or permission issue.
- Open your draft, insert an Image block, and select that image from the Media Library.
- Select the inserted image and review its block settings. Check the alternative-text value rather than assuming what was inserted, and adjust it to fit this article.
- Save the draft and inspect the saved preview using the steps below.
The library value is useful information about the attachment, but it may not be the right description for every use. A general library description such as “WordPress image settings panel” is less specific than a description of the particular setting an article teaches readers to find.
Likewise, a later change to the library field should not be treated as proof of a change in an existing post. The two-post exercise below lets you observe what happens in your own setup.
Update an image already in a post
When correcting an existing article, work on the image placement in that post. You’ll need access to edit the post and save a draft or update the published version.
- Open the post in the block editor and locate the image in the article body.
- Select the image. If necessary, open the settings sidebar and choose the Block settings rather than the post-wide settings.
- Find Alternative Text in the Image block settings. Enter the description appropriate to this placement, or leave it empty when the image is intentionally decorative.
- Save the draft or update the post. If WordPress asks for confirmation, complete the save or update.
- Reopen the post and select the same image. Confirm that the field still contains your intended value. Then open the saved preview—or the published page after an update—and check the image’s output.
If you cannot find the field, first confirm that the image itself is selected. Clicking a surrounding block or opening post settings instead of block settings may show different controls. Depending on the editor, the alternative-text setting may appear within the image’s block settings rather than beside the image.
This route is for a standard Image block. A gallery, featured image, or image managed by a page builder or template can have different controls. Find the component responsible for that placement and check its saved output; don’t assume that editing a body Image block will change it.
Worked example: reuse one image in two posts
This is a reader-run exercise, not a reported test. It lets you see how your site handles a library change after the same image has been inserted into two posts. No particular propagation result is assumed.
Use two unpublished test posts and one harmless screenshot. For this illustrative setup, imagine the screenshot shows both an Alternative Text field and an image-size control. You can use your own image and descriptions; the important thing is to make each value recognizable.
- Prepare the record. In the Media Library, enter a general value such as “Image settings panel with alternative text and size controls.” Reopen the attachment and record the saved value.
- Insert it twice. Add the same library image to test posts A and B as standard Image blocks. In post A, the article context is finding the alternative-text field. In post B, the context is adjusting image size.
- Review both placements. Record what each block’s alternative-text field contains after insertion. In post B, change the block value to a size-focused description, such as “Image settings panel with the size control visible.” In post A, use an alternative-text-field description if needed. Save both drafts.
- Record the first outputs. Reopen each post and record its block value. Inspect each saved preview’s image attribute using the browser steps in the next section. Record those rendered values too.
- Change the library value. Return to the same attachment and enter a distinctly different general description, such as “Editor image settings screenshot.” Reopen the attachment to confirm it saved.
- Check again without editing the blocks first. Reopen both test posts and record their block values. Open fresh saved previews and inspect the corresponding image in each one. Record what you actually see before making further corrections.
Record your WordPress version, the editor and block type, and any relevant theme, builder, or image-related extensions alongside the results. These details help you interpret the test later if your setup changes. Keep the posts unpublished; this is an experiment, not a reason to alter live articles.
Blank results table
The “before” column means before changing the library value in step 5. The “after” column means after that change. For each post’s output row, record the rendered alt value in both columns; use the last column for any detail needed to identify what you inspected.
| Location | Value before library change | Value after library change | Rendered alt attribute or notes |
|---|---|---|---|
| Media Library field | |||
| Post A Image block field | |||
| Post A saved preview output | |||
| Post B Image block field | |||
| Post B saved preview output |
Your observations might show unchanged placements, changed placements, or a difference between a field and the preview. Those are possibilities, not predictions. If a value differs, confirm that you reopened the correct post and inspected the correct image before deciding what happened. The result describes this test in this environment; it does not establish a universal WordPress rule.
Check the saved post’s image attribute
The editor field tells you what you entered. The saved page’s image attribute tells you what that particular page outputs. Check both when you add or revise alt text.
Reopen the field first
Save the post, leave the editor, and reopen it. Select the same Image block and read its alternative-text setting. If the value is missing or outdated here, correct it and save again before investigating the preview.
For a draft, open a preview after saving. For a published post, check the public article after updating it. If you are making changes to an existing published article without updating it yet, remember that the public page may still show the previous published version.
Inspect the image in your browser
On a desktop browser, you can check the page without editing code:
- Open the saved preview or published page and locate the exact image placement you changed.
- Right-click the image and choose Inspect or the browser’s equivalent. A developer-tools panel opens with page markup. The wording and layout vary by browser.
- Look for the selected image element, usually beginning with
<img. Find itsaltattribute. If the selected element is a surrounding link or container, expand it or select the nested image element. - Compare the value with the text you intended for this placement. If there are similar images on the page, use the selected element and its image source to confirm you are checking the right one.
For example, this is illustrative markup, not a captured result:
<img src="editor-settings.png" alt="Image block settings with the Alternative Text field highlighted">
The text inside alt="..." is the image’s alternative text. An image with alt="" has an explicitly empty value; that can be the intended result for a decorative image. An image with no alt attribute at all is different from one with an empty attribute and needs investigation.
Pass: the correct image placement has the intended descriptive value, or has alt="" when you deliberately chose an empty alternative. Needs correction: the value is missing, outdated, inappropriate for the placement, or belongs to a different image than the one you meant to check.
Browser inspection is a reading check, not an instruction to edit the page’s code. If you are unfamiliar with developer tools, you can still reopen the field and preview the article; ask a colleague for help inspecting the output when you need to confirm the attribute.
Fix missing, outdated, or unexpected alt text
Start with the exact image placement and its saved state. The explanations below are possible causes to investigate, not diagnoses of a particular WordPress site.
| Symptom | Next check | Successful result |
|---|---|---|
| The Media Library value changed, but a post did not | Reopen the post and inspect that image block’s field. Enter the intended placement-specific text, save, and inspect the preview. | The saved placement outputs the text intended for that article. |
| The editor field is right, but the preview is different | Confirm the save completed and reopen a fresh preview. Check the exact image element. If the mismatch remains, investigate whether a cache, template, or extension affects the output. | A fresh saved preview outputs the intended value, or the responsible component is identified for correction. |
| You inspected an image but the value makes no sense | Confirm the post, placement, and selected <img> element. A page can contain multiple copies or similar images. | The inspected element corresponds to the image you edited. |
| A featured image or gallery has different controls | Identify the component that renders that image and review its available settings. Inspect that placement separately after saving. | The intended value appears on the relevant rendered image. |
| A generated description is inaccurate | Read it against the actual image and article context. Replace unsupported or irrelevant details in the field controlling that placement, then save and check. | The output describes the image’s useful contribution without invented details. |
| An intended decorative image has descriptive or missing output | Review the placement’s role and field, save the intended empty value, and inspect the result. If the attribute is absent or still descriptive, investigate the component rendering it. | The correct image outputs alt="" when an empty alternative is intended. |
If a mismatch persists, note the post URL, image placement, reopened field value, and observed attribute. That gives a site maintainer something specific to investigate. If a code change becomes necessary, preserve a copy before editing and use an appropriate backup or revision process.
For a broader investigation of an existing article, see how to check and fix image alt text in WordPress posts.
Final image check before publishing or updating
After moving an article from a document into WordPress, review the images in their new context. A useful description in the source or Media Library is a starting point, not confirmation of the saved post’s output.
- Check each meaningful image for a description that fits its role in this article.
- Review decorative images deliberately and use an empty alternative where appropriate.
- For linked images, consider whether the text communicates the link’s purpose.
- Save the draft or update the post. Reopen changed image settings, then verify the output for those placements in the saved preview or public page.
Start with one draft: select one meaningful image, enter or revise its alt text, save, and confirm the intended value in the saved preview. Once that image passes, use the same approach on the rest of the article before taking on a larger backlog.
