Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

HTML accessibility inspector

Paste HTML and find accessibility problems: missing alt text, unlabelled fields, empty links, heading jumps, low contrast and more. Your code is never run.

How to use

  1. Paste HTML into the box, or open an .html file. In most browsers you can copy a page's HTML with "View page source".
  2. Press Check it. Each problem shows how serious it is, the WCAG success criterion and the piece of code it is about.
  3. Fix the errors first, then the warnings. Notes are worth a look but may be fine.
  4. Look at the heading outline: it should read like a table of contents with no jumps.
  5. Save the report as a text file to share or keep.

Keyboard and touch

TabMove from the box to the buttons
Enter on a buttonCheck, load the example, clear or save

Tips

  • Your HTML is parsed into a sealed copy: scripts are never run, and images and frames are never loaded. Nothing is sent anywhere.
  • Decorative images should have an empty alt (alt=""), not a missing one. Screen readers then skip them instead of reading the file name.
  • A placeholder is not a label. It disappears when someone starts typing, and many screen readers ignore it.
  • Use real buttons and links. A clickable <div> or <span> cannot be reached with the Tab key.
  • The contrast check only sees colours written in style attributes. For stylesheet colours, use the Colour palette & contrast checker.
  • Automatic checks find about a third of real problems. Always try the page with only a keyboard, at 200% zoom and with a screen reader.

About this inspector

The checks follow the Web Content Accessibility Guidelines (WCAG) 2.2 from the W3C: text alternatives (1.1.1), info and relationships (1.3.1), audio control (1.4.2), contrast (1.4.3), resize text (1.4.4), keyboard (2.1.1), pause, stop, hide (2.2.2), page titled (2.4.2), focus order (2.4.3), link purpose (2.4.4), language of page (3.1.1) and name, role, value (4.1.2). Element names are worked out with a simplified version of the W3C accessible name rules.

Contrast uses the WCAG relative luminance formula: 4.5:1 for normal text and 3:1 for large text (24 px, or 18.66 px bold). Role names come from WAI-ARIA 1.2. The HTML is read with the browser's own DOMParser, which builds a document without running scripts. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product