XML Formatter
Turn XML that is squashed onto one line into neatly indented lines, so the nesting is easy to read.
1 Paste or type your text
2 Your answer
Your answer shows here as you type.
How to use the XML Formatter
- Paste your XML.
- Read the indented result.
- Copy it.
Frequently asked questions
What does an XML formatter do?
It puts each tag on its own line and indents the tags inside others. The text and tags stay exactly as they were.
Does it check that the XML is valid?
No. It only spaces the text out. A broken file will still come out spaced, so check the result in the program that will use it.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.