XML Formatter & Validator
Paste your XML to instantly format (beautify), validate well-formedness, or minify it. Great for SOAP APIs, config files, and debugging messy XML.
How to use
- Paste your XML into the input box.
- Click Format to beautify with indentation.
- Click Minify to remove unnecessary whitespace.
- If there is a syntax error, fix the highlighted issue and try again.
- Copy the output and use it in your workflow.
FAQ
Does this validate against an XSD schema?
It validates XML well-formedness (syntax). XSD/schema validation is not included in this tool.
Is my XML uploaded to a server?
No. Formatting and validation run entirely in your browser.
Why do I see an XML error even though it works elsewhere?
Different parsers can be more or less strict. This tool uses the browser XML parser, so ensure your XML is well-formed (properly closed tags, escaped characters, etc.).