Skip to content
Devtoolry

XML Validator

Check that XML is well-formed and find the exact location of syntax errors.

About the XML Validator

The XML Validator checks that a document is well-formed (properly nested and closed tags, quoted attributes, a single root) and shows the exact location of the first syntax error.

Everything runs in your browser, so your input is never uploaded to a server.

How to use the XML Validator

  1. Paste XML or open a file.
  2. Read the result or the error with its line and column.
  3. Fix the problem and validate again.

Frequently asked questions

What is the difference between well-formed and valid XML?

Well-formed means the syntax is correct. Valid means it also matches a schema (DTD or XSD). This tool checks well-formedness.

Does it check namespaces?

Namespace prefixes must be declared to be well-formed, so undeclared prefixes are reported.