20 items5 sectionsFor Content writers, designers, marketers, developers

Image Alt Text Guide with Examples

Alt text seems easy until you have to write 200 of them on a tight deadline. The hard cases — decorative images, photos with text inside, infographics, charts — are where most teams stumble. This guide categorizes images and gives the rule for each, with 20 real-world examples.

References: WCAG 2.2 SC 1.1.1, W3C Web Accessibility Tutorials — Images

013 items

The Three Categories

Every image is one of these. Decide which BEFORE writing alt.

  1. 01
    DECORATIVE — adds visual flavor only, conveys no info (background patterns, divider images). Alt = empty string ("") OR aria-hidden="true"
  2. 02
    INFORMATIVE — conveys meaning sighted users get from the image (a photo of the product, a chart of data). Alt = describes the meaning, NOT the image
  3. 03
    FUNCTIONAL — image is part of an interactive element (icon button, image link). Alt = describes the ACTION, not the visual ("Search", not "magnifying glass")

025 items

Decorative — 5 Examples

  1. 04
    Hero background pattern → alt=""
  2. 05
    Section divider line graphic → alt=""
  3. 06
    Avatar placeholder when name is also shown next to it → alt=""
  4. 07
    Decorative leaf/swirl in a wedding invitation → alt=""
  5. 08
    Pure-aesthetic background photo on a hero → alt="" (the headline carries the meaning)

035 items

Informative — 5 Examples

  1. 09
    Product photo of a blue running shoe → alt="Blue Nike Pegasus 41 running shoe, side view"
  2. 10
    Photo of CEO at conference → alt="Sarah Chen speaking on stage at WWDC 2025"
  3. 11
    Chart showing revenue trend → alt="Q1-Q4 2025 revenue chart: Q1 $1.2M, Q2 $1.8M, Q3 $2.1M, Q4 $2.6M" (data, not "bar chart")
  4. 12
    Infographic with 3 statistics → alt summarizes the 3 stats in text
  5. 13
    Map showing store locations → alt="Map showing 12 store locations across the US Northeast" + accessible alternative (table or list)

045 items

Functional — 5 Examples

  1. 14
    Magnifying-glass icon as Search button → alt="Search"
  2. 15
    Hamburger icon as menu toggle → alt="Open menu"
  3. 16
    Logo image that links to homepage → alt="[Company name] home"
  4. 17
    Trash icon as Delete → alt="Delete"
  5. 18
    Star icon as Favorite (toggle) → alt="Add to favorites" or "Remove from favorites" depending on state

055 items

Common Mistakes

  1. 19
    "image of..." or "photo of..." — redundant; screen readers announce "image" already
  2. 20
    File name as alt ("DSC_0245.jpg") — useless
  3. 21
    Stuffing keywords for SEO — Google penalizes; users don't
  4. 22
    Repeating adjacent caption text — screen readers read it twice
  5. 23
    Empty alt on functional image — "Unlabeled button" announced; user has no idea what it does

AccessAudit AI for iPhone

Run this on your phone.

Point your iPhone camera at any color pair to see its WCAG contrast ratio and whether it passes, in real time, on the device.

More for AccessAudit AI users