HTML Validator
Find unclosed, mismatched and stray HTML tags, duplicate ids and attributes, and images without alt text.
Runs in your browserHTML → Report
Loading tool…
Example
<div id="a"> <p>Hello <b>world</p> </div> <span id="a"></span>
✗ 2 errors (4 elements checked) Line 2: Error: <b> (line 2) is not closed before </p> on line 2. Line 4: Error: Duplicate id "a" (first used on line 1).
How to use the HTML Validator
- Paste or type your HTML into the input area, or open a file from your device.
- Adjust the options above the editor if the tool offers any.
- Review the Report result, then copy it or download it as a file.
Privacy and limitations
- Your data is processed on your device and is not uploaded to any server.
- This is a structural checker, not the W3C validator: it does not check which elements and attributes are allowed where.
- Optional end tags (</p>, </li>, </td>…) are understood and not reported as missing.
Related converters
HTML BeautifierBeautify HTML with Prettier: consistent indentation plus formatting of embedded CSS and JavaScript.XML ValidatorCheck that XML is well-formed: matching tags, quoted attributes and a single root, with line numbers.JavaScript Syntax ValidatorCheck JavaScript for syntax errors using the latest ECMAScript grammar, with line, column and a code frame.CSV ValidatorCheck CSV files for inconsistent column counts, broken quoting and empty or duplicate headers.Email Address ValidatorValidate email address syntax one per line and see exactly why each invalid address fails.YAML ValidatorValidate YAML syntax and indentation, with exact error positions and support for multi-document files.URL ValidatorValidate URLs one per line: scheme, host, top-level domain and port, with a breakdown of each valid URL.Credit Card Number ValidatorCheck card numbers with the Luhn algorithm and detect the brand. Runs only in your browser; nothing is stored or sent.