HTML Validation & Error Locator
Validate HTML and find every error by line and column: stray and misnested tags, unclosed elements, duplicate IDs and head tags in the body. Free.
Still loading. If the tool doesn’t appear, reload this page.
About this tool
HTML Validation & Error Locator
Validate a page's HTML and jump to every error by line and column: syntax errors, stray and misnested tags, unclosed elements, nested links, text inside tables, head tags in the body, duplicate IDs, obsolete markup and missing alt text.
An HTML validation and error locator finds the markup mistakes that browsers quietly repair, and shows exactly where they are. Enter up to ten URLs or paste HTML. The tool runs the HTML specification's own tokenizer (the same rules every browser follows) to catch syntax errors such as a missing doctype, duplicate attributes, attributes without spaces between them, broken comments, unescaped ampersands and tags that never end. A second pass follows the open elements like a browser's parser and reports structural problems: end tags with no matching start tag (a stray </p> even creates an empty paragraph), misnested tags such as <b><i></b></i>, elements that are never closed and swallow the rest of the page, a link inside a link, a heading inside a heading, text sitting directly inside a table (browsers move it above the table), list items outside a list, a second <body> tag, canonical, robots and title tags placed in the body where Google ignores them, duplicate and invalid IDs, obsolete elements like <center> and <font>, images without alt text and iframes without a title. Every issue has its line, column and a source excerpt, issues are grouped by type with an explanation and fix, and the full list downloads as CSV.
How to use HTML Validation & Error Locator
- 1
Enter one URL per template, or paste a page's HTML or a snippet.
- 2
Press Validate HTML.
- 3
Start with errors: stray, misnested and unclosed tags change the page structure.
- 4
Open each issue type to see every line and column with the source around it.
- 5
Fix the template, re-validate and download the CSV for your developers.
Why use HTML Validation & Error Locator
Exact locations
Line, column and a source excerpt for every issue.
Spec-accurate syntax
Uses the HTML standard's tokenizer, so errors match how browsers read your page.
Finds silent repairs
Stray, misnested and unclosed tags that browsers fix in unpredictable ways.
SEO and accessibility
Head tags in the body, duplicate IDs, missing alt text and iframe titles.
Does valid HTML matter for SEO?
Google doesn't rank pages higher for passing a validator, and most small errors are harmless. Some errors do matter: a tag that closes the head early hides your canonical and hreflang, an unclosed element can wrap your footer links inside an article, misnested markup can duplicate content, and head tags placed in the body are ignored. Those are the issues this tool puts first.
How browsers repair broken HTML
The HTML standard defines exactly how to handle mistakes: a block element ends an open paragraph, a second <a> closes the first, text inside a table is moved before it, and misnested formatting tags are rebuilt. Browsers and Google all follow these rules, so the page still renders, but the structure they build may not be what you wrote. Fixing the source removes the guesswork.
Fixing errors efficiently
Most errors come from a few templates or components. Validate one page per template, fix the first structural error (one unclosed tag often causes many follow-on errors), and re-run. Work through syntax warnings and obsolete markup afterwards.
Common use cases
- A developer finds the unclosed <div> that pushes the footer inside the main content.
- An SEO discovers a canonical tag printed in the body by a plugin, where Google ignores it.
- A content team cleans up obsolete <font> and <center> tags left by an old editor.
- An agency checks a new theme for duplicate IDs and images without alt text before launch.
Frequently asked questions
Is this the same as the W3C validator?
It covers the parse errors and the structural problems that affect how browsers and search engines read a page, using the HTML standard's tokenizer. It doesn't check CSS, ARIA rules or every content-model rule, so a W3C check can still list extra items.
Link to answerWhy do the line numbers differ from my source files?
They refer to the HTML the server sends (View Source). Templates and components are combined before that, so search for the excerpt shown with each issue.
Link to answerDoes it check pages built with JavaScript?
It validates the HTML as served. For client-rendered pages, copy the rendered HTML from your browser's developer tools and paste it.
Link to answerHow many issues are reported?
Up to 3,000 per page, grouped by type with the first 50 locations shown for each type; the CSV contains all of them.
Link to answerIs anything stored?
No. Pages are fetched through our secure checker and validated in your browser.
Link to answer