XML Validator
Check that XML is well-formed: matching tags, quoted attributes and a single root, with line numbers.
Runs in your browserXML → Report
Loading tool…
Example
<books><book id="1">Dune</book></books>
✓ Well-formed XML Root element: <books> Elements: 2 Attributes: 1 Declaration: no
How to use the XML Validator
- Paste or type your XML into the input area, or open a file from your device.
- Adjust the options above the editor if the tool offers any.
- Review the Report result, then copy it or download it as a file.
Privacy and limitations
- Your data is processed on your device and is not uploaded to any server.
- Checks well-formedness only; validation against a DTD or XSD schema is not performed.
Related converters
XML FormatterBeautify and indent XML while keeping comments, CDATA sections, attributes and element order exactly as written.HTML ValidatorFind unclosed, mismatched and stray HTML tags, duplicate ids and attributes, and images without alt text.YAML ValidatorValidate YAML syntax and indentation, with exact error positions and support for multi-document files.JSON ValidatorCheck whether JSON is valid, pinpoint the line and column of syntax errors and flag duplicate keys.CSV ValidatorCheck CSV files for inconsistent column counts, broken quoting and empty or duplicate headers.JavaScript Syntax ValidatorCheck JavaScript for syntax errors using the latest ECMAScript grammar, with line, column and a code frame.Email Address ValidatorValidate email address syntax one per line and see exactly why each invalid address fails.URL ValidatorValidate URLs one per line: scheme, host, top-level domain and port, with a breakdown of each valid URL.