XML Formatter
Beautify compact or poorly indented XML into a readable, properly nested structure, or minify it down to remove unnecessary whitespace.
Output…
About the XML Formatter
An XML formatter beautifies compact or poorly indented XML into a readable, properly nested structure, or minifies it down to remove unnecessary whitespace.
How to use
1
Paste your XML into the input field.
2
Choose beautify or minify.
3
Copy the formatted result.
Frequently asked questions
Does this validate my XML as well as format it?
Basic well-formedness is typically checked during formatting, but for a dedicated check use the XML Validator.
Can I use this for XML feeds or sitemaps?
Yes, it works on any valid XML document, including RSS feeds, sitemaps, and configuration files.
Related tools
Explore more tools in the Text category.