Tested tool guide
Tested browser tools
Checked August 16, 2026
What XML Formatter & Validator does, with a checked example
Paste XML into the input pane and the tool reparses it, then reprints it with consistent indentation, line breaks between elements, and syntax highlighting for tags, attributes, and text nodes. Any well-formedness problem - a missing closing tag, an unescaped ampersand, two root elements - is flagged with the line and column where the parser gave up, rather than being silently swallowed. What trips people up: it checks well-formedness, not validity against a DTD or XSD, so a document can pass here and still be rejected by a schema-aware consumer downstream.
Worked example
A concrete input and expected output from the current implementation.
Input
<root><item id="1">First</item><item id="2">Second</item></root>
->
Expected output
<root>
<item id="1">First</item>
<item id="2">Second</item>
</root>
The parser accepts the input as well-formed (one root, all tags closed) and reprints each element on its own line with a 2-space indent per nesting level; attribute order and text content are left unchanged.