XML formatter

Format, minify and validate XML. Errors show the first problem the parser finds. Everything runs in your browser.

Runs in your browser

Format XML

What the formatter does

Example

<root><item id="1">Alpha</item><item id="2"/></root> <root> <item id="1">Alpha</item> <item id="2"/> </root>

Questions

No. Formatting, minifying and validation all run in your browser.
Yes. Comments and CDATA sections are kept as they are in the source.
No. Validation checks only that the XML is well-formed. It does not check against an XSD or DTD.