---
url: /foundations/content-design/alt-text.md
description: >-
  Effective alt text describes the meaning and context of images for screen
  reader users
---

# Alt text

Effective alt text describes the meaning and context of images for screen reader users

![Alt text](/assets/fa64e927-mrodh0vv-content-design.DUdcngLP.webp)

## How to write great alt text

### Overview

Alternative text (alt text) refers to off-screen text that is used by screen reader accessibility software. Screen readers read out visible content such as paragraph and button text, as well as hidden content, including alt text for icons and headings.

Alt text also displays when an image doesn’t load. It tells people what they need to know about an image if they can’t see it.

::: tip Do
![4 tin mugs and appropriate alt text.](/assets/0e19e74c-lwj77km2-1_do.DJqtiYXP.webp)

Write alt text for images to provide context to screen reader users.

<br>

**Alt text: Two large and two small tin mugs.**

<br>

<br>
:::

::: danger Don't
![4 tin mugs with file name as alt text.](/assets/3764b71d-lwj782ss-2_don-t.B-9pGZld.webp)

Avoid leaving the automatically generated file number as alt text.

<br>

**Alt text: jpg - 0223939-330**

<br>

<br>
:::

### When to use alt text

If you remove the image from the page and no information is lost, then the image is decorative and doesn’t need alt text or a caption.

An image can be marked decorative using a null alt attribute, such as **alt=””** in HTML, which will hide the content from screen reader users.

![A bitcoin decorative image in a crypto article.](/assets/dc3f5c1a-lwj79l11-3.BaNOlUab.webp)

Images that don’t add information don’t need alt text.

<br>

**Alt text: “”**

<br>

<br>

### Focus on the meaning of the image

Describe the context and overall meaning, rather than focusing on the details. For example, in a shopping app, focus on the item for sale rather than the things around it.

Alt text can also help improve SEO, but its primary purpose should be to make sites usable for all.

::: tip Do
![Watering can in a shopping app and good alt text.](/assets/0a5b29e6-lwj7a0ft-4_do.BbbI_OKD.webp)

Focus on the important part of the image.

<br>

**Alt text: A Scandinavian-style, copper-handled, cream-colored watering can.**

<br>

<br>
:::

::: danger Don't
![Watering can in a shopping app and overly detailed alt text.](/assets/af6758bf-lwj7aw71-5_don-t.CzLokRt1.webp)

Avoid detailed descriptions that don’t contribute to the image’s meaning.

<br>

**Alt text: On a window sill, a child’s hands pours from copper handled cream colored watering can into a phoenix plant in a grey pot.**

<br>
:::

### Keep it short

The recommended length for alt text is 140 characters. 

If alt text is too long, it may be cut off by some screen readers, which is a poor user experience.

::: tip Do
![Relates idea of keeping alt text to a max of 140 characters.](/assets/7eee5f26-lwkc2f9v-6_do.pi4dESF3.webp)

Write brief alt text.

<br>

**Alt text: A small happy dog hanging out the passenger window of a vintage car.**

<br>
:::

::: danger Don't
![Long alt text can be overwhelming and ineffective.](/assets/47a9f4f1-lwkc3gw3-7_don-t.B5GNU7-F.webp)

Don’t write more than 140 characters of alt text. 

<br>

**Alt text: An aqua colored vintage car is driven by a woman in a cowboy hat. A poodle-mix dog sits in the passenger seat with its tongue out and paws out the window.**

<br>

<br>
:::

### Don’t start alt text with “image of”

Screen readers announce “image” when they come across an image. If your start your alt text with “image of” a screen reader will announce “image, image of.”

::: tip Do
![Makes the point of not using “image of” to start alt text.](/assets/f7def530-lwj7cw95-8_do.qzqJN4ba.webp)

Describe the image, rather than the format.

<br>

**Alt text: A wooden box of artisan sourdough bread is carried by a baker.**

<br>
:::

::: danger Don't
![Makes the point that poor alt text starts with “Image of.”](/assets/79681349-lwj7dpkq-9_don-t.D057FyRu.webp)

Avoid writing “image of." The screen reader will announce it’s an image.

<br>

**Alt text: Image of a wooden box of artisan sourdough bread is carried by a baker.**

<br>
:::

## Context and nearby text

### Context matters

Use adjacent text to establish the context and word choices for alt text. Adjacent text includes all of the text near an image, such as body text, captions, and headlines. 

Don’t repeat the caption in alt text. It’s against best practices because the user will hear the same text twice, which is a poor experience.

Be consistent in your word choices. For example, don’t use “antique” in a caption and “vintage” in the alt text.

::: tip Do
![Shopping app with image of a chair in a bathroom.](/assets/9201b813-lwj7ehhx-10_do.B9tY-Zyy.webp)

Alt text should always relate to the context.

<br>

**Alt text: Brown oak dining chair.**

<br>
:::

::: tip Do
![Home decorating blog post heading and caption and image of a wooden chair in bathroom.](/assets/d3662c9a-lwj7f0me-11_do.7F0Uv3Tt.webp)

Change alt text for an image depending on where it’s used.

<br>

**Alt text:  Books on a wooden chair next to a vintage bathtub.**

<br>
:::

### Alt text is subjective

Alt text is another layer of creative expression and should support the goals and style of its context.

The same image should have different alt text in different settings. Use the information in the app or article and the caption to decide what to emphasize in the alt text.

::: tip Do
![Shows idea of alt text supporting the caption.](/assets/31d9fbc2-lwj7flrw-12_do.Ccbd_oIK.webp)

Make alt text consistent with the caption.

<br>

**Alt text: A well composed photo of a photographer waiting for the perfect shot of sailboats.**

<br>
:::

::: danger Don't
![Shows idea of alt text missing key information from the image.](/assets/bf3488aa-lwj7i4ba-13_don-t.C1u8pDJ4.webp)

Don’t ignore the caption. Information in alt text should correspond to adjacent text.

<br>

**Alt text: A black and white photo of a woman standing on a pier while looking at sailboats.**

<br>
:::

::: tip Do
![Shows idea of alt text focussing on the meaning of the image.](/assets/e6c4c02c-lwj7ik28-14_do.wmaOhun2.webp)

Focus on the meaning of the image.

<br>

**Alt text: A black and white photo of woman looking at sailboats from a pier.**

<br>
:::

::: tip Do
![Shows idea of alt text reinforcing the caption theme.](/assets/33e9145c-lwj7ixvo-15_do.IhhpL-AD.webp)

Use alt text to reinforce ideas in the caption.

<br>

**Alt text: A photographer stands on a pier between 2 dock posts looking at sailboats.**

<br>

<br>
:::

::: danger Don't
![Shows idea of overly detailed alt text.](/assets/ac6d1f30-lwj7jdth-16_don-t.BXzxVEiM.webp)

Don’t write alt text with details that aren’t relevant to the context of the image.

<br>

**Alt text: A black and white photo of a female photographer looking at sailboats while standing between 2 dock posts on a Venetian pier.**
:::

### Captions should benefit all users

A caption should be useful to someone who can see the image clearly, as well as a screen reader user. 

Good captions support the image rather than duplicating its information. A well-written caption makes it easier to write alt text.

::: tip Do
![Alt text of “flying pigeons” supports the caption “Pigeons have a distinct silhouette.”](/assets/5abb0abc-lwj7jync-17_do.LSGugaJ6.webp)

Capture the meaning of the image in a few words.

<br>

**Alt text: Flying pigeons.**

<br>
:::

::: danger Don't
![The caption and alt text are both “Pigeons have a distinct silhouette.”](/assets/4d02f369-lwj7kb1h-18_don-t.D08umeSi.webp)

Don’t repeat the caption as the alt text.

<br>

**Alt text: Pigeons have a distinct silhouette.**

<br>
:::

## Types of imagery

### When to describe the type of image

Occasionally it benefits users to name the type of image. This can include:

* Chart
* Infographic
* Map
* Graph
* Screenshot
* Headshot
* Diagram

::: warning Caution
![Map with alt text that begins with “map of.”](/assets/709baa9a-lwj7kr95-19.C4fS1KLT.webp)

Be careful when using alt text that describes the type of image.

<br>

**Alt text: Map of Denver Rd. Park and surrounding area.**

<br>

<br>
:::

### Charts and graphs

Alt text is particularly important for visualizations such as charts and graphs. <br><br>Visualizations can either be editorial and meant to support a specific purpose or key takeaway, or more open-ended and used for general data analysis.<br><br>Consider the core purpose of the chart or graph, and what information someone would need to use it.<br><br>Link to the data that generated the chart or graph, if it’s available.

![Summary of interest in Manchester City, which is almost double that of Liverpool. Manchester interest peaks at 100 at 6pm. Liverpool peaks at 40 at 3am and 12:30pm.](/assets/928771c7-m2ch16f9-20.BYitgJP5.webp)

Summarize the main purpose of the data. Here, the chart involves interest in Manchester City and Liverpool.

When possible, explain the key takeaways and meaning in context, rather than detailing every data point.<br><br>A general formula for chart alt text would be: “Summary of \[data type] + \[reason for showing the chart].”

::: tip Do
![Alt text that summarizes the meaning of the chart.](/assets/d2c065c7-m2ch1hb7-21_do.DgUnGW5g.webp)

Capture the meaning of the chart, along with key data points

<br>

**Alt text: Summary of interest in Manchester City, which is almost double that of Liverpool. Manchester interest peaks at 100 at 6pm. Liverpool peaks at 40 at 3am and 12:30pm.**

<br>
:::

::: danger Don't
![Alt text for a chart that details too many data points.](/assets/923d4bf3-m2ch1sqk-22_don-t.Ris1In0z.webp)

Avoid copying data points

**Alt text: Interest in Manchester City: 12am=40, 12pm=56, 6pm=100, 9pm=45. Liverpool interest 12am=20, 12:30pm=40, 6pm=30, 9pm=20.**

<br>
:::

**Charts for editorial use<br>**<br>Charts with an editorial focus are used to support a key takeaway. This takeaway and the main data points confirming it should be the focus of the alt text. To create the alt text, leverage existing content from the body text, labels, and any text in the graph.<br><br>For example, a chart from a weekly digest showing highlights of physical activity may have a written summary of the total change in step count. This can be used in the alt text.

::: tip Do
![A fitness digest with a takeaway and metric highlighted in sample alt text.](/assets/1e56388f-m5v7afru-02-editorial-chart-1.BWh_k7Jj.webp)

In charts with an editorial focus, highlight the main takeaway and metrics<br><br>**Alt text: Your step count was 55% higher this week vs last week with 4,106 additional steps on average.**
:::

**Charts for analysis**

Charts for analysis are meant to be reviewed as a whole, and offer pieces of data to be analyzed. They can be dense, appear alongside related charts, and have many takeaways. <br><br>For charts that have one or two key takeaways, include these insights in the alt text. <br><br>To avoid introducing unintentional bias in charts with many possible takeaways, highlight opportunities for exploration, such as a link to the data’s source. Emphasize key data points or mention that there isn’t a single takeaway.

::: tip Do
![Chart for analysis with alt text that describes general structure and provides link to data.](/assets/a1499624-m2kctoq6-03-analyst-chart.CB6YoxcA.webp)

In charts used for analysis, mention the general structure, and highlight opportunities for more investigation<br><br>**Alt text: Comparison of annual high, avg, and low temperatures. Visit the link provided to explore the data in detail.**
:::

::: danger Don't
![Chart for analysis with alt text that inaccurately summarizes it.](/assets/9058eac8-m2kcv16w-03-analyst-chart-1.D7fvt5d6.webp)

Don’t summarize a chart used for analysis<br><br>**Alt text: High, average, and low temperatures varied widely over the course of the year.**<br>
:::

**Use interactive charts**

To improve the screen reader experience,  consider using interactive charts instead of static images, especially for complex visualizations that are used for analysis. For interactive charts, a tooltip can show additional detail for specific data points.<br><br>See [Top Tips for Data Accessibility](https://m3.material.io/blog/data-visualization-accessibility) for more ways to make these visualizations accessible.

![Chart for analysis with alt text that describes general structure and provides link to data.](/assets/d5f976cb-m2kd1tma-interactive-chart.DQaVLblR.webp)

Use interactive charts for complicated visualizations

### Video and motion alt text

As with still images, if the animated information isn’t elsewhere on the screen, then it is informative and needs alt text.<br><br>Long-form video content uses video description to narrate the visual elements of a video, so it doesn’t need alt text.

<video controls src="https://firebasestorage.googleapis.com/v0/b/design-spec/o/projects%2Fgoogle-material-3%2Fimages%2Flwj7ncxm-GM3-Foundations-ContentDesign-AltText-1-v01.mp4?alt=media" aria-label="A tooltip labeled “star” appears when a cursor hovers over a star icon."></video>

Summarize the action in a video or animation

Alt text on informative GIFs or motion assets should highlight the important points. Think of a heading or title you might give it, and that’s likely your alt text.

::: tip Do
![alt=""](/assets/2b94ab84-lwj7mf38-24_do.Dj4KZZUw.webp)

Write alt text that summarizes the motion asset.

<br>

**Alt text: A tooltip labeled “star” appears when a cursor hovers over a star icon.**

<br>
:::

::: danger Don't
![alt=""](/assets/6a3a138d-lwj7mptb-25_don-t.D6VzMruj.webp)

Don’t write about every aspect of the motion.

<br>

**Alt text: A hand-shaped cursor lands on a star-shaped icon and then a tooltip labeled “star” appears below the star.**

<br>
:::
