XML Validator
Check whether XML is well-formed and find errors.
XML input
Free online XML validator. Check whether your XML is well-formed and get the exact line and message when it isn't. Fast, private and runs entirely in your browser.
How to use the XML Validator
- 01Paste your XML into the box.
- 02Valid or invalid is shown instantly as you type.
- 03If it's not well-formed, the line number and error message are displayed.
Frequently asked questions
Does this check my XML against a schema (XSD/DTD)?
No — it checks well-formedness: correct nesting, matching tags and valid syntax. It does not validate against an XSD or DTD schema.
Is my XML sent anywhere?
No. Validation runs locally in your browser, so your document stays on your device.