Code · Made a little simpler

HTML Validator

Check HTML documents and fragments for parsing issues. Choose a fragment context, inspect line and column numbers, and download the JSON report.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

HTML Validator: how to use it

  1. Paste HTML source or open a UTF-8 file. Choose HTML document for a complete page or HTML fragment for a snippet.
  2. For a fragment, select the surrounding element. Use table for row markup or tr when the snippet contains cells.
  3. Select Validate HTML. Fix the source lines in the report, rerun the check, and export the JSON if you need a record.

Limits and notes

Reads up to 250,000 UTF-16 code units. Reports parser diagnostics and selected ignored document wrappers and table elements. Full HTML conformance, accessibility, CSS, JavaScript and remote link availability require separate checks. Up to 100 recorded findings appear in the report.

How your privacy works →

HTML Validator: common questions

Why did the same source produce different results as a document and a fragment?

A complete document needs a doctype. Fragment parsing uses a surrounding element, which affects whether a tag such as tr is kept.

Will the validator flag every missing end tag?

Some HTML end tags, such as li before another li, can be omitted in defined contexts. The parser also repairs some invalid nesting without yielding a diagnostic.

Can I validate a live URL?

Open or paste the actual HTML source. The validator works locally with the supplied markup and does not request links or run scripts.

Guides