Skip to content

Image alt checker. Every <img> in one paste.

Paste HTML; we walk every <img> in the document and check six conditions per image. Missing alt, decorative-empty alt, filename-as-alt, keyword stuffing, length out-of-range, and clickable-but-empty conflict are surfaced with the offending tag in context. Pure browser DOM parsing.

Try:
summary
Paste HTML and click Scan.
Sources used by this tool
  • WCAG 2.1 SC 1.1.1 Non-text Content, the canonical alt-text requirement
  • W3C WAI Images Tutorial, decorative vs functional vs informative
  • HTML parsing via the browser's built-in DOMParser (DOM Standard), no third-party library
  • Filename-pattern detector: regex matching IMG_, DSC, screenshot- prefixes + .jpg/.png/.gif/.webp suffixes

All checks run in JavaScript on your device. No fetch, no log.

§ · written guide

How to use the Image Alt Text Checker

This checker reads a block of HTML, finds every image tag and reviews its alt attribute. Each image is tested for a missing alt, an empty alt inside a link, an alt that looks like a file name, a generic one word alt, a length outside 8 to 125 characters and signs of keyword stuffing. It is for developers, content editors and anyone doing an accessibility pass against WCAG 1.1.1.

Step by step

  1. Paste your HTML

    Paste a full page or a fragment into HTML to scan. To get a live page's HTML, open it in your browser, view the page source and copy it, or copy the HTML view from your CMS editor.

  2. Or load the sample

    Press Sample HTML to fill the box with seven example images that show each kind of problem. It only fills the box, so you still need to run the scan.

  3. Run the scan

    Press Scan images. The summary box shows how many images were found and how many are passing, have warnings or fail, and a card for each image appears below.

  4. Fix and scan again

    Work through the cards, update your alt text, paste the new HTML and press Scan images again. Press Clear to empty the box and reset the summary.

Reading the result

  • Fails are the real blockers: an image with no alt attribute at all, an empty alt on an image inside a link, or an alt that looks like a file name, such as IMG_4523.jpg.
  • Warnings are weak alt text: a single generic word like photo or logo, fewer than 8 characters, more than 125 characters, or a long run of words that reads like a keyword list.
  • An empty alt on an image that is not inside a link passes as decorative, because screen readers skip it.
  • Each card shows the image's src, its alt in quotes or (missing), a note when it sits inside a link, and every finding with a short reason. An image counts as passing only when all of its findings pass.
  • The built-in sample scans as 7 images: 3 passing, 2 with warnings and 2 fails.

Tips and common mistakes

  • Write alt text that says what the image shows or does in that spot. A linked image should describe where the link goes.
  • Give purely decorative images an empty alt, written alt="", rather than leaving the attribute out. Without it, screen readers may read out the file name.
  • The keyword check is a rough rule, not a verdict. It flags 8 or more words where one word appears 3 times, or 12 or more words with no common verb. Read the flagged alt and decide.
  • The scan only sees the HTML you paste. Images added later by scripts, and images set as CSS backgrounds, are not checked.

Privacy and limits

The HTML is parsed by your browser's built-in DOMParser. Nothing is sent to a server and the images in your HTML are not downloaded. Nothing is saved, so the box is empty when you reload.

Back to the tool

§ 02 · three states · why each matters

Missing vs empty vs descriptive.

Missing alt means the <img> tag has no alt attribute at all. Screen readers fall back to announcing the file path or filename, which is almost always meaningless, a user hears "image: forward-slash assets forward-slash hero dot jpg" and gets nothing useful. WCAG 2.1 SC 1.1.1 explicitly requires every non-decorative image to have alt text, so missing alt is a Level A failure.

Empty alt (alt="") is intentional and correct for decorative images: a background grain texture, a stylized horizontal-rule divider, an icon that visually duplicates an adjacent text label. The empty string tells the screen reader "skip this, it conveys no information beyond visual styling." Empty alt is required for these cases; without it, the screen reader announces the filename and clutters the listening experience.

Empty alt inside a link is a serious failure even though the alt itself is technically valid syntax. A clickable image with empty alt has no accessible name; the screen reader announces "link" with no description. Users cannot know what the link does. Either give the image meaningful alt describing the link's destination ("Book a consultation"), or wrap the image with the link text included visibly outside the image.

Descriptive alt describes the image's role in context. The same photo on a team page might have alt "Maya Chen, Head of Engineering, in the NYC office"; on an article about Series A funding might have alt "Maya Chen, founder, presenting at Y Combinator demo day". Same image, different alt because the role differs. Generic single-word alt ("image", "photo") is technically present but conveys nothing, we flag it as a warning.

Filename-as-alt is the symptom of a CMS or export pipeline that copied the filename into alt by default. alt="IMG_4523.jpg", alt="DSC_002.png", alt="Untitled-3.gif": all useless. Many CMS systems do this if no alt is provided at upload time. The checker flags any alt matching common camera-export or auto-numbered patterns.

Keyword stuffing in alt text was a 2008-era SEO trick that no longer works and now risks WCAG-spam penalties. Alt text should describe the image's function in context, not chant a list of every service keyword. The checker uses a simple heuristic, repeated words, missing verbs, eight-or-more comma-separated terms, to flag stuffed alts.

§ 03 · questions

Six questions users ask.

What does the alt attribute do?

The alt attribute provides a text alternative when an image cannot be displayed (slow connection, broken URL) and is read aloud by screen readers for users who cannot see the image. WCAG 2.1 Success Criterion 1.1.1 requires every non-decorative image to have meaningful alt text. Decorative images (purely visual, no information conveyed) should have alt='' (empty string) so screen readers skip them. Missing alt entirely means the screen reader announces the filename, which is almost always wrong.

Empty alt vs missing alt, what's the difference?

alt='' (empty string) is intentional: it tells the screen reader 'this image is decorative, skip it.' Missing alt entirely (no alt attribute) makes the screen reader fall back to announcing the image's URL or filename, which is rarely meaningful. Decorative images should always have alt='' rather than no alt.

What is filename-as-alt and why is it bad?

When alt text reads like a filename (IMG_4523.jpg, dsc-002.png, screenshot-2024-04-15.png) it suggests the page was generated by a CMS or export pipeline that copied the filename into the alt by default. These alts convey nothing useful, a screen reader user hears 'image: IMG underscore 4523' which is meaningless. We flag any alt that contains a file extension, sequential numbering, or DSC/IMG/SCREENSHOT prefixes.

What about keyword stuffing in alt?

Stuffing keywords into alt text was a 2008-era SEO trick that no longer works and now risks WCAG keyword-stuffing penalties. The rule: alt text should describe the image's function in context, not chant a list of every service keyword. 'Hero photo of NYC team during planning session' is good; 'shopify development agency NYC custom theme web design SEO' is bad.

How long should alt text be?

Aim for 8-125 characters. Too short usually means the alt is too generic ('image', 'photo', 'logo' alone). Too long means the alt is reading like body copy rather than a label. Most useful alts are one sentence (8-20 words) describing what the image shows and why it matters in context. Complex images (charts, infographics) should have longer descriptions in adjacent text or via aria-describedby pointing to a fuller description.

Does this tool log my HTML?

No. The HTML is parsed entirely in your browser using DOMParser. Nothing is sent to Digital Heroes servers. No signup, no email, no analytics beacon includes the HTML content.

Published · Last updated .

Priya sent you a message Online now

Talk to a Developer Now

Share your name and email to reply.

Reply