Alt text vs caption vs title: what each one is for

Alt text replaces the image for people who can't see it, a caption is visible to everyone, and a title names the file or adds a tooltip.

By
Picture Optimizer team
Published
Type
Guide

Alt text, captions and titles do three different jobs. Alt text is a hidden text alternative that screen readers read in place of the image. A caption is visible text under the image that every visitor sees. A title is either the image's name in your media library or an optional tooltip, and it should never carry information people need.

The three at a glance

Alt text

Caption

Title

Where it lives

alt attribute on the img

Visible text, often a figcaption

WordPress media name, or the HTML title attribute

Who sees it

Screen reader users; everyone if the image fails to load

Every visitor

Site editors; sometimes a hover tooltip

Job

Replace the image's meaning

Add context the image can't show

Name the file, or offer optional advice

Required?

Yes (empty alt="" for decorative images)

No

No

Alt text: a replacement for the image

Alt text is for someone who can't see the picture. WCAG 2.2 Success Criterion 1.1.1 requires a text alternative that serves the equivalent purpose for non-text content, and the alt attribute is how an image provides it. The W3C's guidance for informative images is to convey the meaning in a short phrase or sentence, without "image of" or "picture of."

Google's image SEO documentation calls alt text the most important attribute for image metadata and says Google uses it, with computer vision and the page's content, to understand an image.

Example: alt="Electrician repairing an outdoor electrical panel"

Caption: context for everyone

A caption is part of the page. It is where you put things the photo can't show by itself: who, where, when, why it matters. In HTML, MDN describes figcaption as the caption or legend for the rest of a figure element's contents.

```html
<figure>
<img src="electrician-panel.avif"
alt="Electrician repairing an outdoor electrical panel">
<figcaption>Replacing a storm-damaged panel in Tulsa, March 2026.</figcaption>
</figure>
```

Notice that the caption doesn't repeat the alt text. The W3C notes that when nearby text already explains an image, a short text alternative is enough. A screen reader user hears both, so make them complement each other.

Title: a name, or an optional tooltip

"Title" means two different things, which is where most confusion comes from.

The WordPress Media Library Title field is the name of the media item. WordPress's documentation says a title is often shown on attachment pages and galleries if themes or plugins display it. A descriptive title ("Outdoor electrical panel repair") is far easier to find in a large library than "IMG_4382."

The HTML title attribute is advisory text, usually shown as a tooltip on hover. MDN lists it as highly problematic for people on touch-only devices, keyboard users, screen reader and magnifier users, and people with motor or cognitive impairments, because browser and assistive technology support is inconsistent. So don't rely on it, and never use it instead of alt text.

Same photo, three fields

Here is what AI vision wrote for one photo in our sample run of 54 business images (a free-license Unsplash photo), unedited:

  • Alt text: Male electrician in a yellow hard hat and gloves repairing an electrical panel on an exterior wall
  • Title: Electrician Performing Electrical Repairs
  • Caption: A professional electrician carefully inspecting and repairing an external electrical panel installation.

The three fields do different jobs, but in this draft the caption mostly restates the alt text. On a real electrician's site, the caption is the place for facts only you know: the town, the job, the result. That is the edit a person should make before publishing.

Common mistakes

  • Copying the caption into the alt text, so screen reader users hear it twice.
  • Putting key information in a tooltip title that touch and keyboard users can't reach.
  • Leaving camera file names as media titles.
  • Keyword-stuffing any of the three. Google's documentation specifically warns against it in alt text.

Writing all three at once

Our image caption generator writes the alt text, title and caption for each photo in one pass, from what is in the picture, and you check and edit every field before it is saved. It is included from Starter up, at 2 credits per photo; the Free plan is compression only. See also the alt text generator and image title generator.

Keep reading

Sources

Questions

Short answers to what people ask about this.

They can, but it's usually wasteful: a screen reader user would hear the same words twice. When a caption already explains the image, keep the alt text short or complementary.

Guide · Alt text and accessibility

What is alt text? Meaning, purpose and examples

Alt text is a short written description of an image, read aloud by screen readers and shown when images fail. Here is how to write it, with real examples.