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
- Paste XML or open a file.
- Read the result or the error with its line and column.
- 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.
Related tools
JSON Validator
Validate JSON syntax and pinpoint errors by line and column. Shows structure statistics for valid documents.
YAML Validator
Validate YAML syntax and see the parsed result as JSON.
Regex Tester
Test JavaScript regular expressions with live match highlighting, capture groups and flags.
JSON Formatter
Format and beautify JSON with configurable indentation and optional key sorting. Errors are reported with exact line and column.
HTML Formatter
Beautify messy or minified HTML into clean, indented markup using Prettier, right in your browser.
CSS Formatter
Format CSS, SCSS and Less stylesheets into readable, consistently indented code.