Alt Text Checker
Scan pasted HTML for images missing alt attributes
Updated
What is the Alt Text Checker?
Scan any pasted HTML for images that are missing alt attributes, have empty or decorative alt text, or use suspicious descriptions like filenames and generic placeholders — all in one pass, right in your browser.
What is alt text?
Alt text (alternative text) is a short written description added to an <img> tag's alt attribute. It serves two critical purposes:
- Accessibility — Screen readers read alt text aloud to visually impaired users, giving them context for images they cannot see. Without it, images are completely invisible to assistive technology.
- SEO — Search engines like Google use alt text to understand and index image content, which improves your image search rankings and strengthens on-page relevance signals.
Every image on your page should have an alt attribute. Informative images need a concise, meaningful description; purely decorative images should use an empty alt="" so screen readers skip them gracefully.
Why use this Alt Text Checker?
The Alt Text Checker is a free, privacy-first tool that audits every <img> tag in your HTML against WCAG 2.1 Success Criterion 1.1.1 (Non-text Content). Instead of manually inspecting your source code image by image, paste your HTML and instantly get:
- A summary dashboard with your total image count, pass rate, and breakdown of issues.
- Line-number-precise findings so you can jump straight to each problem tag in your editor.
- Quality analysis that goes beyond missing/empty — it flags alt text that repeats filenames, uses generic words like "image" or "photo," contains file extensions, or is too long or too short.
- A filterable findings list to drill into missing, suspicious, decorative, or good images.
- An exportable Markdown audit report you can copy or download for your records or share with a client.
Who is it for?
- Web developers running a pre-deploy accessibility check on markup before it ships.
- SEO specialists auditing image coverage as part of an on-page SEO review.
- Content editors and bloggers verifying that images in posts have proper descriptions.
- Accessibility consultants generating quick audit reports for client websites.
- QA testers validating image markup against WCAG compliance requirements.
100% client-side and private
Everything runs in your browser. Your HTML is never uploaded to a server, stored, or tracked — making it safe to audit sensitive pages, internal tools, or client work behind logins. No account, no API key, no data leaves your device.
How it works
The Alt Text Checker scans your HTML, finds every <img> tag, and audits each one's alt attribute against WCAG 2.1 accessibility best practices and common SEO pitfalls. Here is exactly what happens under the hood.
Step 1 — Paste or upload your HTML
Start by pasting raw HTML into the code editor, or drop a .html file onto the dropzone to load its contents automatically. The tool accepts any HTML fragment or full document — you do not need a complete page.
Step 2 — Scanning for image tags
The checker uses a regex-based tag scanner to locate every <img> element in your markup, including self-closing tags (<img ... />). For each image it extracts:
- The
srcattribute (image source URL) - The
altattribute value (decoded for HTML entities) - The line number where the tag begins, so you can find it instantly in your editor
- Whether
aria-labelorrole="img"are present as alternative cues
Step 3 — Categorizing each image
Every image is classified into one of four statuses:
| Status | Meaning |
|---|---|
| Missing alt | The alt attribute is entirely absent — fails WCAG 1.1.1. |
| Decorative (empty) | alt="" is present — correct for purely decorative images; screen readers skip it. |
| Suspicious | Alt text exists but looks low-quality (filename, generic word, too long/short, file extension). |
| Good | Alt text is present and passes all quality checks. |
Step 4 — Quality analysis
For images with existing alt text, the checker runs a series of quality heuristics that catch the most common real-world mistakes:
- Filename matches — alt text that simply repeats the image filename (e.g.
IMG_4023.jpg). - Generic placeholder words — words like "image," "photo," "picture," "icon," or "spacer" that add no descriptive value.
- Redundant phrasing — patterns like "image of" or "picture of" that screen readers already announce.
- File extensions — alt text containing
.jpg,.png, etc. - Length issues — alt text shorter than 4 characters or longer than 125 characters (WCAG recommends concise alternatives).
- Random identifiers — strings that look like hashes or camera-generated codes.
Step 5 — Review the results
The summary dashboard shows your total images, overall pass rate, and counts for each category. Use the filter controls to view only the images that need attention — for example, just the missing or suspicious ones. Each finding card displays the line number, source URL, current alt text, a plain-English list of issues, and the raw <img> tag for easy copying.
Step 6 — Export the report
Click Copy report or Download report to export a complete Markdown audit file containing your summary statistics and every finding with its issues and raw tag. This is ideal for sharing with your team, attaching to a ticket, or including in a client deliverable.
What the checker does not do
The tool analyzes the HTML you provide — it does not crawl live URLs, render JavaScript, or use AI to generate alt text suggestions. This keeps it fast, private, and deterministic. For generating new alt text, pair it with your content workflow or an AI image-description tool, then re-scan to validate.
Examples
Product image with no alt attribute
Detect an img tag that is missing the alt attribute entirely, which fails WCAG 1.1.1 and hurts image SEO.
Decorative image with empty alt
Confirm that a purely decorative spacer image correctly uses an empty alt attribute so screen readers skip it.
Suspicious filename-based alt text
Flag alt text that merely repeats the filename, which provides no meaningful description for users or search engines.
Full page audit with mixed results
Paste an entire HTML document to get a summary dashboard showing pass rate, missing, suspicious, and decorative counts across all images at once.
Frequently asked questions
What is alt text and why does it matter?
What is alt text and why does it matter?
Alt text (alternative text) is a short description placed in an image's alt attribute. It matters for two reasons: it lets screen readers describe images to visually impaired users who cannot see them, and it helps search engines understand and index your images for image search results. Without alt text, an image is invisible to both assistive technology and search crawlers.
What does the Alt Text Checker scan for?
What does the Alt Text Checker scan for?
The tool scans every <img> tag in your HTML and checks for four things: missing alt attributes, empty (decorative) alt text, suspicious alt text that looks like filenames or generic placeholders, and alt text that passes all quality checks. It also flags images missing a src attribute and reports the line number for each finding.
Does empty alt text count as an error?
Does empty alt text count as an error?
No. An empty alt="" attribute is the correct way to mark an image as purely decorative. It tells screen readers to skip the image entirely, which is the desired behavior for spacer GIFs, decorative dividers, and images whose meaning is already conveyed by adjacent text. The checker categorizes these as "Decorative" rather than as errors.
What makes alt text "suspicious"?
What makes alt text "suspicious"?
Alt text is flagged as suspicious when it exists but appears low-quality. This includes text that simply repeats the filename, uses generic words like "image" or "photo," contains file extensions such as .jpg or .png, starts with camera-generated prefixes like "IMG*" or "DSC*", looks like a random hash, or is either too short (under 4 characters) or too long (over 125 characters). These are common signs that the alt text was auto-generated or copied without thought.
Is this tool free, and does it send my HTML to a server?
Is this tool free, and does it send my HTML to a server?
The Alt Text Checker is completely free and runs entirely in your browser. Your HTML is never uploaded, stored, or transmitted to any server. This makes it safe to use with sensitive pages, internal tools, or client work behind logins. No account or API key is required.
How long should alt text be?
How long should alt text be?
Aim for a concise description, typically under 125 characters. The goal is to convey the image's purpose and content in a way that serves someone who cannot see it. If an image contains a lot of information, such as a chart or diagram, consider describing the key takeaway in the alt text and providing a longer description elsewhere on the page. The checker flags alt text that is too long or too short.
Does alt text affect SEO?
Does alt text affect SEO?
Yes. Search engines like Google use alt text to understand what an image depicts, which helps your images appear in image search results and strengthens the overall relevance of your page. Well-written, descriptive alt text that naturally includes relevant keywords improves both accessibility and search visibility. Avoid keyword stuffing, which harms both users and rankings.
Which WCAG success criterion covers alt text?
Which WCAG success criterion covers alt text?
Alt text is covered by WCAG 2.1 Success Criterion 1.1.1 Non-text Content (Level A). It requires that all non-text content has a text alternative that serves the equivalent purpose, unless the content is decorative, in which case an empty alt="" is appropriate. Meeting this criterion is a baseline requirement for WCAG conformance and legal accessibility compliance in many jurisdictions.
Can I check an entire website at once?
Can I check an entire website at once?
This tool scans the HTML you paste or upload, so it checks one page or HTML fragment at a time. To audit a full website, paste the HTML of each page individually, or save each page as an .html file and drop them in one at a time. For large multi-page audits, you can export a Markdown report per page and combine them.
Should I use the same alt text for identical images repeated on a page?
Should I use the same alt text for identical images repeated on a page?
It depends on context. If the same image appears multiple times and serves the same purpose, repeating the alt text is acceptable but can be redundant for screen reader users. If an image is repeated purely for layout or branding and the meaning was already conveyed the first time, subsequent copies can use an empty alt="". The checker flags duplicates so you can decide based on the surrounding content.
Does the tool check aria-label or role attributes?
Does the tool check aria-label or role attributes?
Yes. The scanner detects whether an aria-label or role="img" attribute is present on each image and includes this information in the findings. However, even when an aria-label is present, WCAG 1.1.1 still requires a proper alt attribute on every <img> tag, so the checker will still flag a missing alt while noting the alternative attribute.
Can I download or share the audit results?
Can I download or share the audit results?
Yes. After scanning, use the Copy report or Download report buttons to export a complete Markdown audit file. The report includes a summary of all statistics plus a detailed breakdown of every image with its line number, status, source, alt text, and any issues found. This is ideal for sharing with your team, attaching to a pull request, or delivering to a client.
Related tools
More utilities you might find handy.
Canonical Tag Generator
Generate accurate canonical link tags for any URL to optimize SEO and prevent duplicate content issues.
Free UTM Link Builder - Create Campaign URLs Instantly
Build UTM-tagged URLs with validation, linting, and parse existing links to edit parameters. No sign-up required.
Header Tag Analyzer
Check H1–H6 heading hierarchy from pasted HTML to find SEO and accessibility issues instantly.