XML Formatter & Validator
Paste your XML below to beautify it with indentation, minify (compress) it, or validate that it is well-formed. Errors show the line and column when the browser provides them. Everything runs locally — nothing is uploaded anywhere.
Type or paste your XML above, then click "Format", "Minify" or "Validate".
Frequently asked questions
Is my XML data uploaded to a server?
No. Everything runs locally in your browser using JavaScript's native DOMParser; the XML you paste is never sent anywhere.
What does "well-formed XML" mean?
It means the document follows basic XML syntax rules: every opening tag has a matching closing tag (or is self-closed with />), attributes are quoted, and there's exactly one root element. This tool validates exactly that — not a specific schema (XSD/DTD).
What's the difference between formatting and minifying?
Formatting adds indentation and line breaks so the XML is easy to read. Minifying (compressing) does the opposite: it strips whitespace between tags to shrink the payload, which is ideal for transmitting or storing in production.
Does this work for SOAP, RSS, Android manifests or config files?
Yes. Any well-formed XML document works: SOAP responses, RSS/Atom feeds, AndroidManifest.xml files, Maven pom.xml, Spring configuration, and more.