Skip to content

How to write alt text for an ordinary photo

Reviewed on 16 November 2026

Say what the picture adds to the page, in as few words as you can. That's the whole job.

Section508.gov, a US government site, keeps the rule brief. Alt text "should be short and to the point".1

How long should it be?

WebAIM, an accessibility group, says typically only a few words are necessary. Rarely, a short sentence or two may be appropriate.2 MDN's advice is just as blunt: "Keep it short, precise, and useful."3

So a short phrase is normal. A paragraph is almost always too much. If you feel you need a paragraph, the detail probably belongs in the page text where everyone can read it.

Describe the job, not the look

Section508.gov says alt text should "refer to relevant content provided by the image, rather than simply describing how the image looks."1 Ask what the photo is doing on this page.

MDN gives a good example. A photo of a dog called Fluffy could sit beside a review, or on an animal rescue's adoption page. On the review, a name might be enough. On the adoption page, the alt text could carry the dog's coat and a toy in her mouth, because a person adopting needs those details. Things like a red collar or being outdoors are left out because they don't matter to that reader.3

The same photo, then, gets different words in different places. The sources say this plainly. WebAIM's article on alternative text has a section headed "Context is Everything". It shows that the same image may need vastly different alternative text depending on how it is used.2

A way to draft alt text for a photoAsk why the photo is on the pageRead the text around itList what's missing from that textWrite those few wordsRead it aloud after the text before it
Work out the picture's job first, then write.

Don't repeat what's nearby

If the paragraph next to the photo already says it, don't say it twice. WebAIM says alt text shouldn't repeat information that's in text near the image.2 MDN agrees: include what the image shows "that is not duplicated in the surrounding text".3

Suppose your page about a cake order says, in the text, "Our sponge is filled with jam." A photo of that cake doesn't need alt text that repeats the jam. It might just say what the finished cake looks like, if that matters. Or, if the text already covers everything the photo shows, it might be left empty. That choice is covered on the page about leaving alt blank.

Skip the filler

Don't start with "image of" or "photo of". WebAIM explains why: screen readers already announce that there's a graphic, so those words are redundant. If it really matters that something is a painting rather than a photograph, say so.2

MDN's wording is that alt text "should not describe the presence of the image itself or the file name of the image".4 A line such as "IMG_4471.jpg" tells nobody anything. And the single word "image" does no better.

A quick test

MDN suggests reading the alt text straight after the sentence before the picture, and seeing "if it conveys the same meaning as the image".4 If the sentence reads naturally with your alt text tacked on, you're close.

Try it on your own words. Say "Here's our shopfront on market day:" and then the alt text. Does it make sense? Does it add something the visitor needs?

Language

Alt text goes in the language of the page. Section508.gov says it "must be in the same language as the main content".1 If part of your site is in another language, write the alt text for those pages in that language too.

What about long or complicated pictures?

Charts and diagrams need a different approach, covered in the guide to describing charts. Pictures that are links need to say where they go. You'll find that under logos and icons.

Sources used

  1. Authoring Meaningful Alternative Text, Section508.gov (US General Services Administration)
  2. WebAIM: Alternative Text, WebAIM
  3. HTML accessibility, MDN Web Docs (Mozilla)
  4. <img>: The Image Embed element, MDN Web Docs (Mozilla)