Prettify XML with clean indentation. Input and formatted output side by side.
<?xml version="1.0"?>
<root>
<item id="1">
<name>Alpha</name>
</item>
<item id="2">
<name>Beta</name>
</item>
</root>More free utilities you might find useful
Quick answers to common questions
It formats markup for readability but does not guarantee schema or DTD validity.
No. Formatting runs entirely in your browser.
Yes. Tags, attributes, and namespace prefixes are preserved.
Yes. Empty elements like <item/> are handled correctly.
Uses 2-space indentation by default.
Yes. Use the Copy button on the output panel.
Very large documents may be slow in-browser.
Yes.
Your data is processed entirely in your browser. Nothing is sent to any server.