Developer tool
XML Formatter
Paste XML and format it with indentation so the structure is easier to read.
Processed in your browser. The text is not sent to our servers.
How to format XML
- Paste the XML.
- Click Format XML.
- Copy the indented result.
The browser parses the document first. If the XML is not well formed, the page reports that it could not be parsed.
Frequently asked questions
Will attributes be reordered?
The formatter adds line breaks and indentation. It does not rewrite the text inside a tag beyond the original characters.
Is the XML uploaded?
No. Parsing and formatting run in your browser.