XML validator and formatter
Validate, repair, format and compare XML online, test XPath expressions, validate against an XSD schema and convert XML to JSON.
Features
- Validate XML well-formedness and namespaces, with every error reported by line and column
- Auto-repair broken XML: unclosed or mismatched tags, unescaped characters, unquoted attributes and more
- Beautify XML with 2-space, 4-space or tab indentation, or minify it to a single line
- Validate XML against an XSD schema
- Test XPath 1.0 expressions and see matching nodes highlighted
- Compare two XML documents side by side, with added, removed and changed elements, attributes and text highlighted
- Convert XML to JSON and JSON to XML
- Upload an XML file or paste XML directly, then copy or download the result
Everything runs entirely in your browser — nothing you paste is sent to a server.