PUBLIC.INTERNET

Accessible Name Checker

Every control has an accessible name, the string a screen reader announces, such as "Delete item, button." Browsers compute it with the W3C accname algorithm, and the order surprises people: an aria-label beats visible text, and a hidden span can still name a button. Paste a snippet, pick the Element to name, and the tool shows the name and a precedence trace that marks the winning step and the skipped ones. Your HTML is rendered in a hidden frame, so your CSS decides what is hidden and what ::before adds.

Your HTML is rendered in a hidden frame with scripts and network blocked, so your CSS decides what is hidden, what is a block, and what ::before and ::after add. The accname 1.2 spec and the web-platform-tests are the reference, checked against Chromium; browsers and screen readers can differ.

Accessible name

 

Precedence trace

    Warnings

      How to Check an Accessible Name

      1. Load an example or paste your own - Pick one from Load an example, or paste markup into Paste HTML. Include any <label> or element that an aria-labelledby points to.
      2. Pick the element - Choose the node to name in Element to name. It lists every element in the snippet and starts on the first likely candidate.
      3. Read the name - The Accessible name panel shows the computed string, and the line under it says which step decided it.
      4. Follow the precedence trace - The winning step is marked, earlier steps show why they were skipped, and later steps are marked not reached.
      5. Check the warnings - The Warnings list flags a name set on a role that forbids one, an interactive element with no name, and visible text missing from the name.
      6. Copy the name - Click Copy to put the computed string on the clipboard. An element with no name reports that there is nothing to copy.

      Why This Tool?

      The accname spec is normative, but the pages that rank for it are the spec, MDN and code libraries. DevTools shows only the final name, and the US Social Security Administration's ANDI bookmarklet inspects a live page. Neither lets you paste a snippet and watch the precedence resolve. This tool follows accname 1.2 steps 2A to 2I and the HTML-AAM rules for labels, alt, <legend> and <caption>. It passes all 450 cases in the eleven web-platform-tests accname name files that need no script (the tentative files are left out), and Chromium's own computed name is the second reference.

      Two rules cause most surprises. First, aria-label and aria-labelledby override visible text, so a button that shows "Save" but carries aria-label="Submit form" is announced as "Submit form". Speech-input users who say "click Save" then fail, which is why WCAG 2.5.3 asks the visible text to appear in the name. Second, hidden content is skipped unless an aria-labelledby points at it. Prefer a real <label> or text content, and treat a name on a plain <div> as a warning, since ARIA 1.2 forbids it.