XML Formatter and Validator
Format, compact and validate XML syntax with one tool. Inspect readable output without executing the document.
Hover over or focus a field for help. Press Escape to close.
How it works
Paste your content or load the example. Choose the available options, run the tool, then copy or download the result.
A practical example
XML
<root><name>Anna</name></root>
Frequently asked questions
Is my input sent to a server?
No. Your content is processed in this browser. It is never sent to the server or saved.
What should I know about XML Formatter and Validator?
Validation checks well-formed syntax, not XSD schemas. DTDs and custom entities are disabled. Formatting may normalize whitespace and mixed content.