Free online tool
XML Validator
Check whether XML is well-formed.
Updates automatically in your browser.
Waiting for input
Paste JSON, XML or YAML to validate.
How to use this tool
- 1. Paste your documentAdd the JSON, XML or YAML you want to validate.
- 2. Check the statusValid documents appear in green; errors show line and column details.
- 3. Fix and recheckUse Go to error, edit the source and review the updated status.
Frequently asked questions
Does this validate against an XSD schema?
No. This version checks whether the XML is well-formed.
What input does XML Validator expect?
Use the format shown by the workspace fields and examples. Check whether XML is well-formed.
What happens when XML Validator receives invalid input?
The tool displays validation feedback or an error instead of silently returning an unreliable result.
Tool guide
About XML Validator
How XML Validator works
Checks whether XML text is syntactically parseable and reports parser errors.
Try this
Test a document with an unclosed element and inspect the error feedback.
Before using the result
A well-formed XML document is not necessarily valid against a schema or DTD.
Continue working