AI output accessibility checker
AI models are good at producing markup that renders and bad at producing markup
that works for everyone. The classic tells: a <div onClick> pretending to be a
button, an <img> with no alt, an <input> with no label, and color choices
that look fine to the author but fail contrast for low-vision users. This checker
parses AI-generated HTML and copy and flags those issues against WCAG 2.1 AA
expectations, with the exact element and a fix for each.
How it works
You paste the HTML or component markup. The tool runs a set of detectors:
images without alt, clickable div/span without a button role or tabindex,
form controls without an associated label, generic markup where a semantic
element belongs, missing language attribute, and links with non-descriptive text
(“click here”). If you also supply a foreground and background hex color, it
computes the WCAG contrast ratio and checks it against the 4.5:1 (normal) and
3:1 (large) thresholds. Each finding cites the relevant criterion. Everything
runs locally in the browser.
Tips and limits
- Automated checks are a floor, not a ceiling. They find roughly a third of real issues. Always follow with keyboard-only navigation and a screen reader.
- Fix semantics first. Replacing
<div onClick>with a real<button>fixes focus, keyboard, and role in one move — far better than bolting on ARIA. - Alt text should describe purpose. Decorative images get
alt=""; meaningful ones get a concise description of what they convey, not the filename. - Re-check after edits. Accessibility regressions are easy to reintroduce on the next AI-assisted change, so make this part of your review loop.