What is an XML Formatter?
XML keeps arriving — sitemaps, RSS, SOAP, Android layouts, invoices — usually as an unreadable single line.
The formatter validates well-formedness with your browser’s real XML parser first, then re-indents deterministically (or strips whitespace to minify).
How to use the XML Formatter
- Paste the XML.
- Click Format for indented output, or Minify.
- Fix any well-formedness error it reports and rerun.
Frequently asked questions
What does “well-formed” mean?
Every tag closed, properly nested, one root element, attributes quoted — the minimum for any parser to accept it.
Does it validate against a schema (XSD)?
No — well-formedness only. Schema validation needs the schema, which is a different tool.
Will it preserve CDATA and comments?
Yes — content is re-indented, not rewritten.
Is my XML uploaded?
No — everything runs locally.