WordPress GuideImages → Add Alt Tags

How to add alt tags to images in WordPress

A man looks intently at a large computer monitor as he compares managed WooCommerce hosting plans

Alt text isn’t just a checkbox for SEO—it’s a key part of accessibility, content clarity, and image performance. If you’re uploading images to WordPress without filling in the “alt” field, you’re leaving value on the table.

Image alt text (alternative text) is a short description added to an image’s HTML code that explains the image’s content and purpose. It’s used by screen readers to help visually impaired users understand visual elements, and it also helps search engines index images for SEO. If the image fails to load, the alt text appears in its place as a fallback.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

What is alt text and why it matters

Image alt text (alternative text) is a short description added to an image’s HTML code that explains the image’s content and purpose. It’s used by screen readers to help visually impaired users understand visual elements, and it also helps search engines index images for SEO. If the image fails to load, the alt text appears in its place as a fallback.

Accessibility

Alt text helps screen readers describe images to users who are blind or visually impaired. It’s required for WCAG 2.1 compliance and a better user experience for everyone.

SEO value

There’s debate about whether or not search engine crawlers can see and interpret images, but if they can, they probably don’t. Image alt text helps Google understand what is on the page.

That means helpful, descriptive alt text can boost your image SEO and help your site appear in image search results.

UX and loading behavior

If an image fails to load, the alt text will display in its place. This improves clarity and helps users stay oriented on your page.

How to add alt text in the WordPress Media Library

Here’s the most direct way to add or edit alt tags for images you’ve already uploaded.

How to add alt text when uploading new images

When you’re uploading an image directly while editing a post or page:

This ensures your alt text is added right from the start.

How to add or edit alt text in the Block Editor (Gutenberg)

If you’re using the block editor:

How to add alt attributes in the Classic Editor

For sites still using the Classic Editor:

How to write effective alt text (and what to avoid)

Great alt text is all about clarity, usefulness, and context. Here’s how to get it right—and the most common pitfalls to avoid.

For example, if you’re selling Minecraft servers and you include an image of a person at their gaming desk:

Plugins that help manage or automate alt text

If you’re working with a large number of images, plugins can help automate or bulk edit alt attributes:

Ready to get started?

Get the fastest, most secure WordPress.org hosting on the market.

Trust us to help you choose the ideal hosting solution

Loading form…