84 chars · 1 line
Waiting for input
84 chars · 1 line
Waiting for input
XML formatting guide
Paste compact or hard-to-read XML into the formatter above to validate the markup and add consistent indentation. The formatter is useful for API responses, feeds, SOAP messages, configuration files, and exported XML that needs to be inspected by a person. This tool is free to use. No account or payment is required.
Last updated
The formatter first asks the browser XML parser to build a complete document. Mismatched tags, incomplete markup, and other well-formedness errors are reported rather than hidden by whitespace changes.
After parsing succeeds, nested element-only content is indented while mixed-content elements stay compact to avoid adding formatting whitespace inside text that may be significant.
Indentation makes nested API payloads and document structures easier to follow during debugging, code review, integration work, and feed inspection.
Formatting and validation use browser APIs. The XML text is not sent to a VetaTool processing server, which is useful for private configuration and development payloads.
A compact service document becomes readable without changing its element names or values.
<service><name>api</name><ports><port>8080</port><port>8081</port></ports></service><service>
<name>api</name>
<ports>
<port>8080</port>
<port>8081</port>
</ports>
</service>Common questions
Yes. The formatter parses the document first and reports malformed XML before producing formatted output.
No. It checks XML well-formedness only; XSD and application-specific validation are outside the current tool.
No. Parsing and formatting run locally in your browser.
Debugging a specific XML issue? Browse XML troubleshooting.