Free XML Validator
Paste or upload XML and instantly see whether it is well-formed, with exact line and column numbers for every error.
How to use XML Validator
Paste or upload XML and instantly see whether it is well-formed, with exact line and column numbers for every error.
Frequently asked questions
What does 'well-formed' mean?
A well-formed XML document follows all XML syntax rules: every opening tag has a closing tag, attributes are quoted, and the document has a single root element.
Does it validate against an XSD schema?
This tool checks well-formedness. Schema (XSD) validation requires uploading your schema — use the advanced mode for that.
Is my XML sent to a server?
No. Validation uses the browser's native DOMParser API. Nothing leaves your device.
What errors are reported?
Unclosed tags, mismatched tags, illegal characters, duplicate attributes, missing root element, and encoding errors.
Can I validate a URL instead of pasting XML?
Yes. Enter a public URL and the tool fetches and validates the XML from that URL.
Related tools
XML Formatter & Beautifier
Paste or upload XML and get perfectly indented, readable output in seconds. Supports 2-space, 4-space, and tab indentation.
XML to JSON Converter
Paste or upload any XML document and get clean, properly formatted JSON output in one click.
JSON Formatter
Format, validate, and minify JSON instantly in your browser.