Formats and indents XML documents for readability, and validates well-formedness — reporting errors with line and column numbers. Handles XML declarations, namespaces, CDATA sections, processing instructions, and character entities. Also has a minify mode for production use.
Paste your XML to format it or check it for errors — invalid XML shows exactly where the problem is. To convert between XML and JSON, use the XML to JSON converter.
Format XML
Input
<root><item>A</item><item>B</item></root>
Output
<root> <item>A</item> <item>B</item> </root>
Convert XML documents to a JSON representation.
Convert a JSON object or array to an XML document.
Beautify, minify, and validate JSON with syntax highlighting.
Validate YAML syntax and format errors with line numbers.
Compare two blocks of text and highlight the differences.
Test regular expressions against sample text with live match highlighting.