XML is easier to read when every element sits on its own line, indented by depth. This tool pretty-prints XML with 2 spaces, 4 spaces or tabs, and can minify it back by removing the whitespace between tags.
It also checks that every tag is closed in the right order and reports the first mismatch. It does not validate against a schema (XSD) or DTD. Everything runs in your browser, so nothing you paste is uploaded.
No. It checks that the XML is well-formed: one root element, tags opened and closed in the right order, and no unterminated tags, comments or attribute values. It does not validate against an XSD or DTD.
Only whitespace between tags changes. Formatting collapses runs of whitespace inside text, so mixed content such as <p>a <b>b</b></p> can be re-flowed. Comments, CDATA sections and the XML declaration are preserved.
Yes. Minify removes indentation and line breaks between tags and strips comments, leaving the text content of each element untouched. A single space between inline elements is kept.