XML formatter and validator
Runs only in your browser. Nothing is sent to our servers.
Paste XML to format it, minify it or check that it is well-formed. Errors show the line and column.
Result
About this tool
The validator checks that the XML is well-formed: every tag is closed, attributes are quoted and there is one root element. It does not check the document against an XSD.
Elements that only hold text stay on one line. Comments, CDATA sections and processing instructions are kept.
Shortcut: Ctrl + Enter formats the input.