XML Formatter & Validator
Beautify, minify or validate XML with understandable parsing feedback.
What is this tool?
The browser's XML parser checks well-formed syntax, matching tags and attribute quoting. Valid markup can then be indented or compacted.
How to use it
- Paste XML into the input.
- Choose Format, Minify or Validate.
- Review a parser message if the document is malformed.
- Copy valid output.
Example
<root><item>Value</item></root> is expanded into an indented element tree.
FAQ
Does this validate against an XSD?
No. It performs basic well-formed XML validation only.
Are scripts executed?
No. The XML is never inserted into the live HTML document.
Will formatting alter mixed text?
Whitespace-sensitive mixed-content XML deserves manual review after formatting.