XML Formatter & Viewer
Format, beautify and validate your XML
Input XML
Formatted results will appear here. Your last 3 runs are kept.
Format, beautify and validate your XML
Formatted results will appear here. Your last 3 runs are kept.
The input is parsed with the browser's XML parser first, so unclosed tags, mismatched names or a second root element are reported as errors. Valid XML gets line breaks and two-space indentation; only whitespace between tags changes. The last three results stay on the page for diffing.
<note><to>Ann</to><from>Bob</from><body>Hi!</body></note><note>
<to>Ann</to>
<from>Bob</from>
<body>Hi!</body>
</note><a><b></a></b>Typical errors are a missing closing tag, tags that close in the wrong order, more than one root element, unquoted attribute values and unescaped & or < characters in text.
No. Only whitespace between tags is changed; element names, attributes and text stay the same.
No. Parsing and formatting happen locally in your browser.