XML Formatter
Parse XML documents and format their node hierarchy.
Preparing your tool…
How do I use this?
- Paste an XML document and click Format.
- Review the result, then copy or download it as needed.
About this tool
Parse XML documents and format their node hierarchy.
Paste an XML document and click Format.
DOCTYPE is rejected. Mixed text content retains whitespace to preserve meaning.
Common questions
What should I know about xml formatter?
DOCTYPE is rejected. Mixed text content retains whitespace to preserve meaning.
Is my data uploaded?
No. Input and files stay in your browser. Save any results before leaving the page.
Tool content and files are processed in this browser. Save results before leaving; comment text is submitted to the server for review.
Tool discussion
0 user comments · 4 official tips
Whitespace in mixed-content nodes may be meaningful. After formatting, check text nodes and spaces around nested inline elements.
XML containing DOCTYPE is currently unsupported. Check what the declaration is used for, then use an appropriate XML tool for that document.
Use entities for literal less-than signs and ampersands, or CDATA where appropriate, so text is not parsed as markup.
Check case and closing tags when XML reports a mismatch. XML is case-sensitive, and opening and closing tag names must match.