XML Formatter and Validator
Validate XML and indent nested elements while preserving mixed text and CDATA.
Result
Local processingYour result will appear here.
How to use it
Paste XML or open a UTF-8 XML file. Choose indentation and format it. Mixed-content sections and xml:space="preserve" sections keep their content. Documents with a DOCTYPE are unsupported.
Worked example
Format <feed><item id="1"/><item id="2"/></feed> to put each item on its own indented line.