XML Formatter and Validator
Paste messy XML and get it back clean: this tool checks whether your XML is well-formed and shows the parser error if it is not, or pretty-prints valid XML with neat indentation. A minify button gives you a compact one-line version.
XML is valid.
How to use
- Paste your XML.
- Click Format and validate — valid XML is beautified, invalid XML shows the parser error.
- Or click Minify to remove the indentation again.
Note: Validation uses the browser DOMParser, which checks well-formedness (matching tags, quoting and nesting). It does not validate against a DTD or schema.