Indent
Empty tags
Runs entirely in your browser, nothing is uploaded.
How it works
XML Formatter and Validator: Pretty Print or Minify
Paste XML to indent it from the parsed document tree, or minify it back down. Comments, CDATA and the XML declaration survive, mixed content is left alone, and errors quote the parser’s own message.
What this does
- Re-indents the parsed document tree, so this is a real pretty-print rather than a regex patch
- Mixed content is reproduced verbatim, re-indenting an element that holds both text and child tags would change what it says
- Comments, CDATA sections, processing instructions, the DOCTYPE and the XML declaration all come through
FAQ
Keep going