XML Formatter
Indent and beautify XML so the structure is easy to read.
Updated · Free · No sign-up
Copy this code into your website or blog to show this tool there, free:
How to use the XML Formatter
Type or paste your text into the first box. The result appears immediately in the second box, ready to copy or download. Replace the sample text with your own.
Worked example
Input:
<order><item id="1"><name>Elbow</name><qty>10</qty></item></order>
Output:
<order>
<item id="1">
<name>Elbow</name>
<qty>10</qty>
</item>
</order>
Frequently asked questions
What does the XML Formatter do?
Indent and beautify XML so the structure is easy to read.
Is the XML Formatter free to use?
Yes. It is free, needs no sign-up and works on phones, tablets and computers. Everything is calculated in your browser, so what you enter is not sent to or stored on a server.