Home › Validators › XML Validator

XML Validator

Check an XML document for well-formedness — matched tags, one root element, nothing outside it — and get a plain explanation of the first problem found.

XML Validator

How to use the XML Validator

  1. Paste your XML into the input box.
  2. Press Validate.
  3. A green message means the document is well-formed.
  4. If there is a problem, the message names the tags involved so you can find the spot quickly.

About this tool

Well-formedness is the minimum bar every XML parser demands: every opening tag closed in the right order, exactly one root element, and no stray text outside it. This checker walks the document with a tag stack and reports mismatched or unclosed tags in plain words. It does not validate against a DTD or schema — that is a separate, stricter kind of checking.