XML Formatter
Pretty-print and indent XML so it's easy to read and debug.
Was this tool helpful?
Thanks for the feedback!
Pretty-print and indent XML so it is easy to read and debug — config files, feeds and API responses become much clearer when laid out by element depth. It runs entirely in your browser.
Need to convert instead? Try JSON to XML.
Frequently asked questions
How do I format XML?
Paste compact XML and click format; the tool indents each element by its depth for readability.
What is XML formatting useful for?
Reading and debugging config files, RSS/Atom feeds and XML API responses that arrive as one long line.
Does it validate the XML?
It formats structure but does not fully validate. Malformed XML may not indent cleanly, hinting at an error.
Is my data uploaded?
No, formatting happens in your browser.