Skip to main content
ADA Title II web rule: large public entities must comply by April 26, 2027.Check your deadline  |  hello@ax4e.com  |  Accessibility
AX4E

How to write alt text: say what the image is for

Alt text is the text a screen reader reads in place of an image. Good alt text is short and says what the image means in that spot, not everything it shows.

Written by the AX4E accessibility team. Checked against the primary sources listed at the end of this page. Last reviewed November 21, 2026. Read how we write and review guides in our editorial standards.

The one rule

Ask: if I could not show this image, what would I say instead? Write that. The same photo can need different alt text on different pages, because the purpose changes.

Examples

When to leave it empty

If an image is purely decorative, such as a background flourish or a photo that repeats the caption next to it, give it empty alt text (alt="") so screen readers skip it. Most editors have a "mark as decorative" option. Do not leave the alt attribute out entirely; that makes some screen readers read the file name.

Charts, maps and photos of text

Alt text on social media

Most platforms have an alt text field when you upload an image. Use it every time, keep the key information in the post text too, and write hashtags in camel case. See the documents and social cheat sheet for more.

Can AI write it?

AI can draft alt text quickly and is getting better. It cannot know why you chose the image or what point it makes on your page, so a person should check every draft. Use AI for a first draft, not the final word.

Common questions

How long should alt text be?

As short as it can be while still doing the job, often one sentence. Put longer descriptions, such as chart data, in the page text.

Do decorative images need alt text?

They need an empty alt attribute (alt="") so screen readers skip them. Do not leave the attribute out.

Should alt text start with 'image of'?

No. Screen readers already announce that it is an image.

Sources

  1. W3C WAI: An alt decision tree
  2. WebAIM: Alternative text