XML Formatter
Format and beautify XML document trees.
Loading workspace...
About the XML Formatter
Use it to pretty-print and validate XML such as sitemaps, RSS feeds, SOAP responses or config files.
Runs entirely in your browser. Your files and text are never uploaded.
How to use it
- Paste the XML.
- Format it, or minify it.
- Fix any error at the line reported, then copy.
Frequently asked questions
Why is my XML not well-formed?
Common causes are unclosed tags, mismatched case, an unescaped & character or more than one root element.
How do I write & in XML?
Escape it as &. Likewise use < for < inside text.
Does formatting change the data?
No. Only whitespace between tags changes. Element content stays the same.
Related Tools
Specialized workflows in Utilities & Developer