Image Accessibility Tools

Decorative Image Checker

Empty alt="" is the right choice for purely decorative borders, spacers, and redundant icons—but dangerous when placed inside links or on informative graphics.

Your files and content are processed locally in your browser. We do not upload your files to our servers.

What This Tool Does

  • Scans HTML for images with alt="", missing alt, role="presentation", and aria-hidden="true".
  • Alerts when an image with alt="" is the sole content inside an <a> or <button>.

Who Should Use It

  • Developers
  • Accessibility auditors

How to Use Decorative Image Checker

  1. Paste HTML markup to check all decorative and empty-alt image usages.

Accessibility Principles & Technical Methodology

An empty alt="" attribute tells screen readers to skip the image completely. However, if that image is the only child inside a link, the link loses its accessible name.

Technical Methodology

DOM tree inspection checking ancestor interactive elements (<a href>, <button>) around alt="" images.

Practical Examples

Decorative vs. Linked Icon

Icon next to visible text gets alt=""; standalone icon inside button needs aria-label on button.

Avoid
<button><img src="trash.svg" alt=""></button>
Recommended
<button aria-label="Delete item"><img src="trash.svg" alt=""></button>

Relevant WCAG 2.2 Criteria

  • 1.1.1 Non-text Content (A)
  • 2.4.4 Link Purpose (In Context) (A)
Explore WCAG 2.2 Guide

Common Mistakes to Avoid

  • Putting alt="" on an icon button without adding aria-label to the button.

Decorative Image Checker — FAQs

Always include an empty alt="". Omitting the alt attribute causes many screen readers to read the image filename instead.
Image & SVG

Image Alt Text Checker

Detect missing alt attributes, filename placeholders, and redundant alt phrasing locally.

Open tool
HTML Structure

Empty Link Detector

Locate icon-only or blank <a> links that fail screen reader announcements.

Open tool