Minified → formatted
<catalog><book id="1"><title>Clean Code</title><author>Martin</author></book></catalog>
<catalog>
<book id="1">
<title>Clean Code</title>
<author>Martin</author>
</book>
</catalog>Format, indent and validate XML documents in your browser.
The result will appear here.
Was this tool useful?
XML that comes from a web service or configuration file is often minified for transport efficiency. Formatting adds the indentation that makes the tag hierarchy readable; minifying removes it again for production use.
The formatter parses the XML first, so it will report an error if the document is not well-formed. This doubles as a quick validity check.
<catalog><book id="1"><title>Clean Code</title><author>Martin</author></book></catalog>
<catalog>
<book id="1">
<title>Clean Code</title>
<author>Martin</author>
</book>
</catalog>Pretty-print or minify JSON, with the exact position of any syntax error.
Convert XML documents to readable JSON without touching a server.
Encode special characters as HTML entities and decode them back.