XML Validator
Check if your XML is well-formed and valid
Validate XML
Check XML syntax
How to Use Validate
- 1 Paste your XML into the input area
- 2 Validation runs automatically
- 3 View any errors with line numbers
- 4 Fix issues using the suggested corrections
What does "well-formed XML" mean?
Well-formed XML follows basic syntax rules: proper tag nesting, closed tags, quoted attributes, and a single root element. This validator checks all these requirements.
Why is my XML showing as invalid?
Common issues include: unclosed tags, mismatched tag names, unescaped special characters (&, <, >), or missing root element. The validator shows exact error locations.
Can I validate against an XSD schema?
Currently this tool validates well-formedness (syntax). For schema validation against XSD, you would need a specialized schema validator.
How do I fix "unexpected character" errors?
Special characters like &, <, > must be escaped as &, <, > when used in text content. The validator will show you which character caused the error.
All processing happens locally in your browser. Your XML never leaves your device.