SEO6 MIN READ

When to Use Empty Alt Text for Decorative Images

Published

Knowing when to use empty alt text for images comes down to one test: does the image add information, or is it purely visual decoration? If a photo, icon, or background graphic repeats information already in nearby text or serves no functional purpose, mark it alt="" so screen readers skip it instead of announcing a meaningless file name or guessing at its content.

What defines a decorative image?

An image is decorative when a sighted user would lose nothing if it disappeared. The information it might carry is already present in the heading, body text, or caption around it, or the image exists only to set a visual tone. This is a judgment call based on the page's content, not a property of the file itself.

  • →A stock photo used purely to break up text or set a mood, with no caption referring to it
  • →A repeating background pattern or texture behind a section
  • →An icon placed next to a text label that already says the same thing, such as a download icon beside the word Download
  • →A divider graphic, border flourish, or corner ornament with no informational role

If an image does not contain information necessary to understand the main content and exists purely for decoration, it qualifies as decorative under accessibility guidance from Section508.gov, which frames this as the core test authors should apply before writing alt text.

Why use alt="" instead of omitting the alt attribute?

An empty alt attribute, written as alt="", is a deliberate signal that the image is decorative and should be ignored by assistive technology. Leaving the attribute out entirely is not the same thing and is not a safe shortcut. According to the W3C's Web Accessibility Initiative, decorative images should carry a null text alternative so they can be skipped, because some screen readers will announce the file name of the image instead when the attribute is missing altogether.

How do screen readers handle missing versus empty alt text?

The difference between these three states matters more than most people expect, because each one produces a different experience for someone using a screen reader.

Attribute stateTypical screen reader behaviorWhen to use it
Missing alt attribute entirelyMay read the file name aloud, such as IMG_4821.jpg, or announce image with no labelNever, for any image
Empty alt attribute, alt=""Skipped silently, image is removed from the accessibility treeDecorative images only
Descriptive alt text, alt="..."Read aloud as written, conveying the image's meaningInformative or functional images

Section508.gov reinforces the same point from the author's side: if you fail to mark an image's alt text as decorative, a screen reader may read the file name for the image rather than skip it altogether, which creates noise that interrupts the flow of the page for someone relying on audio navigation.

Does empty alt text hurt image SEO?

Not when the image genuinely is decorative. Google's documentation on image SEO explains that it uses alt text along with computer vision algorithms and the surrounding page content to understand the subject matter of an image. A decorative swirl or background texture has no subject matter to understand, so an empty alt attribute costs nothing. The risk runs the other way: marking an informative image as decorative removes a signal Google could otherwise use, and it removes information a screen reader user could have had.

If you're weighing alt text against a visible caption for the same image, the distinction between the two mechanisms is worth reading in more depth before you decide which one to rely on.

When to use empty alt text for images: a decision checklist

Illustrative example: a product page banner

This example is illustrative, not a measured test. Picture a product page with a decorative swirl graphic sitting behind a hero photo of the product, plus a separate, clear photo of the product itself. The product details, including color and material, are already written out in the body text below. In this layout, the swirl graphic gets alt="" because it carries no information beyond visual styling. The product photo gets a descriptive alt attribute, such as alt="Blue ceramic coffee mug with matte finish," because it is the one image on the page that a screen reader user would otherwise miss entirely.

Quick decision checklist

  • →Would removing the image lose any information a sighted user currently gets from it?
  • →Does a caption, heading, or paragraph already state everything this image shows?
  • →Is it a spacer, divider, background pattern, or purely stylistic flourish?
  • →Is it an icon sitting next to visible text that already says the same thing?
  • →If the answer to the first question is yes, write descriptive alt text; if every other question is yes, use alt=""

The W3C's guidance is explicit that this remains a judgment call: whether to treat an image as decorative is a decision only the author can make, based on the reason the image was included on that specific page. The same photo can be decorative on one page and informative on another.

How to check your alt text decisions

  • →Open the page's HTML and confirm every img tag has an alt attribute, even if it's empty
  • →Run a browser's accessibility inspector or the Accessibility panel in DevTools to see how each image appears in the accessibility tree
  • →Test the page with a screen reader such as VoiceOver or NVDA and listen for file names being read aloud, which signals a missing attribute
  • →Run an automated audit such as Lighthouse's accessibility checks to catch images with no alt attribute at all

Automated tools can flag a missing alt attribute, but they cannot judge whether an image is genuinely decorative or informative on your specific page. That judgment stays with the person who knows why the image is there, so treat tool output as a starting point for review, not a final answer.

If you're also cleaning up images before publishing, note that re-encoding a raster image strips its metadata, while SVG or pass-through files may retain it; that's a separate concern from alt text but worth checking at the same time.

Next step: go through your page's images one at a time, ask whether each one would be missed if it vanished, and set alt="" on the ones that wouldn't be. Then confirm the result with a screen reader or an accessibility inspector rather than assuming your markup is correct.

Ready to optimize your images?

TRY ZIPMYIMAGES FREE →

Related guides